Author Topic: Ubuntu 16.04 - update/upgrade problem  (Read 32387 times)

0 Members and 1 Guest are viewing this topic.

Offline Keith

  • Hero Member
  • *****
  • Posts: 861
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Ubuntu 16.04 - update/upgrade problem
« on: June 15, 2017, 03:32:26 pm »
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:

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 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.
« Last Edit: June 15, 2017, 03:34:24 pm by Keith »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17937
  • Karma: 461
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ubuntu 16.04 - update/upgrade problem
« Reply #1 on: June 15, 2017, 11:57:58 pm »
What happens if you run
Code: [Select]
sudo apt-get install --reinstall libssl1.0.0
?
« Last Edit: June 16, 2017, 12:03:34 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Keith

  • Hero Member
  • *****
  • Posts: 861
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Ubuntu 16.04 - update/upgrade problem
« Reply #2 on: June 16, 2017, 08:47:25 am »
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

Offline Keith

  • Hero Member
  • *****
  • Posts: 861
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Ubuntu 16.04 - update/upgrade problem
« Reply #3 on: June 16, 2017, 11:11:54 am »
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:
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:~$


Does this help at all? 



Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17937
  • Karma: 461
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ubuntu 16.04 - update/upgrade problem
« Reply #4 on: June 16, 2017, 05:31:33 pm »
Try this;
Code: [Select]
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
Code: [Select]
sudo dpkg --configure -a
finishes without error ?

If it does, run:
Code: [Select]
sudo apt-get install --reinstall libssl1.0.0 openssl

If it doesn't, move it back with
Code: [Select]
sudo mv -v /lib/x86_64-linux-gnu/libcrypto.so.1.0.0.bak /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Keith

  • Hero Member
  • *****
  • Posts: 861
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Ubuntu 16.04 - update/upgrade problem
« Reply #5 on: June 16, 2017, 08:06:02 pm »
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

Offline Keith

  • Hero Member
  • *****
  • Posts: 861
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Ubuntu 16.04 - update/upgrade problem
« Reply #6 on: June 20, 2017, 06:11:40 pm »
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

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal