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 upgraded to an alpha version of a package in a PPA and would now like to revert back to the official version in the Ubuntu universe. What steps do I need to take?

Edit: The question originally read "How do I revert to a previous version of a package on Ubuntu?". I've changed it to more accurately reflect the contents.

share|improve this question
add comment

4 Answers 4

up vote 1 down vote accepted

Command-line:

sudo apt-get remove package_name

sudo gedit /etc/apt/sources.list -> comment out the ppa providing the new package

sudo apt-get update

sudo apt-get install package_name

GUI:

  • start Synaptic Package Manager
  • search for your package, click on it and select mark for removal
  • click apply
  • go to Settings > Repositories > Third Party Software and uncheck the PPA providing the new packge
  • Click Close, and then Reload
  • search for the package and reinstall it.

Optionally, you can re-enable the PPA after reverting to the Ubuntu default package

share|improve this answer
add comment

Christian's solution works fine when you want to get rid of the PPA.

I found another way to do this that leaves the PPA versions available as options for the future.

  1. Use apt-cache showpkg to list the candidate versions available:

    sudo apt-cache showpkg mpd

  2. Explicitly install the version you want, in the format "package=version"

    sudo apt-get install mpd=0.14.2-3ubuntu2

share|improve this answer
    
apt-cache doesn't require sudo. –  Sparhawk Apr 2 '13 at 20:40
add comment

Use ppa-purge. It disables the PPA and reverts your system back to the official Ubuntu packages.

sudo ppa-purge ppa_name

And you're done !

Installation : sudo apt-get install ppa-purge (or apturl install)
If you're not using Ubuntu 10.10 you may need to install it from a ppa, webup8 for example :

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install ppa-purge

The package is also included in the xorg-edgers repository and I successfully used it after testing the latest Xorg packages.

There is a blog post on Webupd8.

share|improve this answer
add comment

Search for your package on http://packages.ubuntu.com/

And download a previous version and sudo dpkg -i it.

share|improve this answer
add comment

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.