请不要责怪我,我还是新手,只想寻求帮助。我运行了以下命令:
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