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-repositorythen you will find it in its own file in/etc/apt/sources.list.d, not in the mainsources.list.sudo rm /etc/apt/sources.list.d/nemh-systemback-precise.list
-
Optional: Stop trusting the key
Use
apt-key listto list trusted keys. Look for an entry like “Launchpad PPA for Kendek” in this case. Then useapt-key delto 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