Friday, January 20, 2017

How to remove broken PPA repo on Ubuntu

There are times when the PPA repo that you add to your local machine becomes obsolete, maybe the developer abandoned the project or something happened, so how to remove these broken PPA repo anyway?

To remove PPA repository from ubuntu, we can use the same command that we use to add them, by adding --remove parameter it will remove the PPA repo that you specify.
sudo apt-add-repository --remove ppa:[PPA-name]
sudo apt-add-repository --remove ppa:vokoscreen-dev/vokoscreen
sudo apt-add-repository --remove ppa:webupd8team/atom
sudo apt-add-repository --remove ppa:haecker-felix/gradio-daily 

The problem is that you need to know exactly the name of the PPA repository, which you probably don't remember. The solution for that is to create shell script that can show list of PPA repo on your local machine, have a look at my previous post.

You can find out which PPA repository is broken or not by running the update command 'sudo apt-get update', if everything is fine, there will be no error on the PPA repo section. Even if the PPA repo is not broken, but you want to remove it anyway, you can do that too.

No comments:

Post a Comment