Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers 2

up vote 2 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
1  
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 W. Apr 20 '11 at 20:36
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.