アップグレードエラー

アップグレードエラー

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 カールを使用した出力です。

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).

ベストアンサー1

元のエラーも解決策を提供しました。

You might want to run 'apt-get -f install' to correct these.

以前にこれを見たことがない場合は、実行する必要があります正確にそのコマンド。それ以外の場合は、次のようになります。

Try 'apt-get -f install' with no packages (or specify a solution).

これは通常問題を解決します。

おすすめ記事