简体   繁体   English

在Tails上使用python包管理器时Torsocks连接被拒绝错误

[英]Torsocks connection refused error when using python package manager on Tails

I'm new in Tails Linux and I'm facing some problems installing apps through torsocks. 我是Tails Linux的新手,并且在通过Torsock安装应用程序时遇到一些问题。

In this example I've installed python3-pip through apt-get and everything was ok, however when I run python3 -m pip install "something" I get an error like: 在这个例子中,我已经通过apt-get安装了python3-pip,一切都很好,但是当我运行python3 -m pip install "something"我得到了一个错误:

PERROR Torsocks socks5 libc connection refused. PERROR Torsocks socks5 libc连接被拒绝。

I already tried to run the command with torify, torsocks, change the tor port to 9051 and 9151, use --proxy with the command and nothing worked. 我已经尝试过用torify,torsocks运行命令,将tor端口更改为9051和9151,在命令中使用--proxy,但没有任何效果。

It includes commands as CURL and many others 它包括CURL等命令

How can we solve that? 我们该如何解决?

From the tails docs: 尾巴文档:

Packages that use the network need to be configured to go through Tor. 需要将使用网络的软件包配置为通过Tor。 They are otherwise blocked from accessing the network. 否则它们将被阻止访问网络。

By default, the pip package manager won't make its requests through a socks proxy, so you will have to manually route its connection. 默认情况下, pip包管理器不会通过socks代理发出请求,因此您必须手动路由其连接。

I'd recommending using proxychains . 我建议使用proxychains (a guide for installing this on tails can be found here ) (可在此处找到将其安装在尾部的指南)

Once you have it installed, simply run proxychains pip install <package name> 安装完成后,只需运行proxychains pip install <package name>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM