Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. > sudo apt-get install --fix-broken --fix-missing
  2. 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
  3.  
  4. # Download the deb files in the right versions for 16.04:
  5. > wget mirrors.kernel.org/ubuntu/pool/main/a/apt/apt_1.2.10ubuntu1_amd64.deb
  6. > wget security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.2_amd64.deb
  7.  
  8. # Removing this specific version, which blocked installing the correct libstdc++6:
  9. > sudo dpkg --force-depends -r libstdc++6:i386
  10.  
  11. # Then install the "good" version from the file:
  12. > sudo dpkg --force-depends -i libstdc++6_5.4.0-6ubuntu1~16.04.2_amd64.deb
  13.  
  14. # Now, just install apt from file:
  15. > sudo dpkg -i apt_1.2.10ubuntu1_amd64.deb
  16.  
  17. # And finally, fix the mess I left while updating and trying things out:
  18. > sudo apt-get install -f --fix-missing
  19. > sudo apt-get autoremove
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement