为了在我的服务器系统上运行python2.7(运行Debian挤压),我在升级所有软件包时遇到了一些麻烦。我完全不知道该怎么做:
# apt-get upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libalgorithm-diff-xs-perl : Depends: perlapi-5.10.1
libapt-pkg-perl : Depends: perlapi-5.10.1
libauthen-pam-perl : Depends: perlapi-5.10.0
libcurses-perl : Depends: perlapi-5.10.1
libdbd-mysql-perl : Depends: perlapi-5.10.1
libdbi-perl : Depends: perlapi-5.10.1
libfont-freetype-perl : Depends: perlapi-5.10.0
libgd-gd2-noxpm-perl : Depends: perlapi-5.10.1
libhtml-parser-perl : Depends: perlapi-5.10.1
libio-pty-perl : Depends: perlapi-5.10.1
liblchown-perl : Depends: perlapi-5.10.1
liblocale-gettext-perl : PreDepends: perlapi-5.10.0
libnet-ssleay-perl : Depends: perlapi-5.10.1
libterm-readkey-perl : Depends: perlapi-5.10.0
libtext-charwidth-perl : Depends: perlapi-5.10.0
libtext-iconv-perl : Depends: perlapi-5.10.0
libuuid-perl : Depends: perlapi-5.10.1
perl-base : Conflicts: defoma (< 0.11.12) but 0.11.11 is installed
perl-modules : Recommends: libarchive-extract-perl but it is not installed
Recommends: libmodule-pluggable-perl
Recommends: libpod-latex-perl but it is not installed
Recommends: libterm-ui-perl but it is not installed
Recommends: libtext-soundex-perl but it is not installed
Recommends: libcgi-pm-perl
Recommends: libmodule-build-perl
Recommends: libpackage-constants-perl but it is not installed
Conflicts: defoma (< 0.11.12) but 0.11.11 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
在我的sources.list中,我有:
deb http://ftp.dk.debian.org/debian/ squeeze main non-free
deb-src http://ftp.dk.debian.org/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
# squeeze-updates, previously known as 'volatile'
deb http://ftp.dk.debian.org/debian/ squeeze-updates main
deb-src http://ftp.dk.debian.org/debian/ squeeze-updates main
deb http://mirrors.dotsrc.org/cran/bin/linux/debian squeeze-cran/
deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://http.debian.net/debian/ sid main contrib non-free
deb http://ftp.dk.debian.org/debian/ testing main contrib non-free
有关如何进行的任何建议?
答案 0 :(得分:1)
系统需要您的帮助才能继续,请使用aptitude
代替apt-get
。
aptitude full-upgrade
您将获得相同的信息和可能的解决方案,其中包括更新某些软件包并删除其他软件包。如果情况可以接受,请继续。另外,让我们说aptitude意味着删除了gnome
,这对你来说是不可接受的。在gnome
旁边,在要升级,删除等的软件包列表中,您会看到一个数字,例如23 gnome
。键入R23
以放弃涉及删除gnome的所有解决方案。点按简介,然后点按n
,不接受解决方案。
能力将为您呈现另一种流行的解决方案,它不会建议删除gnome(如果有的话)。冲洗并重复直至出现可接受的溶液。
这只是一个起点,请记住,man aptitude
是你最好的朋友。