I have noticed for several weeks that apt autoremove (or apt-get autoremove) no longer removes old images.
(What are the links for?) I have found this discussion, which leads me to this.
The discussion at the link suggests playing around with files and that sounds dangerous to me. Is there another way out? It may be that this is happening since I started letting Discover do the updates it suggests.
Why does it set these to neverautoremove? Will I have to remove them individually and, if so, how? Will this continue?
$ ll /boot/vml*
lrwxrwxrwx 1 root root 24 nov. 19 07:44 /boot/vmlinuz -> vmlinuz-5.4.0-54-generic
-rw------- 1 root root 11678464 oct. 5 15:54 /boot/vmlinuz-5.4.0-51-generic
-rw------- 1 root root 11678464 oct. 15 12:33 /boot/vmlinuz-5.4.0-52-generic
-rw------- 1 root root 11678464 oct. 21 11:01 /boot/vmlinuz-5.4.0-53-generic
-rw------- 1 root root 11678464 nov. 5 19:11 /boot/vmlinuz-5.4.0-54-generic
lrwxrwxrwx 1 root root 24 nov. 19 07:44 /boot/vmlinuz.old -> vmlinuz-5.4.0-53-generic
lrwxrwxrwx 1 root root 24 nov. 19 07:44 /boot/vmlinuz -> vmlinuz-5.4.0-54-generic
-rw------- 1 root root 11678464 oct. 5 15:54 /boot/vmlinuz-5.4.0-51-generic
-rw------- 1 root root 11678464 oct. 15 12:33 /boot/vmlinuz-5.4.0-52-generic
-rw------- 1 root root 11678464 oct. 21 11:01 /boot/vmlinuz-5.4.0-53-generic
-rw------- 1 root root 11678464 nov. 5 19:11 /boot/vmlinuz-5.4.0-54-generic
lrwxrwxrwx 1 root root 24 nov. 19 07:44 /boot/vmlinuz.old -> vmlinuz-5.4.0-53-generic
$ less /etc/apt/apt.conf.d/01autoremove-kernels
// DO NOT EDIT! File autogenerated by /etc/kernel/postinst.d/apt-auto-removal
APT::NeverAutoRemove
{
"^linux-.*-5\.4\.0-53-generic$";
"^linux-.*-5\.4\.0-54-generic$";
"^kfreebsd-.*-5\.4\.0-53-generic$";
"^kfreebsd-.*-5\.4\.0-54-generic$";
"^gnumach-.*-5\.4\.0-53-generic$";
"^gnumach-.*-5\.4\.0-54-generic$";
"^.*-modules-5\.4\.0-53-generic$";
"^.*-modules-5\.4\.0-54-generic$";
"^.*-kernel-5\.4\.0-53-generic$";
"^.*-kernel-5\.4\.0-54-generic$";
};
/* Debug information:
# dpkg list:
rc linux-image-5.4.0-48-generic 5.4.0-48.52 amd64 Signed kernel image generic
ii linux-image-5.4.0-51-generic 5.4.0-51.56 amd64 Signed kernel image generic
ii linux-image-5.4.0-52-generic 5.4.0-52.57 amd64 Signed kernel image generic
ii linux-image-5.4.0-53-generic 5.4.0-53.59 amd64 Signed kernel image generic
iF linux-image-5.4.0-54-generic 5.4.0-54.60 amd64 Signed kernel image generic
ii linux-image-generic 5.4.0.54.57 amd64 Generic Linux kernel image
# list of installed kernel packages:
5.4.0-51-generic 5.4.0-51.56
5.4.0-52-generic 5.4.0-52.57
5.4.0-53-generic 5.4.0-53.59
5.4.0-54-generic 5.4.0-54.60
# list of different kernel versions:
5.4.0-54.60
5.4.0-53.59
5.4.0-52.57
5.4.0-51.56
,,, and more.
// DO NOT EDIT! File autogenerated by /etc/kernel/postinst.d/apt-auto-removal
APT::NeverAutoRemove
{
"^linux-.*-5\.4\.0-53-generic$";
"^linux-.*-5\.4\.0-54-generic$";
"^kfreebsd-.*-5\.4\.0-53-generic$";
"^kfreebsd-.*-5\.4\.0-54-generic$";
"^gnumach-.*-5\.4\.0-53-generic$";
"^gnumach-.*-5\.4\.0-54-generic$";
"^.*-modules-5\.4\.0-53-generic$";
"^.*-modules-5\.4\.0-54-generic$";
"^.*-kernel-5\.4\.0-53-generic$";
"^.*-kernel-5\.4\.0-54-generic$";
};
/* Debug information:
# dpkg list:
rc linux-image-5.4.0-48-generic 5.4.0-48.52 amd64 Signed kernel image generic
ii linux-image-5.4.0-51-generic 5.4.0-51.56 amd64 Signed kernel image generic
ii linux-image-5.4.0-52-generic 5.4.0-52.57 amd64 Signed kernel image generic
ii linux-image-5.4.0-53-generic 5.4.0-53.59 amd64 Signed kernel image generic
iF linux-image-5.4.0-54-generic 5.4.0-54.60 amd64 Signed kernel image generic
ii linux-image-generic 5.4.0.54.57 amd64 Generic Linux kernel image
# list of installed kernel packages:
5.4.0-51-generic 5.4.0-51.56
5.4.0-52-generic 5.4.0-52.57
5.4.0-53-generic 5.4.0-53.59
5.4.0-54-generic 5.4.0-54.60
# list of different kernel versions:
5.4.0-54.60
5.4.0-53.59
5.4.0-52.57
5.4.0-51.56
,,, and more.
Why does it set these to neverautoremove? Will I have to remove them individually and, if so, how? Will this continue?
Comment