How to apt-delete-repository?

I would like to run the reverse of this command to remove the non-compatible repository in Debian 8.1

sudo add-apt-repository -y ppa:nemh/systemback

where the command add-apt-repository is in the package software-properties-common.
I could not find the systemback entry in /etc/apt/sources.list.

How can you run the reverse of the command?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

To remove a repository, you have to do 2 things:

  • Remove it from sources.list.

    If it was added by add-apt-repository then you will find it in its own file in /etc/apt/sources.list.d, not in the main sources.list.

    sudo rm /etc/apt/sources.list.d/nemh-systemback-precise.list
  • Optional: Stop trusting the key

    Use apt-key list to list trusted keys. Look for an entry like “Launchpad PPA for Kendek” in this case. Then use apt-key del to delete it:

    sudo apt-key del 73C62A1B


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x