我该如何解决这些破碎的依赖关系?


8

aptitude告诉我我有些软件包的依赖关系已损坏:

kmiller@debian-dev-box:~$ sudo aptitude search '.*' | grep ^.B
iB  console-setup-linux             - Linux specific part of console-setup      
iB  gir1.2-freedesktop              - Introspection data for some FreeDesktop co
iB  gir1.2-glib-2.0                 - Introspection data for GLib, GObject, Gio 
iB  gir1.2-gstreamer-0.10           - Description: GObject introspection data fo
iB  gir1.2-json-1.0                 - GLib JSON manipulation library (introspect
iBA libatk-adaptor                  - AT-SPI 2 toolkit bridge                   
iB  libgcc1                         - GCC support library                       
iBA libgfortran3                    - Runtime library for GNU Fortran applicatio
iBA libgomp1                        - GCC OpenMP (GOMP) support library         
iB  libstdc++6                      - GNU Standard C++ Library v3               

但是“破碎”的程度不能太糟糕,因为:

kmiller@debian-dev-box:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

kmiller@debian-dev-box:~$ sudo apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

最令人担忧的是libgcc1的依赖关系已损坏。

我该怎么做才能找出解决办法?

kmiller@debian-dev-box:~$ sudo aptitude install -f
...
0 packages upgraded, 11 newly installed, 177 to remove and 0 not upgraded.
...
The following packages have unmet dependencies:
 libstdc++6 : Breaks: gcc-4.3 (< 4.3.6-1) but 4.3.5-4 is to be installed.
 gir1.2-json-1.0 : Conflicts: gir1.0-json-glib-1.0 but 0.10.2-2squeeze1 is to be installed.
 gir1.2-gstreamer-0.10 : Conflicts: gir1.0-gstreamer-0.10 but 0.10.30-1 is to be installed.
 libgfortran3 : Breaks: gcc-4.3 (< 4.3.6-1) but 4.3.5-4 is to be installed.
 libgomp1 : Breaks: gcc-4.3 (< 4.3.6-1) but 4.3.5-4 is to be installed.
 libgcc1 : Breaks: gcc-4.3 (< 4.3.6-1) but 4.3.5-4 is to be installed.
 gir1.2-freedesktop : Conflicts: gir1.0-freedesktop but 0.6.14-1+b1 is to be installed.
 gir1.2-glib-2.0 : Conflicts: gir1.0-glib-2.0 but 0.6.14-1+b1 is to be installed.
 libatk-adaptor : Conflicts: at-spi but 1.32.0-2 is to be installed.
 console-setup-linux : Breaks: console-terminus but 4.30-2 is to be installed.

aptitude install -f
jordanm

嗯好的....资质要卸载177包,但它确实给了我一些更多的信息
KarlM

Answers:


14

apt-getaptitude具有不同的依赖项解析器。您可以通过提出建议来修复损坏的软件包aptitude install -f。从更新的问题来看,您似乎有混合发行或发行sources.list


1
Aptitude非常适合解决单一分发系统的问题。如果在apt / sources.list中添加2个发行版(在我的情况下为Vivid和Trusty),那么Aptitude实际上是没有用的(因此我可以挑选一些新版本)。与KarlM同样的问题。很高兴知道我不是唯一的一个。
kevinf
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.