依赖问题,包括 gcc-5-base 和其他软件包

依赖问题,包括 gcc-5-base 和其他软件包

有人能帮我吗:

Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libatk1.0-dev : Depends: libglib2.0-dev (>= 2.31.2) but it is not installed
libatomic1 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is installed
libc-bin : Depends: libc6 (< 2.20) but 2.21-7 is installed
libc-l10n : Breaks: locales (< 2.21-0experimental1) but 2.13+git20120306-12.1 is installed
libc6 : Breaks: locales (< 2.21) but 2.13+git20120306-12.1 is installed
libcairo2-dev : Depends: libglib2.0-dev but it is not installed
libcilkrts5 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is installed
libgfortran3 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is installed
libgomp1 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is installed
libhighgui-dev : Depends: libopencv-highgui-dev but it is not installed
libitm1 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is installed
liblsan0 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is installed
libopencv-contrib-dev : Depends: libopencv-highgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not installed
libopencv-legacy-dev : Depends: libopencv-highgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not installed
libopencv-objdetect-dev : Depends: libopencv-highgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not installed
libopencv-ocl-dev : Depends: libopencv-highgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not installed
libquadmath0 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is installed
libtsan0 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is installed
libubsan0 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is installed
E: Unmet dependencies. Try using -f

由于这个依赖关系问题,我无法再安装任何软件。

我已经尝试了所有apt-get命令(cleanupdateupgradeinstall -fautoremove)。什么都没发生,问题仍然存在。我甚至重新编辑了我的源列表 :/


请求的命令输出:

deb http://mirrors.ircam.fr/pub/ubuntu/archive/ trusty main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security multiverse main universe restricted
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ trusty-updates multiverse main universe restricted
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ trusty-proposed multiverse main universe restricted
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ trusty-backports multiverse main universe restricted

新结果:

root@anonymoon-HP-EliteBook-8460p:~# apt-cache policy gcc-5-base libc6 locales
gcc-5-base:
  Installed: 5.3.0-3ubuntu1~14.04
  Candidate: 5.3.0-3ubuntu1~14.04
  Version table:
 *** 5.3.0-3ubuntu1~14.04 0
        100 /var/lib/dpkg/status
libc6:
  Installed: 2.21-7
  Candidate: 2.21-7
  Version table:
 *** 2.21-7 0
        100 /var/lib/dpkg/status
     2.19-0ubuntu6.7 0
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        500 http://mirrors.ircam.fr/pub/ubuntu/archive/ trusty-updates/main amd64 Packages
     2.19-0ubuntu6 0
        500 http://mirrors.ircam.fr/pub/ubuntu/archive/ trusty/main amd64 Packages
locales:
  Installed: 2.13+git20120306-12.1
  Candidate: 2.13+git20120306-12.1
  Version table:
 *** 2.13+git20120306-12.1 0
        500 http://mirrors.ircam.fr/pub/ubuntu/archive/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.13+git20120306-12 0
        500 http://mirrors.ircam.fr/pub/ubuntu/archive/ trusty/main amd64 Packages

尝试安装时:

root@anonymoon-HP-EliteBook-8460p:~# sudo apt-get clean
root@anonymoon-HP-EliteBook-8460p:~# sudo apt-get install libc6=2.19-0ubuntu6.7
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:
 libatk1.0-dev : Depends: libglib2.0-dev (>= 2.31.2) but it is not going to be installed
 libatomic1 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is to be installed
 libc-dev-bin : Depends: libc6 (> 2.21) but 2.19-0ubuntu6.7 is to be installed
 libc-l10n : Breaks: locales (< 2.21-0experimental1) but 2.13+git20120306-12.1 is to be installed
 libc6-dbg : Depends: libc6 (= 2.21-7) but 2.19-0ubuntu6.7 is to be installed
 libc6-dev : Depends: libc6 (= 2.21-7) but 2.19-0ubuntu6.7 is to be installed
 libcairo2-dev : Depends: libglib2.0-dev but it is not going to be installed
 libcilkrts5 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is to be installed
 libgfortran3 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is to be installed
 libgomp1 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is to be installed
 libhighgui-dev : Depends: libopencv-highgui-dev but it is not going to be installed
 libitm1 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is to be installed
 liblsan0 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is to be installed
 libopencv-contrib-dev : Depends: libopencv-highgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
 libopencv-legacy-dev : Depends: libopencv-highgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
 libopencv-objdetect-dev : Depends: libopencv-highgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
 libopencv-ocl-dev : Depends: libopencv-highgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
 libquadmath0 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is to be installed
 libtsan0 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is to be installed
 libubsan0 : Depends: gcc-5-base (= 5.3.1-7) but 5.3.0-3ubuntu1~14.04 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

相关内容