Ubuntu: Remove repo after adding it via deb [duplicate]



Question:

This question already has an answer here:

I've added a repo with the following:

add-apt-repository "deb http://archive.ubuntu.com/ubuntu artful universe"  

How would I remove it? I'm using this in a automated script also!


Solution:1

Generally, I'd consider it a bad idea to remove a repo after installing a package from it -- doing so will prevent getting updates when they're available.


Solution:2

Repos are listed in /etc/apt/sources.list. Simply create a backup of that file (for safety) and remove the repo(s) you no longer want.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »