Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 have a Banshee link that is wrong and I need to remove it, how do I do it from the Terminal? I have the incorrect link, I have the correct one as well.

share|improve this question
up vote 3 down vote accepted

You would need to locate the specific lines in /etc/apt/sources.list

Open the sources file with some editor while using sudo, such as vim (I personally use nano, but you can use whatever you want):

sudo vim /etc/apt/sources.list

Locate the lines which contain the broken link, and remove them. Save the files, then run sudo apt-get update after you save the file and close out the editor. Your sources will be updated to work with the non-broken repositories.

share|improve this answer
Note: it is possible that the repositories are not only written in the single file /etc/apt/sources.list, but distributed in several files (one per repository) inside the directory /etc/apt/sources.list.d/ – bitwelder Apr 20 '11 at 17:21
True, but the first place to look would be /etc/apt/sources.list – Thomas Ward Apr 20 '11 at 20:36

If you need to manage PPAs then this question is for you:

share|improve this answer

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.