apt relocation error after upgrade ubuntu from 12 to 16 (Solution)

apt relocation error on ubuntu 1604 (Solution)

If  you have an ubuntu server with version 12.04LTS and you going to upgrade to the latest version of operating system with Long Term Support which is Ubuntu 16.04.02LTS for now.

Run below Command to update and upgrade first:

  1. apt-get update
  2. apt-get upgrade
  3. do-release-upgrade (Now we update to Ubuntu 14.04LTS)

Wait for sometime and you will get ubuntu 14.04LTS, and now we can update to 16.04LTS

  1. apt-get update
  2. apt-get upgrade
  3. do-release-upgrade

and check os version by using below command:

lsb_release -a

and when you try to install something via apt u will get an apt relocation error on your ubuntu.

Here the solution:

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

apt-get -f install 


Congratulation, Your ubuntu is updated are apt is back.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *