I just upgraded our machine from Ubuntu 14.04 to Ubuntu 16.04.1. After the upgrade, the desktop no longer opens. I just got to a black screen.

Also, when I tried to run sudo apt followed by anything, I got the following error:

apt-get: relocation error: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

Any help is great appreciated. Thanks.

share|improve this question
    
Having the exact same problem. Were you able to fix? – CentAu Aug 3 '16 at 19:44
    
@CentAu Yeah, the answer below fixed it for me. After downloading/re-installing the package, I updated and upgraded again, and now everything seems to be working. – Shawn Fahl Aug 4 '16 at 21:53
    
@ShawnFahl If the below answer worked for you, accept it as the best answer :) – kevlarjacket May 2 '17 at 15:32
up vote 3 down vote accepted

After upgrading from 14.04 to 16.04.1 I got the exact same problem. Just start your Ubuntu and press Ctrl+Alt+F1 to enter on console and then download and re-install the package libstdc++6_5.3.1-14ubuntu2.1_amd64.deb via dpkg -i :

wget http://launchpadlibrarian.net/259210936/libstdc++6_5.3.1-14ubuntu2.1_amd64.deb
sudo dpkg -i libstdc++6_5.3.1-14ubuntu2.1_amd64.deb

After that apt-get works fine, but I got some errors (due to mySQL and another installed libc). I try to remove those via apt-get remove which returns an error. Then I just run the command suggested by apt-get and now everything works fine.

Found the solution here: Upgrade from 14.04 to 16.04 dependency issues

share|improve this answer
    
I shorten the URL into goo.gl/NdPv2P, if you don't care about getting tracked by Google. – Franklin Yu Dec 20 '16 at 23:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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