How to delete a PPA repository in Ubuntu

Repositories

Ubuntu repositories

If you are users of this blog, you may have noticed that there are many programs and functions that can be obtained thanks to a PPA repository. This is easy to add and use, but sometimes we don't need them anymore or they get out of date, in this case it is best to remove them from the system so that it does not create problems when updating the distribution or in another process. To do this we have two methods to do it, one easy and the other difficult.

The easy method surely you have seen it at some time, ideal for newbies and for those who want very graphic methods. We have to go to System, then to Administration and Software Sources, or simply search in the Software Sources dashboard. In this program we go to the "Third Party Software" tab and there we mark or unmark the PPA repositories that we need or want. This method is simple and once we want to have it again, we just have to mark the PPA repository again.

The terminal method deletes the PPA repository in question from the system

But there is another method, one more difficult for newbies and more radical, that is, once we eliminate it. we will not have it in the system to redial but we will have to add it. This method is done through a terminal in which we write:

sudo add-apt-repository --remove ppa:nombre-ppa/ppa

So to show an example, deleting the webupd8 repository would be something like this

sudo add-apt-repository --remove ppa:nilarimogard/webupd8

Esto will completely remove the PPA repository from the system, something that could also be useful for those who, using the easy method, want to remove the PPA repository from their system. However, as we said, it eliminates the repository completely, so to have it again, you will have to write the add-apt-repository command again and accept the key.


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

6 comments, leave yours

Leave a Comment

Your email address will not be published.

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   javi said

    sudo apt-get install ppa-purge

    sudo ppa-purge ppa: PPA NAME

    https://launchpad.net/ppa-purge

    In case you have problems with what was added and you need to delete everything that was added previously. Greetings

  2.   Jesus-B said

    I am new as a user of ubunto, I installed 15.10 with great difficulty because I have win10 but apparently the selection gnu of which system I am going to work already works is stable but my problem was that I installed the oracle java from the repository and for the moment everything fine then install jdownloader from repository and nothing should be wrong and it couldn't so download the .sh file from the official page and install it with the sh command everything is normal to the point where it welcomes and runs the program there notice something would have been in the lower right part as hidden and a black box appeared around the window making it impossible to see the upper border where the close window and expand icon is then notice that the terminal window also became all black and You can't read or see anything, please, if you can help me with this problem.

  3.   fracielarevalo said

    good night friends, how could i free up the disk memory in ubuntu 16.04

  4.   Andreale Dicam said

    Simple and practical, thank you.

  5.   Berthold said

    Through this method, I could not remove the repo from the Opera browser, which even though I have deleted it from Software sources, it appears again. I have to remove it, because after deactivating it, it did not work to activate it again.

    I have used from terminal:
    sudo add-apt-repository –remove ppa: 'deb https://deb.opera.com/opera-stable/ stable non-free '
    [sudo] password for:
    Cannot get info about PPA: 'No JSON object could be decoded'.
    failed to remove PPA: '[Errno 2] No such file or directory:' /etc/apt/sources.list.d/deb_https-ppa-xenial.list »

    And I notice that in the system folder "/etc/apt/sources.list.d", I keep getting the file 'opera-stable.list'.
    I will then proceed to delete it as administrator.
    And see if the issue is fixed by reinstalling this repository.

    Linux Mint 18.

  6.   Peter S. said

    I have the following problem I try to install some icons and it gives me the following error

    E: The repository "http://ppa.launchpad.net/noobslab/icons/ubuntu focal Release" does not have a Release file.
    N: You cannot update from a repository like this safely and therefore it is disabled by default.
    N: See the apt-secure (8) man page for details on creating repositories and configuring users.

    how can I solve that

    Thank you