couldn't find a command line fix broken howto that works for kernel/initrd/linux-firmware
by mrmazda from LinuxQuestions.org on (#5AJSZ)
Code:# apt install linux-image-generic linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux-tools-generic
...
update-initramfs: Generating /boot/initrd.img-5.0.0-32-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.0.0-32-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-54-generic (5.4.0-54.60) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-54-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-54-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-54-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-54-generic (--configure):
installed linux-image-5.4.0-54-generic package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-firmware
linux-image-generic
initramfs-tools
linux-image-5.4.0-54-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ab85m:/boot# lr
total 83304
-rw------- 1 root root 4051606 Jun 24 2019 System.map-4.15.0-54-generic
-rw-r--r-- 1 root root 217278 Jun 24 2019 config-4.15.0-54-generic
-rw------- 1 root root 4295198 Oct 10 2019 System.map-5.0.0-32-generic
-rw-r--r-- 1 root root 224447 Oct 10 2019 config-5.0.0-32-generic
-rw------- 1 root root 8769272 Oct 10 2019 vmlinuz-5.0.0-32-generic
lrwxrwxrwx 1 root root 24 Jan 23 2020 vmlinuz-prv -> vmlinuz-5.0.0-32-generic
lrwxrwxrwx 1 root root 27 Jan 23 2020 initrd-prv -> initrd.img-5.0.0-32-generic
lrwxrwxrwx 1 root root 27 Jan 23 2020 initrd -> initrd.img-5.0.0-32-generic
drwxr-xr-x 5 root root 4096 Aug 14 21:47 grub
-rw-r--r-- 1 root root 184884 Aug 18 06:46 memtest86+_multiboot.bin
-rw-r--r-- 1 root root 184380 Aug 18 06:46 memtest86+.elf
-rw-r--r-- 1 root root 182704 Aug 18 06:46 memtest86+.bin
-rw-r--r-- 1 root root 50477071 Oct 6 01:16 initrd.img-5.0.0-32-generic
-rw------- 1 root root 4743490 Nov 5 12:03 System.map-5.4.0-54-generic
-rw-r--r-- 1 root root 237807 Nov 5 12:03 config-5.4.0-54-generic
-rw------- 1 root root 11678464 Nov 5 13:11 vmlinuz-5.4.0-54-generic
lrwxrwxrwx 1 root root 24 Nov 18 21:45 vmlinuz.old -> vmlinuz-5.0.0-32-generic
lrwxrwxrwx 1 root root 24 Nov 18 21:45 vmlinuz -> vmlinuz-5.4.0-54-generic
lrwxrwxrwx 1 root root 27 Nov 18 21:45 initrd.img.old -> initrd.img-5.0.0-32-generic
lrwxrwxrwx 1 root root 27 Nov 18 21:45 initrd.img -> initrd.img-5.4.0-54-generic
root@ab85m:/boot
# apt update
Ign:1 http://packages.linuxmint.com ulyana InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Hit:3 http://packages.linuxmint.com ulyana Release
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:6 http://archive.canonical.com/ubuntu focal InRelease
Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Fetched 317 kB in 1s (287 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
# apt upgrade
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-54 linux-headers-4.15.0-54-generic
linux-modules-4.15.0-54-generic
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Setting up initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.187.4) ...
update-initramfs: Generating /boot/initrd.img-5.0.0-32-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.0.0-32-generic with 1.
dpkg: error processing package linux-firmware (--configure):
installed linux-firmware package post-installation script subprocess returned error exit status 1
Setting up linux-image-5.4.0-54-generic (5.4.0-54.60) ...
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-firmware; however:
Package linux-firmware is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.0.0-32-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.0.0-32-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-54-generic (5.4.0-54.60) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-54-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-54-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-54-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-54-generic (--configure):
installed linux-image-5.4.0-54-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-firmware
linux-image-generic
initramfs-tools
linux-image-5.4.0-54-generic
#I did a lot of googling and tried a lot of supposed ways to fix whatever the problem was with these errors, with no success. Here were excerpts of tail of .bash_history to that point:Code:apt dist-upgrade
apropos fix-broken
aptitude -f
apt fix-broken install
apt install -f
apt autoremove
apt install -f linux-firmware
dpkg --configure -a
apt reinstall linux-firmware
apt-cache clean
apt clean
apt update --fix-missing
apt install -f
dpkg --configure -a
aptitude search firmware | grep linux
aptitude reinstall linux-firmware
apt reinstall linux-firmware
apt-get --reinstall install linux-firmware
apt install linux-firmware
apt purge linux-firmware
apt install linux-firmware
apt install linux-image-generic linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux-tools-genericFinally I decided to go forth boldly:Code:# apt purge plymouthIt took out lighdm and slick-greeter too, but rebooting worked, and reinstalling them was no problem.Code:# inxi -S
System: Host: ab85m Kernel: 5.4.0-54-generic x86_64 bits: 64 Console: tty 3 Distro: Linux Mint 20 UlyanaI can't remember being presented with so much trouble from Ubuntu or Debian. What's the secret that I was missing to make the error messages go away and build a working initrd for the 5.4.0-54 kernel? (GUI methods/tools don't count.)


...
update-initramfs: Generating /boot/initrd.img-5.0.0-32-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.0.0-32-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-54-generic (5.4.0-54.60) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-54-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-54-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-54-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-54-generic (--configure):
installed linux-image-5.4.0-54-generic package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-firmware
linux-image-generic
initramfs-tools
linux-image-5.4.0-54-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ab85m:/boot# lr
total 83304
-rw------- 1 root root 4051606 Jun 24 2019 System.map-4.15.0-54-generic
-rw-r--r-- 1 root root 217278 Jun 24 2019 config-4.15.0-54-generic
-rw------- 1 root root 4295198 Oct 10 2019 System.map-5.0.0-32-generic
-rw-r--r-- 1 root root 224447 Oct 10 2019 config-5.0.0-32-generic
-rw------- 1 root root 8769272 Oct 10 2019 vmlinuz-5.0.0-32-generic
lrwxrwxrwx 1 root root 24 Jan 23 2020 vmlinuz-prv -> vmlinuz-5.0.0-32-generic
lrwxrwxrwx 1 root root 27 Jan 23 2020 initrd-prv -> initrd.img-5.0.0-32-generic
lrwxrwxrwx 1 root root 27 Jan 23 2020 initrd -> initrd.img-5.0.0-32-generic
drwxr-xr-x 5 root root 4096 Aug 14 21:47 grub
-rw-r--r-- 1 root root 184884 Aug 18 06:46 memtest86+_multiboot.bin
-rw-r--r-- 1 root root 184380 Aug 18 06:46 memtest86+.elf
-rw-r--r-- 1 root root 182704 Aug 18 06:46 memtest86+.bin
-rw-r--r-- 1 root root 50477071 Oct 6 01:16 initrd.img-5.0.0-32-generic
-rw------- 1 root root 4743490 Nov 5 12:03 System.map-5.4.0-54-generic
-rw-r--r-- 1 root root 237807 Nov 5 12:03 config-5.4.0-54-generic
-rw------- 1 root root 11678464 Nov 5 13:11 vmlinuz-5.4.0-54-generic
lrwxrwxrwx 1 root root 24 Nov 18 21:45 vmlinuz.old -> vmlinuz-5.0.0-32-generic
lrwxrwxrwx 1 root root 24 Nov 18 21:45 vmlinuz -> vmlinuz-5.4.0-54-generic
lrwxrwxrwx 1 root root 27 Nov 18 21:45 initrd.img.old -> initrd.img-5.0.0-32-generic
lrwxrwxrwx 1 root root 27 Nov 18 21:45 initrd.img -> initrd.img-5.4.0-54-generic
root@ab85m:/boot
# apt update
Ign:1 http://packages.linuxmint.com ulyana InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Hit:3 http://packages.linuxmint.com ulyana Release
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:6 http://archive.canonical.com/ubuntu focal InRelease
Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Fetched 317 kB in 1s (287 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
# apt upgrade
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-54 linux-headers-4.15.0-54-generic
linux-modules-4.15.0-54-generic
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Setting up initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.187.4) ...
update-initramfs: Generating /boot/initrd.img-5.0.0-32-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.0.0-32-generic with 1.
dpkg: error processing package linux-firmware (--configure):
installed linux-firmware package post-installation script subprocess returned error exit status 1
Setting up linux-image-5.4.0-54-generic (5.4.0-54.60) ...
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-firmware; however:
Package linux-firmware is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.0.0-32-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.0.0-32-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-54-generic (5.4.0-54.60) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-54-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-54-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-54-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-54-generic (--configure):
installed linux-image-5.4.0-54-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-firmware
linux-image-generic
initramfs-tools
linux-image-5.4.0-54-generic
#I did a lot of googling and tried a lot of supposed ways to fix whatever the problem was with these errors, with no success. Here were excerpts of tail of .bash_history to that point:Code:apt dist-upgrade
apropos fix-broken
aptitude -f
apt fix-broken install
apt install -f
apt autoremove
apt install -f linux-firmware
dpkg --configure -a
apt reinstall linux-firmware
apt-cache clean
apt clean
apt update --fix-missing
apt install -f
dpkg --configure -a
aptitude search firmware | grep linux
aptitude reinstall linux-firmware
apt reinstall linux-firmware
apt-get --reinstall install linux-firmware
apt install linux-firmware
apt purge linux-firmware
apt install linux-firmware
apt install linux-image-generic linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux-tools-genericFinally I decided to go forth boldly:Code:# apt purge plymouthIt took out lighdm and slick-greeter too, but rebooting worked, and reinstalling them was no problem.Code:# inxi -S
System: Host: ab85m Kernel: 5.4.0-54-generic x86_64 bits: 64 Console: tty 3 Distro: Linux Mint 20 UlyanaI can't remember being presented with so much trouble from Ubuntu or Debian. What's the secret that I was missing to make the error messages go away and build a working initrd for the 5.4.0-54 kernel? (GUI methods/tools don't count.)