首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装tor,因为libevent

无法安装tor,因为libevent
EN

Unix & Linux用户
提问于 2019-12-16 01:23:51
回答 1查看 4.6K关注 0票数 -1

我试图在KaliLinux2019.4上安装tor,并在运行apt-get install tor后继续得到以下问题。

代码语言:javascript
复制
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.

我已经安装了如下所示:

代码语言:javascript
复制
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)

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

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2019-12-17 00:42:41

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

代码语言:javascript
复制
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/ should . file文件应该只有以下内容:

代码语言:javascript
复制
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
票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/557415

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档