Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to install PHP 5.4 on a Samsung chromebook 3 running crouton.c (Crouton link: https://github.com/dnschneid/crouton)

I am following the instructions for the upgrade from http://www.barryodonovan.com/index.php/2012/05/22/ubuntu-12-04-precise-pangolin-and-php-5-4-again

But face some dependency issues when I try to install PHP after adding the repository in the above link.

Pasted below is the message I get when I run the sudo apt-get dist-upgrade. I have also removed PHP completely from my system and try to install it after adding the ondrej/php5 repository but get the same message as the one below.

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.

I prefer not installing from source. Could some please provide some suggestions to fix this issue or any alternate methods?

Thank you.

share|improve this question

closed as off topic by Dennis Kaarsemaker, Michael Hampton, Ward, EEAA, Jenny D May 11 '13 at 9:22

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

Did you forget to run:

apt-get update

and

apt-get install -f
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.