Debian does not update

New to Debian (Or Linux in general)? Ask your questions here!

Debian does not update

Postby CouchPotato » 2018-10-15 13:27

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?
CouchPotato
 
Posts: 4
Joined: 2018-10-15 13:16

Re: Debian does not update

Postby arochester » 2018-10-15 13:52

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.
arochester
 
Posts: 1335
Joined: 2010-12-07 19:55

Re: Debian does not update

Postby CouchPotato » 2018-10-15 14:21

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
CouchPotato
 
Posts: 4
Joined: 2018-10-15 13:16

Re: Debian does not update

Postby GarryRicketson » 2018-10-15 15:08

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.
User avatar
GarryRicketson
 
Posts: 5166
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian does not update

Postby CouchPotato » 2018-10-16 05:38

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$
CouchPotato
 
Posts: 4
Joined: 2018-10-15 13:16

Re: Debian does not update

Postby dilberts_left_nut » 2018-10-16 09:23

What updates are you expecting?
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4902
Joined: 2009-10-05 07:54
Location: enzed

Re: Debian does not update

Postby arochester » 2018-10-16 09:34

Instead of apt-get try apt
Code: Select all
sudo apt update


Does it say at the end ?
All packages are up to date.
arochester
 
Posts: 1335
Joined: 2010-12-07 19:55

Re: Debian does not update

Postby CouchPotato » 2018-10-16 10:46

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.
CouchPotato
 
Posts: 4
Joined: 2018-10-15 13:16

Re: Debian does not update

Postby None1975 » 2018-10-16 12:56

Hello. I think it can be done like this. Go to this site and subscribe to the debian-security-announce mailing list.
OS: Debian 9.5 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 673
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable