当我进行apt-获取更新// apt-获取升级时,无论我做什么,我都收到了这个错误:
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,但我也不知道是哪个版本。我试过的第一件事是,每次我遇到这个错误。cat /etc/一期: 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安装-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).发布于 2013-08-23 15:04:34
原始错误也给出了解决方案:
You might want to run 'apt-get -f install' to correct these.如果您以前没有见过这个命令,那么必须运行该命令。否则,你会得到:
Try 'apt-get -f install' with no packages (or specify a solution).这通常能解决问题。
https://unix.stackexchange.com/questions/88014
复制相似问题