Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to install PHP 5.2.10 on Ubuntu 10.04 using apt-get. I used Approach 3 from this page but instead of using add-apt-repository I made a file called /etc/apt/sources.list.d/ppa:txwikinger.php5.2-source.list that contains the line:

deb http://ppa.launchpad.net/txwikinger/php5.2/ubuntu lucid main

But when I run sudo apt-get update followed by sudo apt-get install php5, I get this result:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package php5 has no installation candidate

Does anyone know what I'm doing wrong?

share|improve this question
    
Does sudo apt-get install php5.2 work? Or sudo apt-get install php? –  new123456 May 14 '11 at 23:11
    
@new123456 Both of these commands output: Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package php –  Scott May 16 '11 at 16:25

1 Answer 1

Try sudo apt-get install php5 or better sudo apt-get install php5 and press TAB a few times you will the entire list. Choose what you wnat

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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