Suspected Makefile error in linux-firmware 1.157.19 causes attempt to generate initramfs for absent Kernels 4.8.0-56 and 4.8.0

Asked by B. C. Schmerker

With LinUX Images/-Extras 4.15.0-22-generic, 4.13.0-43-generic, 4.8.0-58-generic, 4.8.0-56-generic, and 4.4.0-127-generic installed, sudo dpkg-reconfigure linux-firmware returns the following to Console:

update-initramfs: Generating /boot/initrd.img-4.15.0-22-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-43-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-58-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-56-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-56
WARNING: missing /lib/modules/4.8.0-56
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.8.0-56: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_AlVft4/lib/modules/4.8.0-56/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_AlVft4/lib/modules/4.8.0-56/modules.builtin: No such file or directory
update-initramfs: Generating /boot/initrd.img-4.8.0
WARNING: missing /lib/modules/4.8.0
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.8.0: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_OwnjIb/lib/modules/4.8.0/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_OwnjIb/lib/modules/4.8.0/modules.builtin: No such file or directory
update-initramfs: Generating /boot/initrd.img-4.4.0-127-generic

With 4.8.0-56-generic present, dpkg-reconfigure shouldn't attempt to generate InitRamFS for a 4.8.0-56 (no suffix) or 4.8.0 (no build) for linux-firmware. What gives that could cause the false update-initramfs triggers?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug

Revision history for this message
B. C. Schmerker (bcschmerker) said :
#2

In progress, to be titled "linux-firmware 1.157.19 attempts to generate /boot/initrd.img-4.8.0-56, /boot/initrd.ing-4.8.0 when no corresponding vmlinuz present."

Revision history for this message
B. C. Schmerker (bcschmerker) said :
#3

SOLVED, would have been a potential bug against apt and/or dpkg, which failed to clean up after Kernel package removal. Since dist-upgraded to ubuntu Focal.