我正在尝试在运行 crouton.c 的三星 chromebook 3 上安装 PHP 5.4(Crouton 链接: https://github.com/dnschneid/crouton)
我正在按照以下说明进行升级http://www.barryodonovan.com/index.php/2012/05/22/ubuntu-12-04-precise-pangolin-and-php-5-4-again
但是,当我尝试在上述链接中添加存储库后安装 PHP 时,遇到了一些依赖问题。
下面粘贴的是我运行 时收到的消息sudo apt-get dist-upgrade
。我还从系统中完全删除了 PHP,并在添加ondrej/php5
存储库后尝试安装它,但收到与下面相同的消息。
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5 : Depends: libapache2-mod-php5 (>= 5.4.14-1~precise+1) but it is not going to be installed or
libapache2-mod-php5filter (>= 5.4.14-1~precise+1) but it is not going to be installed or
php5-cgi (>= 5.4.14-1~precise+1) but it is not going to be installed or
php5-fpm (>= 5.4.14-1~precise+1) but it is not going to be installed
Depends: php5-common (>= 5.4.14-1~precise+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我不喜欢从源代码安装。有人能提供一些建议来解决这个问题吗?或者还有其他方法吗?
谢谢。
答案1
您是否忘记运行:
apt-get update
和
apt-get install -f