I recently upgraded from Ubuntu 21.10
to 22.04
and the process went smoothly without reporting any errors.
Whenever I try to run a system update dpkg
raises the following error relating to the old linux-image
:
/etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.13.0-39-generic (--remove):
installed linux-image-5.13.0-39-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-5.13.0-39-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
dpkg
shows a status of remove
and Half
:
rH linux-image-5.13.0-39-generic 5.13.0-39.44 amd64 Signed kernel image generic
The following is in the dpkg
log:
2022-04-25 11:15:54 startup packages remove
2022-04-25 11:15:54 status half-installed linux-image-5.13.0-39-generic:amd64 5.13.0-39.44
2022-04-25 11:15:54 remove linux-image-5.13.0-39-generic:amd64 5.13.0-39.44 <none>
2022-04-25 11:15:55 startup archives unpack
I have tried to re-install the libssl1.0
package but I get the same error as above as dpkg
tries to remove the old linux-image
first. I have also tried to purge the image but it raises the same error as above too.
sudo apt purge linux-image-5.13.0-39-generic
I cannot re-install the old image as it not installable.
sudo apt install --reinstall linux-image-5.13.0-39-generic
The following packages have unmet dependencies:
linux-image-5.13.0-39-generic : Depends: linux-modules-5.13.0-39-generic but it is not installable
grub-customizer
installed and I used it to clean up grub a long time ago - it did not cause any issues. I will try to repair grub but I currently do not havelocate
installed and cannot use it to find thelibssl1.0.0
location, any suggestions? I cannot remove thegrub-customizer
package until I have fixed this.