Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian does not update

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
CouchPotato
Posts: 4
Joined: 2018-10-15 13:16

Debian does not update

#1 Post by CouchPotato »

I have installed debian on a VPS a while back but I do not receive any updates on it when I run sudo apt update or sudo apt upgrade. I want to use this server as a webserver so I tried to configure it to receive the most recent PHP packages a while back but I guess I messed up somewhere. The only updates I occasionally get are the php packages but no debian security updates of any kind. I've been studying https://wiki.debian.org/SourcesList and my sources list seems allright, and I don't know where else to look.

Contents of my sources.list:

Code: Select all

deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

deb https://packages.sury.org/php/ stretch main
deb-src https://packages.sury.org/php/ stretch main
I manually added the last two lines but when I take it out it makes no difference. Any idea's?

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Debian does not update

#2 Post by arochester »

Code: Select all

deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free
If your don't want/don't use the source code you can invalidate the lines beginning deb-src by putting a # in front of them.

CouchPotato
Posts: 4
Joined: 2018-10-15 13:16

Re: Debian does not update

#3 Post by CouchPotato »

Thanks for the quick reply. I added debian security source to my source list but it still does not update.

Updated sources.list:

Code: Select all

deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ stretch/updates main contrib non-free

deb https://packages.sury.org/php/ stretch main
deb-src https://packages.sury.org/php/ stretch main

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian does not update

#4 Post by GarryRicketson »

Are you running

Code: Select all

apt-get update 
AFTER you made the changes in the /etc/apt/sources.list ?
It needs to be run as root or using sudo.
https://www.debian.org/releases/stable/errata
Security issues

Debian security team issues updates to packages in the stable release in which they've identified problems related to security. Please consult the security pages for information about any security issues identified in Stretch.

If you use APT, add the following line to /etc/apt/sources.list to be able to access the latest security updates:

deb http://security.debian.org/ stretch/updates main contrib non-free
After that, run apt-get update followed by apt-get upgrade.
Show us what the out put says when you run the command.

CouchPotato
Posts: 4
Joined: 2018-10-15 13:16

Re: Debian does not update

#5 Post by CouchPotato »

I am certain I run the update after the changes are done.

Code: Select all

regg@regg:/etc/apt$ sudo apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian-security stretch/updates InRelease
Hit:5 http://deb.debian.org/debian stretch Release
Hit:6 https://packages.sury.org/php stretch InRelease
Reading package lists... Done
regg@regg:/etc/apt$

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Debian does not update

#6 Post by dilberts_left_nut »

What updates are you expecting?
AdrianTM wrote:There's no hacker in my grandma...

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Debian does not update

#7 Post by arochester »

Instead of apt-get try apt

Code: Select all

sudo apt update
Does it say at the end ?
All packages are up to date.

CouchPotato
Posts: 4
Joined: 2018-10-15 13:16

Re: Debian does not update

#8 Post by CouchPotato »

dilberts_left_nut wrote:What updates are you expecting?
I've used linux in the past and I would regularly manually update and get all kind of security/distro updates weekly almost daily. Now I have not seen any updates for months other then php package updates so that makes me think something is broken, but I've been doing a bit more research and I feel a little bit stupid but I think the updates may have been installed by unattended-upgrade.
https://wiki.debian.org/UnattendedUpgrades
I see all kind of activity in /var/log/dpkg.log

And in /var/log/apt/history.log I see this:

Code: Select all

Start-Date: 2018-10-02  06:12:15
Commandline: /usr/bin/unattended-upgrade
Upgrade: linux-image-4.9.0-8-amd64:amd64 (4.9.110-3+deb9u4, 4.9.110-3+deb9u5)
End-Date: 2018-10-02  06:13:05

Start-Date: 2018-10-06  06:57:08
Commandline: /usr/bin/unattended-upgrade
Upgrade: git-man:amd64 (1:2.11.0-3+deb9u3, 1:2.11.0-3+deb9u4), git:amd64 (1:2.11.0-3+deb9u3, 1:2.11.0-3+deb9u4)
End-Date: 2018-10-06  06:57:16

Start-Date: 2018-10-09  06:02:05
Commandline: /usr/bin/unattended-upgrade
Upgrade: linux-image-4.9.0-8-amd64:amd64 (4.9.110-3+deb9u5, 4.9.110-3+deb9u6)
End-Date: 2018-10-09  06:02:55
So I think this is it. Thank you all for helping me out.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1389
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 66 times

Re: Debian does not update

#9 Post by None1975 »

Hello. I think it can be done like this. Go to this site and subscribe to the debian-security-announce mailing list.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Post Reply