Removing linux-headers-5.13.0-19-generic (5.13.0-19.19) ... dpkg: warning: while removing linux-headers-5.13.0-19-generic, directory '/lib/modules/5.13.0-19-generic' not empty so not removed Removing linux-headers-5.13.0-19 (5.13.0-19.19) ... Removing linux-headers-5.13.0-39 (5.13.0-39.44) ... Removing linux-headers-5.13.0-40 (5.13.0-40.45) ... Removing linux-headers-generic-hwe-20.04 (5.15.0.25.27) ... Removing linux-image-generic-hwe-20.04 (5.15.0.25.27) ... Removing ltrace (0.7.3-6.1ubuntu6) ... Removing perl-modules-5.32 (5.32.1-3ubuntu3) ... Removing python3-simplejson (3.17.6-1build1) ... Removing ubuntu-wallpapers-impish (22.04.4-0ubuntu1) ... Removing libssl1.1:amd64 (1.1.1l-1ubuntu1.2) ... Removing linux-modules-5.13.0-39-generic (5.13.0-39.44) ... Removing linux-image-5.13.0-39-generic (5.13.0-39.44) ... /etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting /boot/initrd.img-5.13.0-39-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.15.0-25-generic Found initrd image: /boot/initrd.img-5.15.0-25-generic Found linux image: /boot/vmlinuz-5.13.0-40-generic Found initrd image: /boot/initrd.img-5.13.0-40-generic /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. ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/linux-image-5.13.0-39-generic.0.crash' Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1) Error during commit A problem occurred during the clean-up. Please see the message below for more information. installArchives() failed System upgrade is complete. Restart required