升级到 Ubuntu 20.04 后无法运行 apt-get upgrade

升级到 Ubuntu 20.04 后无法运行 apt-get upgrade

最近,我点击了升级按钮,从 升级到Ubuntu 20.0418.04我认为由于某种原因,升级没有完成所有内容的安装...

系统运行正常,但是每次我尝试使用 apt 时都会出现以下错误:

xyz@xyz-laptop:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED
  linux-image-4.15.0-154-generic
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 8,485 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 211024 files and directories currently installed.)
Removing linux-image-4.15.0-154-generic (4.15.0-154.161) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-154-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-84-generic
Found initrd image: /boot/initrd.img-5.4.0-84-generic
Found linux image: /boot/vmlinuz-4.15.0-156-generic
Found initrd image: /boot/initrd.img-4.15.0-156-generic
Found linux image: /boot/vmlinuz-4.15.0-112-generic
Found initrd image: /boot/initrd.img-4.15.0-112-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Recovery Environment on /dev/sda3
Found Windows Recovery Environment on /dev/sda8
/etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: libcrypto.so.1.0.0: 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-4.15.0-154-generic (--remove):
 installed linux-image-4.15.0-154-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-154-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

我想知道是否有人知道我该怎么做才能解决这个问题,因为我不确定我是否有任何备份?

编辑:更多详细信息:

xyz@xyz-laptop:~$ dpkg -l | egrep -v '^ii|rc'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
+++-==========================================-===================================================-============-======================================================================================================
rH  linux-image-4.15.0-154-generic             4.15.0-154.161                                      amd64        Signed kernel image generic

答案1

完成!刚刚解决问题。

原来,libcrypto.so.1.0.0失踪了。

我开始用以下方法搜索:

xyz@xyz-laptop:~$ sudo locate libcrypto.so.1.0.0
/snap/core/11420/lib/x86_64-linux-gnu/libcrypto.so.1.0.0

然后在对其进行罚款后,我开始复制它:

xyz@xyz-laptop:~$ sudo cp /snap/core/11420/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/

就是这样!

我现在可以使用 进行升级sudo apt upgrade

(我的想法来自这里:Ubuntu 18.04:libcrypto.so.1.0.0:无法打开共享对象文件:没有此文件或目录

相关内容