[SOLVED] Generic package post-installation script subprocess returned error exit status 1

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
hedgehoggy
Level 3
Level 3
Posts: 157
Joined: Thu Jan 25, 2018 8:12 am

[SOLVED] Generic package post-installation script subprocess returned error exit status 1

Post by hedgehoggy »

The full error message is

Code: Select all

E: linux-image-5.4.0-89-generic: installed linux-image-5.4.0.89-generic package post-installation script subprocess returned error exit status 1
Everything on my system seems to be working for the moment, but what does this error mean and how do I fix it?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Lenovo ThinkPad X1C10
Linux Mint 21.1 Cinnamon 5.6.8. (64-bit)
sleeper12
Level 21
Level 21
Posts: 14591
Joined: Thu May 25, 2017 3:22 pm

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by sleeper12 »

Try:

Code: Select all

 sudo apt autoremove 
Then see if the update works now.
hedgehoggy
Level 3
Level 3
Posts: 157
Joined: Thu Jan 25, 2018 8:12 am

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by hedgehoggy »

Hi sleeper, thanks for your quick response. I did the autoremove and got this

Code: Select all

The following packages will be REMOVED:
  linux-headers-5.4.0-86 linux-headers-5.4.0-86-generic linux-image-5.4.0-86-generic linux-modules-5.4.0-86-generic linux-modules-extra-5.4.0-86-generic
0 upgraded, 0 newly installed, 5 to remove and 8 not upgraded.
1 not fully installed or removed.
After this operation, 378 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 405305 files and directories currently installed.)
Removing linux-headers-5.4.0-86-generic (5.4.0-86.97) ...
Removing linux-headers-5.4.0-86 (5.4.0-86.97) ...
Removing linux-modules-extra-5.4.0-86-generic (5.4.0-86.97) ...
Removing linux-image-5.4.0-86-generic (5.4.0-86.97) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: acpi-call 1.1.0 (5.4.0-86-generic) (x86_64)
ACPI disabled in this kernel, not building module.

-------- Uninstall Beginning --------
Module:  acpi-call
Version: 1.1.0
Kernel:  5.4.0-86-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

acpi_call.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.4.0-86-generic/extra/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-86-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-89-generic
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
Found linux image: /boot/vmlinuz-5.4.0-74-generic
Found initrd image: /boot/initrd.img-5.4.0-74-generic
Adding boot menu entry for UEFI Firmware Settings
done
Removing linux-modules-5.4.0-86-generic (5.4.0-86.97) ...
Setting up linux-image-5.4.0-89-generic (5.4.0-89.100) ...
I: /boot/initrd.img is now a symlink to initrd.img-5.4.0-89-generic
Processing triggers for linux-image-5.4.0-89-generic (5.4.0-89.100) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.0-89-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-89-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-89-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-89-generic (--configure):
 installed linux-image-5.4.0-89-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-5.4.0-89-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Also, the updates I tried to install before didn't reappear in the update manager. I believe I got this type of error message with the new kernel, but also with some cinnamon updates that I was installing, carefully, one by one.
Lenovo ThinkPad X1C10
Linux Mint 21.1 Cinnamon 5.6.8. (64-bit)
sleeper12
Level 21
Level 21
Posts: 14591
Joined: Thu May 25, 2017 3:22 pm

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by sleeper12 »

Try:

Code: Select all

 sudo dpkg --configure -a 
hedgehoggy
Level 3
Level 3
Posts: 157
Joined: Thu Jan 25, 2018 8:12 am

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by hedgehoggy »

:?:

Code: Select all

Setting up linux-image-5.4.0-89-generic (5.4.0-89.100) ...
Processing triggers for linux-image-5.4.0-89-generic (5.4.0-89.100) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.0-89-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-89-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-89-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-89-generic (--configure):
 installed linux-image-5.4.0-89-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-5.4.0-89-generic
