Ubuntu – tool to update the PPA sources.list entries after upgrading

ppaupgrade

When I upgrade from one version of Ubuntu to the next, the upgrade tool rightly disables all my PPAs, so that software compiled for or otherwise tied to the old version of Ubuntu does not interfere with the new version that I just upgraded to.

Is there any way to automatically re-enable and update any PPAs that provide packages for the new version of Ubuntu? For example, suppose I'm currently running Maverick, and I have two PPAs enabled, "foo" and "bar". Suppose that "foo" provides packages for both Maverick and Natty, while "bar" provides packages for Natty only. Is there a tool I could run after updating to Natty that would re-enable my "foo" PPA and update it to point to the Natty packages, while leaving the "bar" PPA disabled?

Best Answer

There is a tool called Y-PPA-Manager that lets you do exactly that.

To try Y-PPA-Manager, you need to run the following commands in a terminal:

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

After installing, run the software and click on 'Advanced' button.

enter image description here

After clicking on that button, you would come up with a window similar to the one below. Click on 'Re-enable working PPAs after Ubuntu upgrade'.

enter image description here

You would then be prompted for your password. Enter your password and click OK. After that, you would get a dialog box like this:

enter image description here

Click OK and wait till all the working PPAs are re-enabled. When the entire process is successfully completed, you would be notified.

Related Question