[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Stretch] apt-get has no updates?





On 06/30/2017 10:06 AM, Dejan Jocic wrote:
On 30-06-17, RavenLX wrote:
I think I might have a problem. I do the sudo apt-get update and then sudo
apt-get dist-upgrade and ever since I have installed Debian 9 (after the
official release) I have not seen any updates. Yet in Ubuntu 14.04 server
there were updates to the kernel and to Apache. I've been watching
Debian-Security and noticed there are some updates coming up. But I haven't
seen any when I go to do the update.

[snipped info I already gave]

Start with dpkg -s unattended-upgrades

If that is installed, check as root/with sudo:

# cat /var/log/unattended-upgrades/unattended-upgrades.log

Here's what I got:

ravenlx@hpg7:~$ sudo dpkg -s unattended-upgrades
Package: unattended-upgrades
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 246
Maintainer: Michael Vogt <mvo@debian.org>
Architecture: all
Version: 0.93.1+nmu1
Depends: debconf (>= 0.5) | debconf-2.0, init-system-helpers (>= 1.18~), debconf, python3, python3-apt, apt-utils, apt, ucf, lsb-release, lsb-base (>= 3.2-14), xz-utils
Recommends: cron | cron-daemon | anacron
Suggests: bsd-mailx, mail-transport-agent, needrestart
Conffiles:
 /etc/init.d/unattended-upgrades 290829a5efc55b7c435de0bb769f217b
/etc/kernel/postinst.d/unattended-upgrades b74a4f1a1fe2e350aec97f472c25e0bb
 /etc/logrotate.d/unattended-upgrades e45049ee847f069a99e3e6ec39155d4a
/etc/pm/sleep.d/10_unattended-upgrades-hibernate d4ebdc2a2fdfeea33e6cd39812a85c3a
Description: automatic installation of security upgrades
 This package can download and install security upgrades automatically
 and unattended, taking care to only install packages from the
 configured APT source, and checking for dpkg prompts about
 configuration file changes.
 .
 This script is the backend for the APT::Periodic::Unattended-Upgrade
 option.

ravenlx@hpg7:~$ sudo cat /var/log/unattended-upgrades/unattended-upgrades.log
2017-06-26 10:44:53,533 INFO Initial blacklisted packages:
2017-06-26 10:44:53,533 INFO Initial whitelisted packages:
2017-06-26 10:44:53,534 INFO Starting unattended upgrades script
2017-06-26 10:44:53,534 INFO Allowed origins are: ['origin=Debian,codename=stretch,label=Debian-Security'] 2017-06-26 10:44:59,045 INFO No packages found that can be upgraded unattended and no pending auto-removals
2017-06-27 08:25:02,089 INFO Initial blacklisted packages:
2017-06-27 08:25:02,101 INFO Initial whitelisted packages:
2017-06-27 08:25:02,102 INFO Starting unattended upgrades script
2017-06-27 08:25:02,102 INFO Allowed origins are: ['origin=Debian,codename=stretch,label=Debian-Security'] 2017-06-27 08:25:07,323 INFO No packages found that can be upgraded unattended and no pending auto-removals
2017-06-28 06:34:25,955 INFO Initial blacklisted packages:
2017-06-28 06:34:25,967 INFO Initial whitelisted packages:
2017-06-28 06:34:25,968 INFO Starting unattended upgrades script
2017-06-28 06:34:25,968 INFO Allowed origins are: ['origin=Debian,codename=stretch,label=Debian-Security'] 2017-06-28 06:37:31,352 INFO Packages that will be upgraded: linux-compiler-gcc-6-x86 linux-headers-4.9.0-3-amd64 linux-headers-4.9.0-3-common linux-image-4.9.0-3-amd64 linux-kbuild-4.9 linux-libc-dev 2017-06-28 06:37:31,353 INFO Writing dpkg log to '/var/log/unattended-upgrades/unattended-upgrades-dpkg.log'
2017-06-28 06:38:50,686 INFO All upgrades installed
2017-06-29 08:57:46,133 INFO Initial blacklisted packages:
2017-06-29 08:57:46,146 INFO Initial whitelisted packages:
2017-06-29 08:57:46,146 INFO Starting unattended upgrades script
2017-06-29 08:57:46,147 INFO Allowed origins are: ['origin=Debian,codename=stretch,label=Debian-Security'] 2017-06-29 08:57:51,337 INFO No packages found that can be upgraded unattended and no pending auto-removals
2017-06-30 08:12:38,490 INFO Initial blacklisted packages:
2017-06-30 08:12:38,503 INFO Initial whitelisted packages:
2017-06-30 08:12:38,503 INFO Starting unattended upgrades script
2017-06-30 08:12:38,504 INFO Allowed origins are: ['origin=Debian,codename=stretch,label=Debian-Security'] 2017-06-30 08:12:43,802 INFO No packages found that can be upgraded unattended and no pending auto-removals

If you have unattended-upgrades package installed and it is configured
to fetch and install security updates only ( which is default ), that is
place to look for upgraded packages. You can also configure
unattended-upgrades to mail you where there was updates/upgrades and all
that jazz.

How do I go about upgrading then? I don't know of how to do it any other way than via apt-get. Also I don't want to have it email me anything. I usually go to the command line, do a series of commands and upgrade the system. I would like to continue to do things that way. I do this once a week (usually Thurs. but now I'm switching to Fridays).


Reply to: