代码: 全选
$ dpkg -l | grep 'libstdc++6'
rU libstdc++6:amd64 4.9.1-12 amd64 GNU Standard C++ Library v3
rF libstdc++6:i386 4.8.2-19ubuntu1 i386 GNU Standard C++ Library v3
libstdc++6:i386 是以前装的,没有问题的。
libstdc++6:amd64 是昨晚通过昨晚下载下来的libstdc++6_4.9.1-12_amd64.deb文件通过dpkg安装的,安装时由于遇到依赖关系没有成功。
现在由于libstdc++6:amd64安装时未满足依赖关系以及和libstdc++6:i386的冲突,导致apt 和软件中心都不能用了,比如:
代码: 全选
$ sudo apt-get remove firefox
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-4.9-base (= 4.9.1-12) but 4.9-20140406-0ubuntu1 is to be installed
Breaks: libstdc++6:i386 (!= 4.9.1-12) but 4.8.2-19ubuntu1 is to be installed
libstdc++6:i386 : Breaks: libstdc++6 (!= 4.8.2-19ubuntu1) but 4.9.1-12 is to be installed
xul-ext-unity : Depends: firefox (>= 10.0) but it is not going to be installed
xul-ext-webaccounts : Depends: firefox (>= 9.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
代码: 全选
$ sudo apt-get remove libstdc++6:amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
appmenu-qt : Depends: libstdc++6 (>= 4.1.1) but it is not going to be installed
appmenu-qt5 : Depends: libstdc++6 (>= 4.1.1) but it is not going to be installed
.....
不知如何是好?
libstdc++6:i386 和 libstdc++6冲突了
如果卸载 libstdc++6:amd64 apt觉得是在卸载libstdc++6:i386, 而libstdc++6:i386是被许多包依赖着的。