Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am unable to install php5-dev package in ubuntu 12.10. I am getting the following on sudo apt-get install php5-dev:

 Reading package lists... Done
 Building dependency tree       
 Reading state information... Done
 E: Unable to locate package php5-dev
share|improve this question

I just tried installing php5-dev package in Ubuntu 12.10, and I didn't have any problems. It installed fine.

enter image description here

I'm including images of my software sources, just so you can compare with yours.

enter image description here enter image description here

I also suggest the you just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below prior to installing:

sudo apt-get update && sudo apt-get upgrade
share|improve this answer
yup! its working.. a lot of thanks for your answering Mitch. – Supravat Nov 19 '14 at 19:27

I got a similar error when installing PHP or any other software. I changed the update server and then it started working.

So, please try to change the update server if you get a similar error.

You can change the update server you are using by going to System Settings > Software & updates, and then change the "Download from" line to another server.

share|improve this answer

Your Answer


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.