由于 libevent 无法安装 Tor

由于 libevent 无法安装 Tor

我尝试在 Kali Linux 2019.4 上安装 tor 并在运行后不断遇到以下问题apt-get 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 installable
E: Unable to correct problems, you have held broken packages.

我已经安装了 libevent,如下所示:

libevent-2.1-6/now 2.1.8-stable-4 amd64 [installed,local]
  Asynchronous event notification library

libevent-2.1-7/now 2.1.11-stable-1 amd64 [installed,local]
  Asynchronous event notification library

libevent-core-2.1-7/now 2.1.11-stable-1 amd64 [installed,local]
  Asynchronous event notification library (core)

我不知道如何解决这个问题,所以任何帮助将不胜感激。

答案1

您需要删除 PPA,因为它与已安装的软件包冲突。在我的系统上,apt policy tor返回以下内容:

tor:
  Installed: (none)
  Candidate: 0.4.1.6-1+b1
  Version table:
     0.4.1.6-1+b1 500
        500 http://http.kali.org/kali kali-rolling/main amd64 Packages

删除它后,运行sudo apt update,然后你应该能够安装 tor。除非您安装了其他 PPA,否则您的/etc/apt/sources.list文件应该只有这个:

deb http://http.kali.org/kali kali-rolling main non-free contrib
# deb-src http://http.kali.org/kali kali-rolling main non-free contrib

相关内容