卸载 tor 后,apt-get Update 仍尝试从 tor 项目下载

卸载 tor 后,apt-get Update 仍尝试从 tor 项目下载

我按照这里的说明安装了 Tor,现在我想卸载它: https://www.torproject.org/docs/debian

我想卸载 tor 并删除所有配置文件,因此我在终端中运行以下命令:sudo apt-get purge tor

然后我进入 /etc/apt/sources.list 文件并删除了对

德布http://deb.torproject.org/torproject.org 主要的

我的问题是,在终端中运行“sudo apt-get update”时仍然收到以下消息:

Ign http://deb.torproject.org <DISTRIBUTION> Release.gpg
Ign http://deb.torproject.org <DISTRIBUTION> Release
Ign http://deb.torproject.org <DISTRIBUTION>/main TranslationIndex
Err http://deb.torproject.org <DISTRIBUTION>/main amd64 Packages   404 Not Found [IP: 93.95.227.222 80]
Err http://deb.torproject.org <DISTRIBUTION>/main i386 Packages   404  Not Found [IP: 93.95.227.222:80]
Ign http://deb.torproject.org <DISTRIBUTION>/main Translation-en_US
Ign http://deb.torproject.org <DISTRIBUTION>/main Translation-en
W: Failed to fetch http://deb.torproject.org/torproject.org/dists/<DISTRIBUTION>/main/binary-amd64/Packages 404  Not Found [IP: 93.95.227.222 80]
W: Failed to fetch http://deb.torproject.org/torproject.org/dists/<DISTRIBUTION>/main/binary-i386/Packages 404  Not Found [IP: 93.95.227.222 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

我希望彻底删除 Tor,这样当我要求 Ubuntu 更新时,它根本不会与 Tor 项目对话。正如你所见,我是个初学者。在此先感谢任何指点。

答案1

您已成功卸载 Tor,但尚未删除存储库。根据您添加存储库的方式,以下解决方案之一应该有效:

sudo rm -i /etc/apt/sources.list.d/*tor*.list

或者

sudo sed -i '/torproject/d' /etc/apt/sources.list
sudo sed -i '/torproject/d' /etc/apt/sources.list.d/*

现在你可以这样做了sudo apt-get update。如果它不起作用,请添加输出ls /etc/apt/sources.list.d/

答案2

检查包含对 TOR 存储库的引用的条目/etc/apt/sources.list.d,删除这些条目,然后执行后续操作apt-get update

相关内容