Ubuntu 16.04 - update/upgrade problem

One of the elderly Linux users that I look after is a very adventurous chap who enjoys doing technical things with his Linux machine despite having even less of a clue than I do. I can usually fix his cock-ups and look really smart into the bargain, but he has me stumped this time. He has a Lenovo B50 laptop.

Because of his abysmal BT service (0 → 0.7Mb/s) I advised him to update manually when the connection appears reliable. On this occasion, however, he chose “Update software” rather than “Software updater” from the menu and got into a mess when the connection failed.

My usual solution (gained from this Forum, thank you) is to run
sudo apt-get upgrade
sudo apt-get update
sudo apt-get upgrade

and all is usually well, but what I had was:

[i]harry@B50:~$ sudo apt-get upgrade
[sudo] password for harry:
E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure -a’ to correct the problem.
harry@B50:~$ sudo dpkg --configure -a
Processing triggers for libc-bin (2.23-0ubuntu7) …
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/libssl.so.1.0.0 is not a symbolic link

/sbin/ldconfig.real: /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 is not a symbolic link

dpkg: dependency problems prevent configuration of openssl:
openssl depends on libssl1.0.0 (>= 1.0.2g); however:
Package libssl1.0.0:amd64 is not installed.

dpkg: error processing package openssl (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openssl
harry@B50:~$[/i]

I attempted to install libssl1.0.0:amd64 via Synaptic Package Manager, but it wasn’t there to install and a search of the interweb hasn’t helped resolve the problem.
I would be very grateful for any advice that can be implemented via Teamviewer as my mate lives 100 miles away.

What happens if you run

sudo apt-get install --reinstall libssl1.0.0

?

Now this is interesting.
The email announcing your reply to my post actually reads:
The text of the reply is shown below:
Try this
Code: [Select]
sudo mv -v /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libssl.so.1.0.0.original
then
Code: [Select]
sudo apt-get install --reinstall libssl1.0.0 openssl

I wonder why the first command is missing from your listed post?
Anyway; I shall certainly try this when I can contact my mate and get on Teamviewer and shall report back later today.

Thank you,
Keith

Here are the results:
harry@B50:~$ sudo apt-get install --reinstall libssl1.0.0 openssl
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libgles1-mesa linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-71
linux-headers-4.4.0-71-generic linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic
linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic linux-image-4.4.0-71-generic linux-image-4.4.0-72-generic linux-image-4.4.0-75-generic
linux-image-extra-4.4.0-64-generic linux-image-extra-4.4.0-66-generic linux-image-extra-4.4.0-71-generic linux-image-extra-4.4.0-72-generic
linux-image-extra-4.4.0-75-generic linux-signed-image-4.4.0-64-generic linux-signed-image-4.4.0-66-generic linux-signed-image-4.4.0-71-generic
linux-signed-image-4.4.0-72-generic linux-signed-image-4.4.0-75-generic snap-confine
Use ‘sudo apt autoremove’ to remove them.
0 to upgrade, 0 to newly install, 2 reinstalled, 0 to remove and 8 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/1,081 kB of archives.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for openssl:amd64

So then I did:
[i]harry@B50:~$ sudo apt autoremove
……(many lines, then)…
Processing triggers for libc-bin (2.23-0ubuntu7) …
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 is not a symbolic link

dpkg: error processing package libssl1.0.0:amd64 (–configure):
package libssl1.0.0:amd64 is not ready for configuration
cannot configure (current status ‘half-installed’)
No apport report written because the error message indicates it’s a follow-up error from a previous failure.
dpkg: dependency problems prevent configuration of openssl:
openssl depends on libssl1.0.0 (>= 1.0.2g); however:
Package libssl1.0.0:amd64 is not installed.

dpkg: error processing package openssl (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libssl1.0.0:amd64
openssl
E: Sub-process /usr/bin/dpkg returned an error code (1)
harry@B50:~$[/i]

Does this help at all?

Try this;

sudo mv -v /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0.bak

then see if

sudo dpkg --configure -a

finishes without error ?

If it does, run:

sudo apt-get install --reinstall libssl1.0.0 openssl

If it doesn’t, move it back with

sudo mv -v /lib/x86_64-linux-gnu/libcrypto.so.1.0.0.bak /lib/x86_64-linux-gnu/libcrypto.so.1.0.0

Thanks for this, Mark.
My 85-year-old mate is with his girlfriend for the weekend now, so I shall have to wait until Monday to try out your suggestions.

Keith

Unfortunately, your suggestion did not work. The dpkg error summary is:

Errors were encountered while processing:
linux-headers-4.4.0-81-generic
openssl
linux-headers-generic
linux-signed-generic
linux-generic

Keith