php ugrade在ubuntu上的错误:软件包有未满足的依赖

如果我尝试升级与我的VPS的PHP

apt-get install php5-cli 

我得到这个错误:

 The following packages have unmet dependencies: php5-cli: Depends: libc6 (>= 2.11) but 2.6.1-1ubuntu10 is to be installed Depends: libdb4.8 but it is not installable Depends: libgssapi-krb5-2 (>= 1.6.dfsg.2) but it is not installable Depends: libk5crypto3 (>= 1.6.dfsg.2) but it is not installable Depends: libkrb5-3 (>= 1.6.dfsg.2) but it is not installable Depends: libncurses5 (>= 5.7+20100313) but 5.6+20070716-1ubuntu3 is to be installed Depends: libreadline6 (>= 6.0) but it is not installable Depends: libssl0.9.8 (>= 0.9.8m-1) but 0.9.8e-5ubuntu3.4 is to be installed Depends: libxml2 (>= 2.7.4) but 2.6.30.dfsg-2ubuntu1.4 is to be installed E: Broken packages 

我怎么解决它?

编辑附加信息:我添加在我的/etc/apt/sources.list中:

 deb http://http.us.debian.org/debian stable all deb http://security.debian.org/ stable/updates main contrib deb http://packages.dotdeb.org/ stable all 

然后运行apt-get更新

你可以通过使用正确的软件包源来解决它。 你显然正在运行Ubuntu(你正在运行的软件包的版本是一个明确的迹象),但是你的sources.list充满了Debian稳定的软件包。 这是行不通的 – 而Ubuntu是从Debian派生的,他们的软件包不会自由混合。

将上面引用的来源条目replace为适合您的发行版的来源条目,并且升级将更顺畅。

你需要确认你有正确的发行版。 跑:

 cat /etc/lsb-release 

这将决定你的发行版本。 从那里,当你拉实际释放名称,请按照这里的指示:

https://help.ubuntu.com/community/Repositories/CommandLine