Lenovo ThinkPad X1C10
Linux Mint 21.1 Cinnamon 5.6.8. (64-bit)
sleeper12
Level 21
Level 21
Posts: 14591
Joined: Thu May 25, 2017 3:22 pm

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by sleeper12 »

Ok, I'm not sure what's going on there. So, wait for better help. :?
hedgehoggy
Level 3
Level 3
Posts: 157
Joined: Thu Jan 25, 2018 8:12 am

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by hedgehoggy »

Ok, no worries, thanks for trying!
I do have plenty of Timeshift snapshots to bounce back to, if that would help . . .
Lenovo ThinkPad X1C10
Linux Mint 21.1 Cinnamon 5.6.8. (64-bit)
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by rene »

hedgehoggy wrote: Tue Oct 19, 2021 12:24 pm E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
I don't even see how it's possible that that script "fails with return 1". Do you have the same checksum as me?

Code: Select all

$ crc32 /usr/share/initramfs-tools/hooks/plymouth
5959b4a9
This is on 20.2 (Xfce). If not, does anything improve after sudo apt-get install --reinstall plymouth?
hedgehoggy
Level 3
Level 3
Posts: 157
Joined: Thu Jan 25, 2018 8:12 am

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by hedgehoggy »

For the first thing, I get

Code: Select all

