1

This is the output of

sudo apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer 
required:
linux-modules-4.15.0-33-generic linux-modules-4.15.0-34-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
linux-image-4.15.0-33-generic linux-image-4.15.0-34-generic
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 16.6 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 237395 files and directories currently 
installed.)
Removing linux-image-4.15.0-33-generic (4.15.0-33.36) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-33-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
/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
Found Windows Boot Manager on 
/dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 
127
dpkg: error processing package linux-image-4.15.0-33-generic (-- 
remove):
installed linux-image-4.15.0-33-generic package post-removal script 
subprocess returned error exit status 1
Removing linux-image-4.15.0-34-generic (4.15.0-34.37) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-34-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
/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
Found Windows Boot Manager on 
/dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code     
127
dpkg: error processing package linux-image-4.15.0-34-generic (-- 
remove):
installed linux-image-4.15.0-34-generic package post-removal script 
subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-4.15.0-33-generic
linux-image-4.15.0-34-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

https://i.stack.imgur.com/WaZPo.png

Edit: the output of

sudo locate libcrypto.so.1.0.0

/snap/core/5897/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/core/6130/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/core/6350/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/core18/594/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/core18/677/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/gnome-3-26-1604/70/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/gnome-3-26-1604/74/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/kde-frameworks-5-core18/26/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0


apt list libssl1*

Listing... Done
libssl1.0-dev/bionic-updates,bionic-security 1.0.2n-1ubuntu5.2 amd64
libssl1.0.0/bionic-updates,bionic-security,now 1.0.2n-1ubuntu5.2 amd64 [installed]
libssl1.1/bionic-updates,bionic-security,now 1.1.0g-2ubuntu4.3 amd64 [installed]
  • The root problem seems to be the line: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory. Please edit your question to tell us a bit more about encryption, if any, in your setup. – user535733 Feb 6 at 15:49
  • @user535733 It's just a regular upgrade for current packages, no encryption encountered, my current kernel is 4.15.0-39-generic and i'm trying to remove the old kernels to be able to install the 4.20 kernel and any other package as well, I don't know what is the exact problem with this line. – Fares Salem Feb 6 at 16:09
  • Can you execute locate libcrypto.so.1.0.0 and append the output to your question? – Charles Green Feb 6 at 16:54
  • Also the output of apt list libssl1* – Charles Green Feb 6 at 16:56
  • It looks as though it is installed and in the right place. I would try to execute the command sudo apt install --reinstall libssl1.0.0 to see if this fixes some odd linkage error. – Charles Green Feb 6 at 17:21
2

First locate where is your library:

sudo locate libcrypto.so.1.0.0

Then copy that into your /usr/lib/ folder:

sudo cp /snap/gnome-3-26-1604/82/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/
  • Thanks but that does nothing, please check the comments on the question itself. – Fares Salem Apr 29 at 16:39
  • Did you move it to usr/lib? Outside of x86... folder where you have it now. It worked for me. I had the same problem. – Rodrigo Lledó May 21 at 15:13
  • Yes I moved it and its located in the right place, it didn’t work yet @RodrigoLledó – Fares Salem May 31 at 18:16
  • It kind of worked for me, but now I get following : /etc/grub.d/bin/grubcfg_proxy: /usr/lib/libcrypto.so.1.0.0: no version information available (required by /etc/grub.d/bin/grubcfg_proxy) – Johannes Lemonde Jul 22 at 8:08
1

Please check that what version of libssl installed on your system, In case of mine on Ubuntu 19.04 there was libssl1.1 instead of required libssl1.0. So I have to install software that comes with libssl1.0. Best part is ubuntu comes with snap to install such softwares like Termius. Then fix the problem as answered by "Rodrigo".

Locate the installed path:

sudo locate libcrypto.so.1.0.0

Then either add the discovered path to path variable:

export PATH=<discovered path>:$PATH

Or add libraries to pre included path:

sudo ln -s <discovered path> /usr/lib/

-1

From https://itsfoss.com/dpkg-returned-an-error-code-1/:

You should try to run sudo apt update and then try to install a new package or upgrade after trying each of the methods below:

Reconfigure Package Database

The first method you can try is to reconfigure the package database. Probably the database got corrupted while installing a package. Reconfiguring often fixes the problem.

sudo dpkg --configure -a

Try removing the troublesome package

sudo apt remove
  • 1
    The error seems to be 'file not found', not 'file corrupt'. – user535733 Feb 6 at 15:50
  • 2
    When reproducing content from somewhere else, you need to always put it in a quote block to show what is yours and what is being quoted. – terdon Feb 6 at 16:38
  • non of these worked – Fares Salem Feb 6 at 18:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.