LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1536|回复: 5

怎样解决依赖性问题?升级和安装软件都不行了

[复制链接]
发表于 2007-6-17 00:20:54 | 显示全部楼层 |阅读模式
错误信息如下:

  1. Reading package lists...
  2. Building dependency tree...
  3. Correcting dependencies... failed.
  4. The following packages have unmet dependencies:
  5.   gnome-app-install: Depends: python-gtkhtml2 but it is not installed
  6.                      Depends: python-gconf but it is not installed
  7.                      Depends: python-apt (>= 0.6.20) but 0.6.16.2ubuntu8.1 is installed
  8.                      Depends: python-gdbm but it is not installed
  9.                      Depends: python-gtk2 (>= 2.10.1) but 2.8.6-0ubuntu1 is installed
  10.                      Depends: software-properties-gtk but it is not installed
  11.   gnome-keyring: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  12.   hal-device-manager: Depends: hwdb-client-gnome but it is not installed
  13.   libgksuui1.0-1: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  14.   libglade2-0: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  15.   libgnome-desktop-2: Depends: libbonoboui2-0 (>= 2.15.1) but 2.14.0-0ubuntu1 is installed
  16.                       Depends: libgnomeui-0 (>= 2.17.1) but 2.14.1-0ubuntu3 is installed
  17.                       Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  18.   libgnomecanvas2-0: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  19.   libgnomeprintui2.2-0: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  20.   libgtk2.0-bin: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  21.   libgtksourceview1.0-0: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  22.   libmetacity0: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  23.                 Depends: metacity-common (>= 1:2.18) but it is not installed
  24.                 Depends: metacity-common (< 1:2.19) but it is not installed
  25.   libnautilus-burn4: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  26.   libpanel-applet2-0: Depends: libbonoboui2-0 (>= 2.15.1) but 2.14.0-0ubuntu1 is installed
  27.                       Depends: libgnomeui-0 (>= 2.17.1) but 2.14.1-0ubuntu3 is installed
  28.                       Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  29.   librsvg2-2: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  30.   librsvg2-common: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  31.   libtotem-plparser1: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  32.   libwnck18: Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  33.   python-central: Depends: python (>= 2.4.3-10) but 2.4.2-0ubuntu3 is installed
  34.   python-gnome2-extras: Depends: libbonoboui2-0 (>= 2.15.1) but 2.14.0-0ubuntu1 is installed
  35.                         Depends: libgnomeui-0 (>= 2.17.1) but 2.14.1-0ubuntu3 is installed
  36.                         Depends: libgtk2.0-0 (>= 2.10.3) but 2.8.20-0ubuntu1.1 is installed
  37.                         Depends: python-pyorbit but it is not installed
  38.   python-support: Depends: python (>= 2.4.3-10) but 2.4.2-0ubuntu3 is installed
  39. E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
  40. E: Unable to correct dependencies
复制代码

用了 apt-get -f install 也不行,请问该如何解决
是不是我的源太多了导致的冲突?
我的源如下:

  1. # for edu net
  2. deb ftp://linux.xjtu.edu.cn/mirror/ubuntu/ubuntu/ feisty main restricted universe multiverse
  3. deb ftp://linux.xjtu.edu.cn/mirror/ubuntu/ubuntu-cn/ feisty main restricted universe multiverse
  4. deb ftp://linux.xjtu.edu.cn/mirror/ubuntu/ubuntu/ feisty-proposed main restricted universe multiverse
  5. deb ftp://linux.xjtu.edu.cn/mirror/ubuntu/ubuntu/ feisty-backports main restricted universe multiverse
  6. deb ftp://linux.xjtu.edu.cn/mirror/ubuntu/ubuntu/ feisty-security main restricted universe multiverse
  7. deb ftp://linux.xjtu.edu.cn/mirror/ubuntu/ubuntu/ feisty-updates main restricted universe multiverse

  8. deb http://ftp.sjtu.edu.cn/ubuntu/ feisty main restricted universe multiverse
  9. deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-security main restricted universe multiverse
  10. deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse

  11. deb http://mirror.njtu.edu.cn/ubuntu/ feisty main restricted universe multiverse
  12. deb http://mirror.njtu.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse
  13. deb http://mirror.njtu.edu.cn/ubuntu/ feisty-backports main restricted universe multiverse
  14. deb http://mirror.njtu.edu.cn/ubuntu/ feisty-security main restricted universe multiverse
  15. deb http://mirror.njtu.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse

  16. deb http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe
  17. deb http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe
  18. deb http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe
  19. deb http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe
  20. deb http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe
  21. deb-src http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe
  22. deb-src http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe
  23. deb-src http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe
  24. deb-src http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe
  25. deb-src http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe
  26. deb http://mirror9.net9.org/ubuntu-cn/ feisty main multiverse restricted universe

  27. deb http://debian.ustc.edu.cn/ubuntu/ feisty main restricted universe multiverse
  28. deb http://debian.ustc.edu.cn/ubuntu/ feisty-backports restricted universe multiverse
  29. deb http://debian.ustc.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse
  30. deb http://debian.ustc.edu.cn/ubuntu/ feisty-security main restricted universe multiverse
  31. deb http://debian.ustc.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse

  32. deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
  33. deb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
  34. deb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
  35. deb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
  36. deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse

  37. deb ftp://mirror:mirror@ftp.bdwm.net/ubuntu feisty main restricted universe multiverse
  38. deb ftp://mirror:mirror@ftp.bdwm.net/ubuntu feisty-updates main restricted universe multiverse
  39. deb ftp://mirror:mirror@ftp.bdwm.net/ubuntu feisty-security main restricted universe multiverse
  40. deb ftp://mirror:mirror@ftp.bdwm.net/ubuntu feisty-backports main restricted universe multiverse
复制代码

谢谢大家
发表于 2007-6-17 02:58:33 | 显示全部楼层
我有一次是安装的时候网断了,也是怎样都不行,后来只好重装了一遍系统
回复 支持 反对

使用道具 举报

发表于 2007-6-17 02:59:15 | 显示全部楼层
幸好debian安装简单
回复 支持 反对

使用道具 举报

发表于 2007-6-17 09:59:37 | 显示全部楼层
不知试过dpkg-reconfigure -a 没有?同样版本的源用不着设那么多吧,你的源里的包版本好像都是低于你要安装的,你可以设置个版本高一些的源,也许就解决了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-17 11:25:36 | 显示全部楼层
经过仔细比较,已经将源改为如下了:
  1. # for edu net
  2. deb http://debian.ustc.edu.cn/ubuntu/ feisty main restricted universe multiverse
  3. deb http://debian.ustc.edu.cn/ubuntu/ feisty-backports restricted universe multiverse
  4. deb http://debian.ustc.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse
  5. deb http://debian.ustc.edu.cn/ubuntu/ feisty-security main restricted universe multiverse
  6. deb http://debian.ustc.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse
  7. deb-src http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe
  8. deb-src http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe
  9. deb-src http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe
  10. deb-src http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe
  11. deb-src http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe
  12. deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-17 13:17:21 | 显示全部楼层
呵呵,活了,先把源搞好,用一个清爽的源,如楼上的那个
然后dpkg -r --force-depends libgtk2.0-0
然后联合使用  apt-get upgrade apt-get -f install就可以了

总之,先保证源好
然后遇到问题首先 apt-get -f install 不行的话看错误信息,看看是那个包堵住了,就用
apt-get remove 干掉他,干不掉就 dpkg -r --force-depends package_name就可以了
最后继续apt-get upgrade。一定可以ok的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表