Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run

sudo add-apt-repository ppa:noobslab/indicators

to install my-weather-indicator but it requires GTK3 and I don't want to proceed.

So I'd like to undo that command. I'd checked my /etc/apt/source.list but I didn't find any line related to it.

What should I do now?

share|improve this question
up vote 9 down vote accepted

add-apt-repository creates a new file in /etc/apt/sources.list.d for ppa repositories. Besides deleting the appropriate file you also should delete the added gpg key:

  1. get the keyid from apt-key list
  2. delete it via apt-key del $ID
share|improve this answer
Item 1 returns pub 1024R/36FD5529 2010-12-14 uid Launchpad PPA for noobslab. What is its $ID? – Sigur Jan 8 '13 at 0:46
@Sigur 36FD5529 is the id, 1024 is the keylength and the rest is the uid – Ulrich Dangel Jan 8 '13 at 0:49
It works with del instead of delete. – Sigur Jan 8 '13 at 0:52

From Ubuntu's manual pages (man add-apt-repository):

 -r, --remove Remove the specified repository


sudo add-apt-repository -r ppa:noobslab/indicators

This removes it from the repo list in /etc/apt/sources.list.d/. If an installed package from that repo is newer than the same package in a standard repo, then manually downgrade with ppa-purge:

sudo ppa-purge ppa:noobslab/indicators

For Debian, just delete the .list file in /etc/apt/sources.list.d/.

share|improve this answer
Where can I check if it worked? Are there some entries in source.list? – Sigur Jan 8 '13 at 0:34
@Sigur Yes! The .list files in /etc/apt/sources.list.d/. – Christopher Jan 8 '13 at 0:37
Your first suggestion returns You are about to add the following PPA to your system:. The second one returns sudo: ppa-purge: command not found. I still have .list in /etc/apt/sources.list.d/ – Sigur Jan 8 '13 at 0:44

Your Answer


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.