How To Quickly Remove Obsolete PPAs In Ubuntu/Linux Mint

When installing third party applications in Ubuntu / Linux Mint, one needs to specifically first add the PPAs (Personal Packaging Archives) and then install the related required applications.

Now over a course of time, it may happen that these added PPAs may become obsolete or are simply no longer existent. This will cause errors when updating Linux Mint/Ubuntu systems as the updates won’t be installed successfully because of these problematic PPAs.

Here is how to quickly remove them and ensure that the Ubuntu/Linux Mint system receives and installs regular updates for it’s stability :

First, list the available PPAs from repository by typing the following in Terminal :

sudo ls /etc/apt/sources.list.d

List available third party PPAs

Next, remove the unwanted PPA (it is advisable to remove those PPAs which can no longer be updated or not existing anymore, the update manager in Linux Mint/Ubuntu will display the related errors for those when attempting a system update).

Remove using the following command :

sudo rm -i /etc/apt/sources.list.d/nameofppatoberemoved.list

Remove unwanted PPAs in Linux Mint/Ubuntu

Once removed, make sure to update the repository again by :

sudo apt-get update

All done.

 

 

Leave a Comment