5959b4a9
Trying the next one . . .

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded.
1 not fully installed or removed.
Need to get 157 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://packages.linuxmint.com uma/upstream amd64 plymouth amd64 0.9.4+mint2+ulyssa [157 kB]
Fetched 157 kB in 1s (214 kB/s)                         
(Reading database ... 368884 files and directories currently installed.)
Preparing to unpack .../plymouth_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth (0.9.4+mint2+ulyssa) over (0.9.4+mint2+ulyssa) ...
Setting up plymouth (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up linux-image-5.4.0-89-generic (5.4.0-89.100) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-88-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-88-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-89-generic (5.4.0-89.100) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.0-89-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-89-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-89-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-89-generic (--configure):
 installed linux-image-5.4.0-89-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
 linux-image-5.4.0-89-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Lenovo ThinkPad X1C10
Linux Mint 21.1 Cinnamon 5.6.8. (64-bit)
sleeper12
Level 21
Level 21
Posts: 14591
Joined: Thu May 25, 2017 3:22 pm

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by sleeper12 »

Over my head, but might this be a better command?:

Code: Select all

 sudo apt-get install --reinstall plymouth-* 
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by rene »

Well, no, that would not be better. And, arr, crap, yes, it would have that issue; that reinstall triggers the very same postinst. And as far as I can quickly find you can't in fact skip that postinst either. Typically apt...

It was in any case not likely and especially given your equal CRC32. Err, arr, let me think...
hedgehoggy
Level 3
Level 3
Posts: 157
Joined: Thu Jan 25, 2018 8:12 am

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by hedgehoggy »

Lot of output here, not sure if it's all relevant. Still appear to be getting error message:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'plymouth-theme-sabily' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-mate-text' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-budgie-text' for glob 'plymouth-*'
Note, selecting 'plymouth-themes' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-kubuntu-text' for glob 'plymouth-*'
Note, selecting 'plymouth-theme' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-lubuntu-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-label' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-script' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-lubuntu-next-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-xubuntu-text' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-text' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-spinfinity' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-solar' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-gnome-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-dev' for glob 'plymouth-*'
Note, selecting 'plymouth-drm' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-mate-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-budgie-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-all' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-glow' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-edubuntu' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-spinner' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-hamara' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-kubuntu-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-lubuntu-text' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-fade-in' for glob 'plymouth-*'
Note, selecting 'plymouth-disabler' for glob 'plymouth-*'
Note, selecting 'plymouth-themes-spinner' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntustudio' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-lubuntu-next-text' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-breeze' for glob 'plymouth-*'
Note, selecting 'plymouth-x11' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-xubuntu-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-logo' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-ubuntu-gnome-text' for glob 'plymouth-*'
Note, selecting 'plymouth-theme-sabily-text' for glob 'plymouth-*'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-all'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-fade-in'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-glow'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-script'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-solar'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-spinfinity'
Note, selecting 'plymouth-themes' instead of 'plymouth-themes-spinner'
The following additional packages will be installed:
  grub2-themes-ubuntustudio
Suggested packages:
  gdm
The following NEW packages will be installed:
  grub2-themes-ubuntustudio plymouth-disabler plymouth-theme-breeze plymouth-theme-edubuntu plymouth-theme-hamara plymouth-theme-kubuntu-logo plymouth-theme-kubuntu-text
  plymouth-theme-lubuntu-logo plymouth-theme-lubuntu-text plymouth-theme-sabily plymouth-theme-sabily-text plymouth-theme-spinner plymouth-theme-ubuntu-budgie-logo
  plymouth-theme-ubuntu-budgie-text plymouth-theme-ubuntu-gnome-logo plymouth-theme-ubuntu-gnome-text plymouth-theme-ubuntu-logo plymouth-theme-ubuntu-mate-logo
  plymouth-theme-ubuntu-mate-text plymouth-theme-ubuntustudio plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text plymouth-themes plymouth-x11
0 upgraded, 24 newly installed, 2 reinstalled, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
Need to get 4,573 kB of archives.
After this operation, 8,160 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://packages.linuxmint.com uma/upstream amd64 plymouth-label amd64 0.9.4+mint2+ulyssa [42.9 kB]
Get:2 http://ubuntu.mirror.constant.com focal/universe amd64 grub2-themes-ubuntustudio all 0.3 [21.2 kB]
Get:3 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-disabler all 0.1 [3,098 B]
Get:4 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-breeze amd64 5.18.4.1-0ubuntu1 [71.9 kB]
Get:5 http://packages.linuxmint.com uma/upstream amd64 plymouth-theme-spinner amd64 0.9.4+mint2+ulyssa [203 kB]
Get:6 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-edubuntu all 15.12.1 [43.0 kB]
Get:7 http://packages.linuxmint.com uma/upstream amd64 plymouth-theme-ubuntu-logo amd64 0.9.4+mint2+ulyssa [135 kB]
Get:8 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-hamara all 1.0 [299 kB] 
Get:9 http://packages.linuxmint.com uma/upstream amd64 plymouth-theme-ubuntu-text amd64 0.9.4+mint2+ulyssa [45.9 kB]
Get:10 http://packages.linuxmint.com uma/upstream amd64 plymouth-themes amd64 0.9.4+mint2+ulyssa [666 kB]
Get:11 http://packages.linuxmint.com uma/upstream amd64 plymouth-x11 amd64 0.9.4+mint2+ulyssa [44.7 kB]
Get:12 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-kubuntu-logo all 1:20.04.9 [37.2 kB]
Get:13 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-kubuntu-text all 1:20.04.9 [4,456 B]
Get:14 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-lubuntu-logo all 20.04.3 [26.1 kB]
Get:15 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-lubuntu-text all 20.04.3 [3,712 B]
Get:16 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-sabily all 1.3 [1,760 kB]
Get:17 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-sabily-text all 1.3 [9,776 B]
Get:18 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-budgie-logo all 0.12.3 [33.3 kB]
Get:19 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-budgie-text all 0.12.3 [10.1 kB]
Get:20 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-gnome-logo all 20.04.1 [88.8 kB]
Get:21 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-gnome-text all 20.04.1 [10.0 kB]
Get:22 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-mate-logo all 20.04.2 [38.7 kB]
Get:23 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntu-mate-text all 20.04.2 [15.3 kB]
Get:24 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-ubuntustudio all 20.04.1 [926 kB]
Get:25 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-xubuntu-logo all 20.04.2 [23.4 kB]
Get:26 http://ubuntu.mirror.constant.com focal/universe amd64 plymouth-theme-xubuntu-text all 20.04.2 [10.8 kB]
Fetched 4,573 kB in 1s (3,902 kB/s)                      
Selecting previously unselected package grub2-themes-ubuntustudio.
(Reading database ... 368884 files and directories currently installed.)
Preparing to unpack .../00-grub2-themes-ubuntustudio_0.3_all.deb ...
Unpacking grub2-themes-ubuntustudio (0.3) ...
Selecting previously unselected package plymouth-disabler.
Preparing to unpack .../01-plymouth-disabler_0.1_all.deb ...
Unpacking plymouth-disabler (0.1) ...
Preparing to unpack .../02-plymouth-label_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-label (0.9.4+mint2+ulyssa) over (0.9.4+mint2+ulyssa) ...
Selecting previously unselected package plymouth-theme-breeze.
Preparing to unpack .../03-plymouth-theme-breeze_5.18.4.1-0ubuntu1_amd64.deb ...
Unpacking plymouth-theme-breeze (5.18.4.1-0ubuntu1) ...
Selecting previously unselected package plymouth-theme-edubuntu.
Preparing to unpack .../04-plymouth-theme-edubuntu_15.12.1_all.deb ...
Unpacking plymouth-theme-edubuntu (15.12.1) ...
Selecting previously unselected package plymouth-theme-hamara.
Preparing to unpack .../05-plymouth-theme-hamara_1.0_all.deb ...
Unpacking plymouth-theme-hamara (1.0) ...
Selecting previously unselected package plymouth-theme-kubuntu-logo.
Preparing to unpack .../06-plymouth-theme-kubuntu-logo_1%3a20.04.9_all.deb ...
Unpacking plymouth-theme-kubuntu-logo (1:20.04.9) ...
Selecting previously unselected package plymouth-theme-kubuntu-text.
Preparing to unpack .../07-plymouth-theme-kubuntu-text_1%3a20.04.9_all.deb ...
Unpacking plymouth-theme-kubuntu-text (1:20.04.9) ...
Selecting previously unselected package plymouth-theme-lubuntu-logo.
Preparing to unpack .../08-plymouth-theme-lubuntu-logo_20.04.3_all.deb ...
Unpacking plymouth-theme-lubuntu-logo (20.04.3) ...
Selecting previously unselected package plymouth-theme-lubuntu-text.
Preparing to unpack .../09-plymouth-theme-lubuntu-text_20.04.3_all.deb ...
Unpacking plymouth-theme-lubuntu-text (20.04.3) ...
Selecting previously unselected package plymouth-theme-sabily.
Preparing to unpack .../10-plymouth-theme-sabily_1.3_all.deb ...
Unpacking plymouth-theme-sabily (1.3) ...
Selecting previously unselected package plymouth-theme-sabily-text.
Preparing to unpack .../11-plymouth-theme-sabily-text_1.3_all.deb ...
Unpacking plymouth-theme-sabily-text (1.3) ...
Selecting previously unselected package plymouth-theme-spinner.
Preparing to unpack .../12-plymouth-theme-spinner_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-theme-spinner (0.9.4+mint2+ulyssa) ...
Selecting previously unselected package plymouth-theme-ubuntu-budgie-logo.
Preparing to unpack .../13-plymouth-theme-ubuntu-budgie-logo_0.12.3_all.deb ...
Unpacking plymouth-theme-ubuntu-budgie-logo (0.12.3) ...
Selecting previously unselected package plymouth-theme-ubuntu-budgie-text.
Preparing to unpack .../14-plymouth-theme-ubuntu-budgie-text_0.12.3_all.deb ...
Unpacking plymouth-theme-ubuntu-budgie-text (0.12.3) ...
Selecting previously unselected package plymouth-theme-ubuntu-gnome-logo.
Preparing to unpack .../15-plymouth-theme-ubuntu-gnome-logo_20.04.1_all.deb ...
Unpacking plymouth-theme-ubuntu-gnome-logo (20.04.1) ...
Selecting previously unselected package plymouth-theme-ubuntu-gnome-text.
Preparing to unpack .../16-plymouth-theme-ubuntu-gnome-text_20.04.1_all.deb ...
Unpacking plymouth-theme-ubuntu-gnome-text (20.04.1) ...
Selecting previously unselected package plymouth-theme-ubuntu-logo.
Preparing to unpack .../17-plymouth-theme-ubuntu-logo_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-theme-ubuntu-logo (0.9.4+mint2+ulyssa) ...
Selecting previously unselected package plymouth-theme-ubuntu-mate-logo.
Preparing to unpack .../18-plymouth-theme-ubuntu-mate-logo_20.04.2_all.deb ...
Unpacking plymouth-theme-ubuntu-mate-logo (20.04.2) ...
Selecting previously unselected package plymouth-theme-ubuntu-mate-text.
Preparing to unpack .../19-plymouth-theme-ubuntu-mate-text_20.04.2_all.deb ...
Unpacking plymouth-theme-ubuntu-mate-text (20.04.2) ...
Preparing to unpack .../20-plymouth-theme-ubuntu-text_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-theme-ubuntu-text (0.9.4+mint2+ulyssa) over (0.9.4+mint2+ulyssa) ...
Selecting previously unselected package plymouth-theme-ubuntustudio.
Preparing to unpack .../21-plymouth-theme-ubuntustudio_20.04.1_all.deb ...
Unpacking plymouth-theme-ubuntustudio (20.04.1) ...
Selecting previously unselected package plymouth-theme-xubuntu-logo.
Preparing to unpack .../22-plymouth-theme-xubuntu-logo_20.04.2_all.deb ...
Unpacking plymouth-theme-xubuntu-logo (20.04.2) ...
Selecting previously unselected package plymouth-theme-xubuntu-text.
Preparing to unpack .../23-plymouth-theme-xubuntu-text_20.04.2_all.deb ...
Unpacking plymouth-theme-xubuntu-text (20.04.2) ...
Selecting previously unselected package plymouth-themes.
Preparing to unpack .../24-plymouth-themes_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-themes (0.9.4+mint2+ulyssa) ...
Selecting previously unselected package plymouth-x11.
Preparing to unpack .../25-plymouth-x11_0.9.4+mint2+ulyssa_amd64.deb ...
Unpacking plymouth-x11 (0.9.4+mint2+ulyssa) ...
Setting up plymouth-theme-hamara (1.0) ...
Setting up plymouth-theme-breeze (5.18.4.1-0ubuntu1) ...
Setting up plymouth-disabler (0.1) ...
Setting up initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-x11 (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.4.0-89-generic (5.4.0-89.100) ...
Setting up grub2-themes-ubuntustudio (0.3) ...
Setting up plymouth-theme-ubuntu-text (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-mate-text (20.04.2) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-xubuntu-text (20.04.2) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-kubuntu-text (1:20.04.9) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-label (0.9.4+mint2+ulyssa) ...
Setting up plymouth-theme-lubuntu-text (20.04.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-kubuntu-logo (1:20.04.9) ...
update-initramfs: deferring update (trigger activated)
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-89-generic
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
Found linux image: /boot/vmlinuz-5.4.0-74-generic
Found initrd image: /boot/initrd.img-5.4.0-74-generic
Adding boot menu entry for UEFI Firmware Settings
done
Setting up plymouth-theme-ubuntu-budgie-text (0.12.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntustudio (20.04.1) ...
update-alternatives: using /usr/share/plymouth/themes/ubuntustudio-logo/ubuntustudio-logo.plymouth to provide /usr/share/plymouth/themes/default.plymouth (default.plymouth) in manual mode
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-mate-logo (20.04.2) ...
FRAMEBUFFER=y
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-edubuntu (15.12.1) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-budgie-logo (0.12.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-gnome-text (20.04.1) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-sabily-text (1.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-lubuntu-logo (20.04.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-xubuntu-logo (20.04.2) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-sabily (1.3) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-logo (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
Setting up plymouth-theme-ubuntu-gnome-logo (20.04.1) ...
update-initramfs: deferring update (trigger activated)
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-89-generic
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
Found linux image: /boot/vmlinuz-5.4.0-74-generic
Found initrd image: /boot/initrd.img-5.4.0-74-generic
Adding boot menu entry for UEFI Firmware Settings
done
Setting up plymouth-theme-spinner (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-89-generic
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
Found linux image: /boot/vmlinuz-5.4.0-74-generic
Found initrd image: /boot/initrd.img-5.4.0-74-generic
Adding boot menu entry for UEFI Firmware Settings
done
Setting up plymouth-themes (0.9.4+mint2+ulyssa) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-88-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-88-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-89-generic (5.4.0-89.100) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.0-89-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-89-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-89-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-89-generic (--configure):
 installed linux-image-5.4.0-89-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
 linux-image-5.4.0-89-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Lenovo ThinkPad X1C10
Linux Mint 21.1 Cinnamon 5.6.8. (64-bit)
hedgehoggy
Level 3
Level 3
Posts: 157
Joined: Thu Jan 25, 2018 8:12 am

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by hedgehoggy »

What type of problem is this, exactly?
Lenovo ThinkPad X1C10
Linux Mint 21.1 Cinnamon 5.6.8. (64-bit)
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by rene »

hedgehoggy wrote: Tue Oct 19, 2021 1:01 pm What type of problem is this, exactly?
Plymouth is the splash screen, and it fails to install onto the initramfs. But what type exactly...

It's going to be the set -e in /usr/share/initramfs-tools/hooks/plymouth that has the script exit after "something else" bugs out but unfortunately we don't get t see what said something else in fact is, making this hard to pin down non-locally.

Are you at all script-savvy? If I'd have had this issue I'd start instrumenting /usr/share/initramfs-tools/hooks/plymouth by e.g. putting "echo 1" (and 2,3,4, ...,so on) statements before every if, for and case statement to see where it fails.
hedgehoggy
Level 3
Level 3
Posts: 157
Joined: Thu Jan 25, 2018 8:12 am

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by hedgehoggy »

My laptop just died, writing this on my phone
Lenovo ThinkPad X1C10
Linux Mint 21.1 Cinnamon 5.6.8. (64-bit)
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by rene »

Umm. Well, if something was segfaulting then that may have been the failure I suppose. It would not seem we, anyone, would be likely to be able to troubleshoot this from over the net though if now have a "dead" computer.
hedgehoggy
Level 3
Level 3
Posts: 157
Joined: Thu Jan 25, 2018 8:12 am

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by hedgehoggy »

Ok, back now. I probably had way too many things open which is what caused the crash. I Timeshifted the hell out! Before doing so my laptop wouldn't start, and then when it did I got a weird looking grub boot screen. Anyway, this is my list of snapshots, if that helps . . .
2021-10-19-13-21-49.png
Also here are the updates, before which I don't think I experienced any issues . . .
2021-10-19-13-33-12.png
Lenovo ThinkPad X1C10
Linux Mint 21.1 Cinnamon 5.6.8. (64-bit)
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by rene »

And you still have a/the problem if you do e.g. sudo apt-get install -f?
hedgehoggy
Level 3
Level 3
Posts: 157
Joined: Thu Jan 25, 2018 8:12 am

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by hedgehoggy »

Um, if I try that is it going to mess things up again?
Lenovo ThinkPad X1C10
Linux Mint 21.1 Cinnamon 5.6.8. (64-bit)
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Update problem: " . . . generic package post-installation script subprocess returned error exit status 1"

Post by rene »

No, it'll only fix anything (known to apt to be) wrong.
Locked

Return to “Beginner Questions”