我正在尝试按照此链接中的说明安装 tor:
在 Ubuntu 18.04 Bionic Beaver Linux 上安装 Tor
但失败了,如下所示:
$ sudo apt install tor
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
tor : Depends: libevent-2.0-5 (>= 2.0.10-stable) but it is not installable
Recommends: tor-geoipdb but it is not going to be installed
Recommends: torsocks but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我究竟做错了什么?
编辑:snap install tor
成功了。谢谢 guiverc。
编辑#2: 附加信息:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
$ apt-cache policy tor
tor:
Installed: (none)
Candidate: 0.3.5.8-1~d90.stretch+1
Version table:
0.3.5.8-1~d90.stretch+1 500
500 https://deb.torproject.org/torproject.org stretch/main amd64 Packages
0.3.2.10-1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
在修复我的问题之前snap install tor
,我已经安装了 tor 浏览器。通过运行命令,torbrowser-launcher
我可以启动 tor 进程,但我无法弄清楚如何在不启动 tor 浏览器的情况下运行 tor 进程/进程。
答案1
正如 guiverc 的评论所建议的那样,snap install tor
此方法有效。
“您可以在两天内接受您自己的答案”......:|
答案2
https://ubuntuhandbook.org/index.php/2021/01/install-tor-tor-browser-ubuntu-20-10-20-04/
这对我有用。删除您在 中之前尝试添加的内容/etc/apt/sources.list
,然后使用此版本的存储库添加和安装重新尝试。