![我运行了这些命令,并想了解如何撤销它们](https://linux22.com/image/987143/%E6%88%91%E8%BF%90%E8%A1%8C%E4%BA%86%E8%BF%99%E4%BA%9B%E5%91%BD%E4%BB%A4%EF%BC%8C%E5%B9%B6%E6%83%B3%E4%BA%86%E8%A7%A3%E5%A6%82%E4%BD%95%E6%92%A4%E9%94%80%E5%AE%83%E4%BB%AC.png)
请不要责怪我,我还是新手,只想寻求帮助。我运行了以下命令:
echo "deb https://pkg.tox.chat/debian nightly release"
sudo tee /etc/apt/sources.list.d/tox.list
wget -qO - https://pkg.tox.chat/debian/pkg.gpg.key | sudo apt-key add -
sudo apt-get install apt-transport-https
我想学习如何撤销这些命令。
答案1
您的第一个命令不正确,也许您的意思是:
echo "deb https://pkg.tox.chat/debian nightly release" | sudo tee /etc/apt/sources.list.d/tox.list
现在让我们逐个撤消命令:
您可以重命名或者删除该
/etc/apt/sources.list.d/tox.list
文件:sudo mv /etc/apt/sources.list.d/tox.list /etc/apt/sources.list.d/tox.list.bak
或者
sudo rm /etc/apt/sources.list.d/tox.list
让我们从 的钥匙环中删除
gpg
的钥匙:tox
apt
sudo apt-key del 1A171ABE
让我们删除这个
apt-transport-https
包:sudo apt-get remove apt-transport-https sudo apt-get purge apt-transport-https ## Removing configuration files too