我想安装开发版本按照以下说明 https://www.torproject.org/docs/debian.html.en#development在我的 ubuntu 14.04 上,但每当我运行命令
sudo apt-get update
发生一些错误:
Err http://deb.torproject.org jessie/main Sources
404 Not Found [IP: 10.10.34.36 80]
Err http://deb.torproject.org jessie/main amd64 Packages
404 Not Found [IP: 10.10.34.36 80]
Err http://deb.torproject.org jessie/main i386 Packages
404 Not Found [IP: 10.10.34.36 80]
Ign http://deb.torproject.org jessie/main Translation-en_US
Ign http://deb.torproject.org jessie/main Translation-en
Fetched 435 kB in 5s (77.3 kB/s)
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/ir.archive.ubuntu.com_ubuntu_dists_trusty-updates_main_i18n_Translation-en Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/ir.archive.ubuntu.com_ubuntu_dists_trusty-backports_main_i18n_Translation-en Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/ir.archive.ubuntu.com_ubuntu_dists_trusty-backports_universe_i18n_Translation-en Hash Sum mismatch
W: Failed to fetch http://deb.torproject.org/torproject.org/dists/jessie/main/source/Sources 404 Not Found [IP: 10.10.34.36 80]
W: Failed to fetch http://deb.torproject.org/torproject.org/dists/jessie/main/binary-amd64/Packages 404 Not Found [IP: 10.10.34.36 80]
W: Failed to fetch http://deb.torproject.org/torproject.org/dists/jessie/main/binary-i386/Packages 404 Not Found [IP: 10.10.34.36 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
之后我运行这个命令
sudo apt-get install tor deb.torproject.org-keyring
发生错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package deb.torproject.org-keyring
E: Couldn't find any package by regex 'deb.torproject.org-keyring'
我该如何修复它?
答案1
发生这种情况是因为您遵循了 Debian Jessie 说明。您需要将说明上方的下拉菜单更改为 Ubuntu Trusty Tahr。:)
首先,您需要从存储库中删除 Jessie 条目。为此,请在终端中输入以下命令:
sudo rm /etc/apt/sources.list.d/jessie-main.list
接下来需要更新 apt:
sudo apt-get update
完成此操作后,您将需要继续执行 Ubuntu Trusty Tahir 说明。
删除软件源的另一种方法是使用下面的图标打开“软件中心”。
在软件中心内,单击“Ubuntu 软件菜单”中的“软件和更新”链接,如下图所示。
在“软件和更新”中,单击“其他软件”选项卡,并确保我在下面更新中勾选的 2 个选项已从您的源中删除。如果没有,请将其删除。
完成后,关闭该窗口,它将更新存储库。