installed linux-image-5.13.0-39-generic package post-removal script subprocess returned error exit status 1
I installed "Jammy Jellyfish" several days ago and have since been receiving error messages about periodic upgrades. The summary is a copy and paste of one of the error messages.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Steven Langner
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
For diagnostic purposes please provide the full output of the commands (to be executed in a terminal window):
uname -a
lsb_release -crid
ls -l /boot/*vmlinuz*
sudo apt update
sudo apt full-upgrade
Revision history for this message
|
#2 |
I'm having the exact same issue. Here is the data requested from my system:
Linux PaulsWorkstation 5.15.0-27-generic #28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
lrwxrwxrwx 1 root root 25 Apr 28 17:41 /boot/vmlinuz -> vmlinuz-
-rw------- 1 root root 10246688 Mar 29 09:13 /boot/vmlinuz-
-rw------- 1 root root 11064224 Apr 13 23:47 /boot/vmlinuz-
lrwxrwxrwx 1 root root 25 Apr 28 17:41 /boot/vmlinuz.old -> vmlinuz-
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 https:/
Hit:5 http://
Hit:6 http://
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
hwinfo libhd21 libx86emu3 ruby-minitest ruby-power-assert ruby-test-unit
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
linux-
The following packages will be upgraded:
base-files
1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 62.8 kB of archives.
After this operation, 10.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://
Fetched 62.8 kB in 0s (173 kB/s)
(Reading database ... 248820 files and directories currently installed.)
Removing linux-image-
/etc/kernel/
update-initramfs: Deleting /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
using custom appearance settings
Found background image: /home/paul/
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
/etc/grub.
o.1.1: cannot open shared object file: No such file or directory
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
installed linux-image-
returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Revision history for this message
|
#3 |
@Paul Briery: Please do not piggyback on somebody else's question, but create a question document of your own.
Even if the symptoms look similar, the cause can be different and may require different actions.
Your system has been broken by grub-customizer.
There are discussions in Bug #1969353 and Bug #1969793 about this problem.
Revision history for this message
|
#4 |
Thank you so much for the links and the education on the etiquette of posting.
Revision history for this message
|
#5 |
To Manfred Hampl regarding your first answer to my question posted 2022-04-29:
I ran your suggested commands in a terminal window. How do I copy the results for posting here?
Revision history for this message
|
#6 |
There are different possibilities. In my opinion the easiest is:
In the terminal window click the right mouse button and in the pop-op that appears activate the display of the menu-bar
Then use the menu entries "edit - select all" and "edit - copy" for copying the output and paste it into the "Message:"-box of this question document
Revision history for this message
|
#7 |
steve@GuardianI
Linux GuardianIII 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
steve@GuardianI
lrwxrwxrwx 1 root root 25 Apr 28 10:08 /boot/vmlinuz -> vmlinuz-
-rw------- 1 root root 10246688 Mar 29 10:13 /boot/vmlinuz-
-rw------- 1 root root 11073600 Mar 30 11:29 /boot/vmlinuz-
-rw------- 1 root root 11064224 Apr 14 00:47 /boot/vmlinuz-
lrwxrwxrwx 1 root root 25 Apr 28 10:08 /boot/vmlinuz.old -> vmlinuz-
steve@GuardianI
[sudo] password for steve:
Hit:1 http://
Get:2 http://
Hit:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Fetched 222 kB in 1s (272 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
steve@GuardianI
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
linux-
The following packages will be upgraded:
libinput-bin libinput10
2 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
2 standard security updates
Need to get 151 kB of archives.
After this operation, 10.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://
Get:2 http://
Fetched 151 kB in 0s (518 kB/s)
(Reading database ... 205770 files and directories currently installed.)
Removing linux-image-
/etc/kernel/
update-initramfs: Deleting /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
/etc/grub.
o.1.1: cannot open shared object file: No such file or directory
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
installed linux-image-
returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
steve@GuardianI
Thank you.
Revision history for this message
|
#8 |
Paul Briery's problem is the same as yours and I already told him:
Your system has been broken by grub-customizer.
There are discussions in Bug #1969353 and Bug #1969793 about this problem.
Revision history for this message
|
#9 |
Well, while working this problem one of my drives decided to fail, the one with my Windows 10 installation on it. After I replaced the drive with a new one, I decided to completely wipe the remaining drive and do a clean installation of Jammy Jellyfish. Once I got Windows 10 installed on the other drive, I went in and added GRUB_DISABLE_
So, as afar as I'm concerned, my original problem is solved.