Software index is broken in Ubuntu 20.04

I upgraded from ubuntu 18.04 to 20.04 and now I am not able to install any software. Whenever I try to install anything I get
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 8 not upgraded.
3 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 … 664607 files and directories currently installed.)
Removing linux-image-4.15.0-74-generic (4.15.0-74.84) …
update-initramfs: Deleting /boot/initrd.img-4.15.0-74-generic
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-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
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.s
o.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:
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please help. I am stuck at this for so long. Any help would be appreciated. My question on stackoverflow for the same

IF you backed up all your important data BEFORE you did the upgrade, reinstall 20.04 from scratch. Many bad experiences taught me to ALWAYS back up everything to external media and ALWAYS do a fresh install. NEVER do an upgrade.
I will quickly defer to smarter people who can really answer your question. My way is cowardly but effective.

1 Like

Hey @berninghausen, you may think it “cowardly”, but I call it SMART.
The only part I would slightly dis-agree with is “never do an upgrade”. If you have your backup and the upgrade goes south, you can always restore. On my laptop I went from Linux Mint 19.1 and upgraded to 19.2 and then to 19.3. Maybe you were not talking about upgrades within a release.
But I also upgraded from Linux Mint 19.3 to 20.0 with no ill affects. Of course, again I had my backup to restore if needed.

Thanks, easy. I frequently feel that the K.I.S.S. principle was developed just for me. Fresh installs are my way of keeping it simple.

1 Like