I saw the following on Debian 9 "stretch":
# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-image-marvell
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
An update does not install, despite this command being an official way to update Debian according to the "Securing Debian Manual". (Snapshot at time of reading here).
By contrast, both aptitude
and the newer apt
command are prepared to install it. That said, this particular version is not a security update. I understand that apt
and potentially aptitude
have different defaults. I would like to ask how deliberate this behaviour on Debian's part...
The Securing Debian Manual lists aptitude
first, when describing how to apply updates. And I know apt
has some changed defaults that are supposed to be more user-friendly. Looking carefully at the current Debian Installation Guide, it is pointing new users to apt
or aptitude
. I think all the example commands now reference apt
, not apt-get
.
My starting assumption is that security updates to the kernel would not be held back by an update method endorsed by the Debian Security Manual. (Let me know if I assume wrongly :-). But I want to make sure I understand how to update my Debian system.
Questions
- If I want to get the defaults that modern Debian is setting up for new users, I'm being recommended to train my fingers to type
apt
instead ofapt-get
. Right? - The previous Installation Guide (for Debian 8) references
apt-get
, as does the documentation for upgrading from Debian 8 to Debian 9. So very broadly, I guess the safest option is not to useapt
before the Debian 8 -> Debian 9 transition? - Is there a widely known case or cases that you would like to suggest I watch out for, where the current solution is to use
apt-get
for some task? - Does Debian have a comment somewhere about the choice to make
apt
more eager to apply updates, which specifically confirms there is is distinction of security and non-security updates? - On a slightly different angle, is there any information about Debian's choice to arrange a (non-security) kernel update like this, that avoids them being applied with the normal configuration used by
apt-get
on my system?
Details of this update
# apt-cache policy linux-image-marvell
linux-image-marvell:
Installed: 4.9+80+deb9u4
Candidate: 4.9+80+deb9u5
Version table:
4.9+80+deb9u5 500
500 http://ftp.uk.debian.org/debian stretch/main armel Packages
*** 4.9+80+deb9u4 500
500 http://security.debian.org stretch/updates/main armel Packages
100 /var/lib/dpkg/status
Version of "apt-get" used
# apt-cache policy apt
apt:
Installed: 1.4.8
Candidate: 1.4.8
...
Different behaviour with different update methods
# aptitude upgrade
Resolving dependencies...
The following NEW packages will be installed:
linux-image-4.9.0-7-marvell{a}
The following packages will be upgraded:
linux-image-marvell
1 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/21.9 MB of archives. After unpacking 91.2 MB will be used.
Do you want to continue? [Y/n/?] n
Abort.
# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-image-4.9.0-7-marvell
The following packages will be upgraded:
linux-image-marvell
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/21.9 MB of archives.
After this operation, 91.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.