当我执行apt-get update // apt-get upgrade时,无论我做什么,我都会收到此错误:
root@debian:~# apt-get upgrade
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:
curl : Depends: libcurl3 (= 7.26.0-1+wheezy3) but 7.21.0-2.1+squeeze2 is installed
multiarch-support : Depends: libc6 (>= 2.13-5) but 2.11.3-4 is installed
E: Unmet dependencies. Try using -f.
root@debian:~#
这不是我的服务器,所以我不知道里面安装了什么,我唯一了解的是我需要将php从5.2最低版本升级到5.3。告诉我已经安装了Zend Server,但我也不知道哪个版本。我尝试的第一件事就是这个,每次遇到此错误。cat / etc / issue说:Debian GNU / Linux 6.0 \ n \ l
这是我的/etc/apt/sources.list:
root@debian:~# cat /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 NETINST Binary-1 20120930-15:55]/ squeeze main
#deb cdrom:[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 NETINST Binary-1 20120930-15:55]/ squeeze main
deb http://ftp.es.debian.org/debian/ squeeze main
deb-src http://ftp.es.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.es.debian.org/debian/ squeeze-updates main
deb-src http://ftp.es.debian.org/debian/ squeeze-updates main
deb http://ftp2.de.debian.org/debian squeeze main non-free
deb http://repos.zend.com/zend-server/deb server non-free
root@debian:~#
这是我使用apt-get install -f curl的输出:
root@debian:~# apt-get install -f curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
curl : Depends: libcurl3 (= 7.26.0-1+wheezy3) but 7.21.0-2.1+squeeze2 is to be installed
multiarch-support : Depends: libc6 (>= 2.13-5) but 2.11.3-4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
原始错误也提供了解决方案:
You might want to run 'apt-get -f install' to correct these.
如果您以前没有看过,则必须精确地运行该命令。否则,您将获得:
Try 'apt-get -f install' with no packages (or specify a solution).
这通常可以解决问题。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句