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


0

我使用这里的指示安装了Tor,现在我想卸载它:https//www.torproject.org/docs/debian

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

然后我去了/etc/apt/sources.list文件并删除了对它的引用

deb http://deb.torproject.org/torproject.org main

我的问题是在终端中运行“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项目对话。你可以说我是初学者。提前感谢任何指针。

Answers:


2

您已经有效地卸载了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/


1

检查包含对TOR存储库的引用的条目/etc/apt/sources.list.d,删除它们并在apt-get update之后执行。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.