升级到 22.04 后安装出现错误

升级到 22.04 后安装出现错误

升级后出现以下错误:

sudo apt --fix-broken install  
Reading package lists... Done  
Building dependency tree... Done  
Reading state information... Done  
Correcting dependencies... Done  
The following additional packages will be installed:  
  linux-image-unsigned-5.15.0-30-generic  
Suggested packages:  
  fdutils linux-doc | linux-source-5.15.0 linux-tools  
  linux-headers-5.15.0-30-generic linux-modules-extra-5.15.0-30-generic  
The following packages will be REMOVED:  
  linux-image-5.15.0-30-generic  
The following NEW packages will be installed:  
  linux-image-unsigned-5.15.0-30-generic  
0 upgraded, 1 newly installed, 1 to remove and 9 not upgraded.  
3 not fully installed or removed.  
Need to get 0 B/11.2 MB of archives.  
After this operation, 270 kB of additional disk space will be used.  
Do you want to continue? [Y/n] y  
dpkg: linux-image-5.15.0-30-generic: dependency problems, but  
 removing anyway as  
 you requested:  
 linux-modules-5.15.0-30-generic depends on linux-image-5.15.0-30-generic | linu  
x-image-unsigned-5.15.0-30-generic; however:  
  Package linux-image-5.15.0-30-generic is to be removed.  
  Package linux-image-unsigned-5.15.0-30-generic is not installed.  

(Reading database ... 204003 files and directories currently  
 installed.)   
Removing linux-image-5.15.0-30-generic (5.15.0-30.31) ...  
/etc/kernel/postrm.d/initramfs-tools:  
update-initramfs: Deleting /boot/initrd.img-5.15.0-30-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-33-generic  
Found initrd image: /boot/initrd.img-5.15.0-33-generic  
Found linux image: /boot/vmlinuz-5.15.0-27-generic  
Found initrd image: /boot/initrd.img-5.15.0-27-generic  
/etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: libcrypto.s  
o.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.15.0-30-generic (--remove):  
 installed linux-image-5.15.0-30-generic package post-removal script subprocess   
returned error exit status 1  
dpkg: too many errors, stopping  
Errors were encountered while processing:  
 linux-image-5.15.0-30-generic  
Processing was halted because there were too many errors.  
E: Sub-process /usr/bin/dpkg returned an error code (1)  

相关内容