How to remove apt repository on ubuntu 18?

Bo Berglund bo.berglund at gmail.com
Wed Aug 18 11:30:46 UTC 2021


On Wed, 18 Aug 2021 17:10:40 +0800, Bret Busby <bret.busby at gmail.com> wrote:

>> It involved first adding a repository to apt as follows:
>>
>> sudo add-apt-repository ppa:nilarimogard/webupd8
>>

>> But now I also want to get rid of the repository I added to apt in order to
>> get
>> streamlink.
>>
>> How can this be done?
>> Is there a corresponding remove command for apt repositories?
>
>Assuming that you know how to use vi, then use
>sudo vi /etc/apt/sources.list
>and either "comment out" (by pre pending the line with a hash symbol
>(#), or, delete, the relevant line.

Well I am normally using nano, but when I open this file I cannot find any
reference to nilarimogard/webupd8...
What would the "relevant line" be?

None of these words exist in the file, so how does add-apt-repository work?

Does it stuff the custom repositories into another file instead or does the fact
that I did:
sudo apt remove streamlink
also remove the repository reference?

Very strange.


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list