$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
linux-headers-5.4.0-66-lowlatency linux-headers-5.4.0-73-lowlatency linux-hwe-5.4-headers-5.4.0-66
linux-hwe-5.4-headers-5.4.0-73 linux-image-5.4.0-66-lowlatency linux-image-5.4.0-73-lowlatency
linux-modules-5.4.0-66-lowlatency linux-modules-5.4.0-73-lowlatency
0 to upgrade, 0 to newly install, 8 to remove and 0 not to upgrade.
After this operation, 714 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 492639 files and directories currently installed.)
Removing linux-headers-5.4.0-66-lowlatency (5.4.0-66.74~18.04.2) ...
Removing linux-headers-5.4.0-73-lowlatency (5.4.0-73.82~18.04.1) ...
Removing linux-hwe-5.4-headers-5.4.0-66 (5.4.0-66.74~18.04.2) ...
Removing linux-hwe-5.4-headers-5.4.0-73 (5.4.0-73.82~18.04.1) ...
Removing linux-image-5.4.0-66-lowlatency (5.4.0-66.74~18.04.2) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-66-lowlatency
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-77-lowlatency
Found initrd image: /boot/initrd.img-5.4.0-77-lowlatency
Found linux image: /boot/vmlinuz-5.4.0-74-lowlatency
Found initrd image: /boot/initrd.img-5.4.0-74-lowlatency
Found linux image: /boot/vmlinuz-5.4.0-73-lowlatency
Found initrd image: /boot/initrd.img-5.4.0-73-lowlatency
done
Removing linux-image-5.4.0-73-lowlatency (5.4.0-73.82~18.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-73-lowlatency
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-77-lowlatency
Found initrd image: /boot/initrd.img-5.4.0-77-lowlatency
Found linux image: /boot/vmlinuz-5.4.0-74-lowlatency
Found initrd image: /boot/initrd.img-5.4.0-74-lowlatency
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-5.4.0-66-lowlatency (deleted)) leaked on lvs invocation. Parent PID 12476: /bin/sh
done
Removing linux-modules-5.4.0-66-lowlatency (5.4.0-66.74~18.04.2) ...
Removing linux-modules-5.4.0-73-lowlatency (5.4.0-73.82~18.04.1) ...
I got this same warning:
$ sudo apt autoremove headers- 5.4.0-66- lowlatency linux-headers- 5.4.0-73- lowlatency linux-hwe- 5.4-headers- 5.4.0-66 hwe-5.4- headers- 5.4.0-73 linux-image- 5.4.0-66- lowlatency linux-image- 5.4.0-73- lowlatency modules- 5.4.0-66- lowlatency linux-modules- 5.4.0-73- lowlatency 5.4.0-66- lowlatency (5.4.0- 66.74~18. 04.2) ... 5.4.0-73- lowlatency (5.4.0- 73.82~18. 04.1) ... 5.4-headers- 5.4.0-66 (5.4.0- 66.74~18. 04.2) ... 5.4-headers- 5.4.0-73 (5.4.0- 73.82~18. 04.1) ... 5.4.0-66- lowlatency (5.4.0- 66.74~18. 04.2) ... postrm. d/initramfs- tools: img-5.4. 0-66-lowlatency postrm. d/zz-update- grub: 5.4.0-77- lowlatency img-5.4. 0-77-lowlatency 5.4.0-74- lowlatency img-5.4. 0-74-lowlatency 5.4.0-73- lowlatency img-5.4. 0-73-lowlatency 5.4.0-73- lowlatency (5.4.0- 73.82~18. 04.1) ... postrm. d/initramfs- tools: img-5.4. 0-73-lowlatency postrm. d/zz-update- grub: 5.4.0-77- lowlatency img-5.4. 0-77-lowlatency 5.4.0-74- lowlatency img-5.4. 0-74-lowlatency dpkg/triggers/ linux-update- 5.4.0-66- lowlatency (deleted)) leaked on lvs invocation. Parent PID 12476: /bin/sh 5.4.0-66- lowlatency (5.4.0- 66.74~18. 04.2) ... 5.4.0-73- lowlatency (5.4.0- 73.82~18. 04.1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
linux-
linux-
linux-
0 to upgrade, 0 to newly install, 8 to remove and 0 not to upgrade.
After this operation, 714 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 492639 files and directories currently installed.)
Removing linux-headers-
Removing linux-headers-
Removing linux-hwe-
Removing linux-hwe-
Removing linux-image-
/etc/kernel/
update-initramfs: Deleting /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
done
Removing linux-image-
/etc/kernel/
update-initramfs: Deleting /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
File descriptor 10 (/var/lib/
done
Removing linux-modules-
Removing linux-modules-
$ lsb_release -a 20170808ubuntu1 -noarch: printing- 9.20170808ubunt u1-noarch: security- 9.20170808ubunt u1-noarch
LSB Version: core-9.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
I would guess this is actually a bug in grub-probe.