[Bug 1427910] Re: apt doesn't correctly fill APT::NeverAutoRemove
Doug Smythies
1427910 at bugs.launchpad.net
Wed Aug 30 22:00:34 UTC 2017
autoremove seems to want to remove the second to last regular kernel on my systems also.
I always have a bunch of mainline kernels installed on my computers, and maybe that is the reason.
Example:
$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
gconf-service gconf-service-backend gconf2 gconf2-common libavahi-glib1 libbonobo2-0 libbonobo2-common libcanberra0 libgconf-2-4 libgnome-2-0 libgnome2-common libgnomevfs2-0
libgnomevfs2-common libllvm3.8 libmircommon5 liborbit-2-0 linux-headers-4.4.0-67 linux-headers-4.4.0-67-generic linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic
linux-headers-4.4.0-77 linux-headers-4.4.0-77-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic
linux-image-4.4.0-67-generic linux-image-4.4.0-72-generic linux-image-4.4.0-77-generic linux-image-4.4.0-83-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-67-generic
linux-image-extra-4.4.0-72-generic linux-image-extra-4.4.0-77-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-92-generic sound-theme-freedesktop
0 upgraded, 0 newly installed, 37 to remove and 0 not upgraded.
After this operation, 1,535 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
The current regular kernel is 4.4.0-93 and I expect 4.4.0-92 to be left alone.
I am running servers 16.04.3 and apt 1.2.24.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1427910
Title:
apt doesn't correctly fill APT::NeverAutoRemove
Status in apt package in Ubuntu:
Confirmed
Bug description:
After kernel update I have 3 kernel packages:
ii linux-headers-3.13.0-43
ii linux-headers-3.13.0-45
ii linux-headers-3.13.0-43-generic
ii linux-headers-3.13.0-45-generic
ii linux-headers-3.13.0-46
ii linux-headers-3.13.0-46-generic
ii linux-headers-generic 3.13.0.46.53
ii linux-image-3.13.0-43-generic
ii linux-image-3.13.0-45-generic
ii linux-image-3.13.0-46-generic
ii linux-image-extra-3.13.0-43-generic
ii linux-image-extra-3.13.0-45-generic
ii linux-image-extra-3.13.0-46-generic
And apt-config dump | grep linux returns:
APT::NeverAutoRemove:: "^linux-image-3\.13\.0-45-generic$";
APT::NeverAutoRemove:: "^linux-image-3\.13\.0-46-generic$";
APT::NeverAutoRemove:: "^linux-headers-3\.13\.0-45-generic$";
APT::NeverAutoRemove:: "^linux-headers-3\.13\.0-46-generic$";
APT::NeverAutoRemove:: "^linux-image-extra-3\.13\.0-45-generic$";
APT::NeverAutoRemove:: "^linux-image-extra-3\.13\.0-46-generic$";
APT::NeverAutoRemove:: "^linux-signed-image-3\.13\.0-45-generic$";
APT::NeverAutoRemove:: "^linux-signed-image-3\.13\.0-46-generic$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-3\.13\.0-45-generic$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-3\.13\.0-46-generic$";
APT::NeverAutoRemove:: "^linux-tools-3\.13\.0-45-generic$";
APT::NeverAutoRemove:: "^linux-tools-3\.13\.0-46-generic$";
Then I do:
apt-get purge linux-headers-3.13.0-43 linux-headers-3.13.0-43-generic
linux-image-3.13.0-43-generic linux-image-extra-3.13.0-43-generic
Then again apt-config dump | grep linux returns:
APT::NeverAutoRemove:: "^linux-image-3\.13\.0-43-generic$";
APT::NeverAutoRemove:: "^linux-image-3\.13\.0-46-generic$";
APT::NeverAutoRemove:: "^linux-headers-3\.13\.0-43-generic$";
APT::NeverAutoRemove:: "^linux-headers-3\.13\.0-46-generic$";
APT::NeverAutoRemove:: "^linux-image-extra-3\.13\.0-43-generic$";
APT::NeverAutoRemove:: "^linux-image-extra-3\.13\.0-46-generic$";
APT::NeverAutoRemove:: "^linux-signed-image-3\.13\.0-43-generic$";
APT::NeverAutoRemove:: "^linux-signed-image-3\.13\.0-46-generic$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-3\.13\.0-43-generic$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-3\.13\.0-46-generic$";
APT::NeverAutoRemove:: "^linux-tools-3\.13\.0-43-generic$";
APT::NeverAutoRemove:: "^linux-tools-3\.13\.0-46-generic$";
It has 43 and 46.
Suppose to be two last versions 45 and 46, because I have them.
Apt doesn't work correctly.
It now suggests:
apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
linux-image-3.13.0-45-generic linux-image-extra-3.13.0-45-generic
It needs to be fixed.
Thank you in advance.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1427910/+subscriptions
More information about the foundations-bugs
mailing list