Hi All
I have recently upgraded from 18.04 LTS to 20.04 LTS. During the upgrade, there were errors to do with removing an old kernel.
If I run Synaptic, and select Broken dependencies, there is one package listed: linux-image-4.15.0-117-generic
The linux-image is marked for complete removal and cannot be un-marked. If I Apply the changes, then the details windows has the output shown below.
Although I have used Ubuntu LTS releases for many years, they have always just worked and so I have little experience in fixing issues such as the one I have now.
In the output below I can see a number of errors, including "/etc/grub.d/25_custom_proxy: 3: /etc/grub.d/bin/grubcfg_proxy: not found" and "installed linux-image-4.15.0-117-generic package post-removal script subprocess returned error exit status 1". I am guessing that we can ignore the "cryptsetup: WARNING: Option 'size' missing in crypttab" error for now.
Can anyone suggest what I should do next? I have searched the forums for answers but haven't found anything that works. If someone can point me to a relevant thread, I would appreciate that.
Cheers
Andrew Mc
Code:
(Reading database ... 300694 files and directories currently installed.)
Removing linux-image-4.15.0-117-generic (4.15.0-117.118) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-117-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
Found linux image: /boot/vmlinuz-5.4.0-51-generic
Found initrd image: /boot/initrd.img-5.4.0-51-generic
Found linux image: /boot/vmlinuz-5.4.0-48-generic
Found initrd image: /boot/initrd.img-5.4.0-48-generic
Found linux image: /boot/vmlinuz-4.15.0-118-generic
Found initrd image: /boot/initrd.img-4.15.0-118-generic
/etc/grub.d/25_custom_proxy: 3: /etc/grub.d/bin/grubcfg_proxy: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-4.15.0-117-generic (--remove):
installed linux-image-4.15.0-117-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-4.15.0-117-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up linux-image-5.4.0-52-generic (5.4.0-52.57) ...
Setting up linux-image-5.4.0-51-generic (5.4.0-51.56) ...
Processing triggers for linux-image-5.4.0-52-generic (5.4.0-52.57) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-52-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-52-generic
cryptsetup: WARNING: Option 'size' missing in crypttab for plain dm-crypt
mapping cryptswap1. Please read
/usr/share/doc/cryptsetup-initramfs/README.initramfs.gz and add the correct
'size' option to your crypttab(5).
cryptsetup: WARNING: Resume target cryptswap1 uses a key file
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
Found linux image: /boot/vmlinuz-5.4.0-51-generic
Found initrd image: /boot/initrd.img-5.4.0-51-generic
Found linux image: /boot/vmlinuz-5.4.0-48-generic
Found initrd image: /boot/initrd.img-5.4.0-48-generic
Found linux image: /boot/vmlinuz-4.15.0-118-generic
Found initrd image: /boot/initrd.img-4.15.0-118-generic
/etc/grub.d/25_custom_proxy: 3: /etc/grub.d/bin/grubcfg_proxy: not found
tail: write error: Broken pipe
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.4.0-52-generic (--configure):
installed linux-image-5.4.0-52-generic package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-51-generic (5.4.0-51.56) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-51-generic
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-51-generic
cryptsetup: WARNING: Option 'size' missing in crypttab for plain dm-crypt
mapping cryptswap1. Please read
/usr/share/doc/cryptsetup-initramfs/README.initramfs.gz and add the correct
'size' option to your crypttab(5).
cryptsetup: WARNING: Resume target cryptswap1 uses a key file
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
Found linux image: /boot/vmlinuz-5.4.0-51-generic
Found initrd image: /boot/initrd.img-5.4.0-51-generic
Found linux image: /boot/vmlinuz-5.4.0-48-generic
Found initrd image: /boot/initrd.img-5.4.0-48-generic
Found linux image: /boot/vmlinuz-4.15.0-118-generic
Found initrd image: /boot/initrd.img-4.15.0-118-generic
/etc/grub.d/25_custom_proxy: 3: /etc/grub.d/bin/grubcfg_proxy: not found
tail: write error: Broken pipe
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.4.0-51-generic (--configure):
installed linux-image-5.4.0-51-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-5.4.0-52-generic
linux-image-5.4.0-51-generic
Bookmarks