软件索引已损坏

软件索引已损坏

从 Ubuntu 18.04 升级到 20.04 后,我一直收到提示,说我的软件索引已损坏并且应该运行,Sudo apt-install -f但如果我运行这个,我会得到:

Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-76 linux-headers-4.15.0-76-generic
  linux-image-4.15.0-76-generic linux-modules-4.15.0-76-generic
  linux-modules-extra-4.15.0-76-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-4.15.0-74-generic
0 upgraded, 0 newly installed, 1 to remove and 8 not upgraded.
2 not fully installed or removed.
After this operation, 8,398 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 628194 files and directories currently installed.)
Removing linux-image-4.15.0-74-generic (4.15.0-74.84) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-74-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-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-76-generic
Found initrd image: /boot/initrd.img-4.15.0-76-generic
/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-74-generic (--remove):
 installed linux-image-4.15.0-74-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-74-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

通常情况下会发生这种情况。我收到一个提示: 提示 1

如果我点击继续,我会得到软件索引被破坏 提示的截图

如果我点击部分升级,它就会开始升级,但是 提示 3

提示 4

然后我得到这两个并且部分升级完成,但是几个小时后首先出现的提示再次弹出。 提示 5 提示 6

相关内容