只要一执行与apt相关的命令就直接报这个错
apt-get update都不行apt: relocation error: /usr/lib/x86_64-linux-gnu/libapt-privat
.so.0.0: symbol _ZN3URIcvNSt7__cxx1112basic_stringIcSt11char_t
aitsIcESaIcEEEB5cxx11Ev version APTPKG_5.0 not defined in file
libapt-pkg.so.5.0 with link time reference
apt-get update都不行apt: relocation error: /usr/lib/x86_64-linux-gnu/libapt-privat
.so.0.0: symbol _ZN3URIcvNSt7__cxx1112basic_stringIcSt11char_t
aitsIcESaIcEEEB5cxx11Ev version APTPKG_5.0 not defined in file
libapt-pkg.so.5.0 with link time reference
wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg5.0_1.7.0_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.7.0_amd64.deb
dpkg -i libapt-pkg5.0_1.7.0_amd64.deb
dpkg -i apt_1.7.0_amd64.deb
apt --fix-broken install
完成以上操作后,就可以正常使用apt-get命令安装软件了。如果你的是32位的linux,则换成另外两个软件包,下载并安装它们。方法同64位的一样(也是共执行5条命令)。
http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg5.0_1.7.0_i386.deb
http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.7.0_i386.deb
dpkg: 关于含有 apt 的 apt_1.7.0_amd64.deb:
apt 会破坏 apt-transport-https (<< 1.5~alpha4~)
apt-transport-https (版本为 1.4)已存在并且 已安装。dpkg: 处理归档 apt_1.7.0_amd64.deb (--install)时出错:
安装 apt 将破坏 apt-transport-https,并且
不允许反配置(--auto-deconfigure 也许会有帮助)
在处理时有错误发生:
apt_1.7.0_amd64.deb