tsock 和 anaconda的冲突

今天使用anaconda突然遇到这个问题,一看就是网络问题,但是不知所以。

conda create -n gui
Collecting package metadata (current_repodata.json): done
Solving environment: done
22:10:38 libtsocks(26649): Local networks cannot be specified in path block at like 18 in configuration file. (Path block started at line 0)
22:10:38 libtsocks(26649): Local networks cannot be specified in path block at like 19 in configuration file. (Path block started at line 0)
22:10:38 libtsocks(26649): Path statements cannot be nested on line 28 in configuration file
22:10:38 libtsocks(26649): Local networks cannot be specified in path block at like 18 in configuration file. (Path block started at line 0)
22:10:38 libtsocks(26649)22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
: 22:10:38 libtsocks(26649): Local networks cannot be specified in path block at like 19 in configuration file. (Path block started at line 0)
22:10:38 libtsocks(26649): Path statements cannot be nested on line 28 in configuration file
22:10:38 libtsocks(26649): Only one SOCKS server may be specified per path on line 31 in configuration file. (Path begins on line 0)
22:10:38 libtsocks(26649): Server type may only be specified once per path on line 32 in configuration file. (Path begins on line 0)
22:10:38 libtsocks(26649): Only one default SOCKS server may be specified at line 43 in configuration file
22:10:38 libtsocks(26649): Server type may only be specified once for default server, at line 45 in configuration file
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
Local networks cannot be specified in path block at like 19 in configuration file. (Path block started at line 0)
22:10:38 libtsocks(26649): Path statements cannot be nested on line 28 in configuration file
22:10:38 libtsocks(26649): Only one SOCKS server may be specified per path on line 31 in configuration file. (Path begins on line 0)
22:10:38 libtsocks(26649): Server type may only be specified once per path on line 32 in configuration file. (Path begins on line 0)
22:10:38 libtsocks(26649): Default username may only be specified once per path on line 33 in configuration file. (Path begins on line 0)
22:10:38 libtsocks(26649): Default password may only be specified once per path on line 34 in configuration file. (Path begins on line 0)
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!
22:10:38 libtsocks(26649): SOCKS server 10.1.7.25 (10.1.7.25) is not on a local subnet!

想起最近安装了 tsocks 来做全局网络代理,所以想起改了全局配置的问题:

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtsocks.so

把这行注释掉,重新开起命令行,就没得问题了。

这种系统环境问题,比较坑人,不注意就挖坑,时间长了还不好排查。

希望给大家一点帮助!!

猜你喜欢

转载自blog.csdn.net/u012939880/article/details/107755438