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 have just upgraded my Ubuntu server to 12.04 - it was completed with just one "problem".

PHP has been reinstalled to 5.3.10 from Ubuntu's repos. and I wanted to keep my php package from Before I start with upgrade my second server, is there any way to disable php upgrade?

share|improve this question
up vote 0 down vote accepted

You want to do a package "Hold"

Basically you want to do something like:

echo php5-common hold | dpkg --set-selections

And when you're ready to upgrade PHP:

echo php5-common install | dpkg --set-selections

If you want to keep using dotdeb updates that come in, and stay off the Ubuntu packages, you want full Apt Pinning, but that is rather complicated (see the PinningHowto linked above).

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.