通过apt.conf更新SOCKS代理不会更新Network Manager>>代理部分 [英] Updating SOCKS proxy via apt.conf doesn't update Network Manager>>Proxy section

查看:146
本文介绍了通过apt.conf更新SOCKS代理不会更新Network Manager>>代理部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

操作系统: Ubuntu 16.10

Os: Ubuntu 16.10

我要做什么:

我有外部袜子v5服务器.我想通过此操作将所有本地WEB通信发送到袜子服务器:

I've got external socks v5 server. I want to *send all local WEB traffic to socks server by doing this:

  1. ssh -D 1337 -f -C -q -N admin @ socks_server_ip; #Connection这里没有问题

  1. ssh -D 1337 -f -C -q -N admin@socks_server_ip; #Connection no issues here

ps aux | grep 1337#我看到与此连接相关的PID,这里也没有问题

ps aux | grep 1337 # I see PID related to this connection, no issues here as well

将/etc/apt/apt.conf更新为:

Update /etc/apt/apt.conf as:

Acquire :: socks :: proxy"socks://user:pass @ host:port/"; #在更新apt.conf中也没有问题

Acquire::socks::proxy "socks://user:pass@host:port/"; #No issues in updating apt.conf as well

问题:

成功完成apt.conf文件的编辑后,我应该能够看到Network >> Proxy部分中的更改,其中列出了袜子代理详细信息,如下所示:

When I'm done succesfully editing apt.conf file, I should be able to see changes in Network >> Proxy section listing socks proxy details something like this:

但是,即使在更新apt.conf之后,我也会看到以下内容:

BUT, even after updating apt.conf, I see this:

直到或除非我手动设置了网络>>代理详细信息,否则我无法访问互联网.有人知道为什么会这样吗?如果可能,请提出任何解决方案.谢谢

And I can't access internet until or unless I manually set Network >> Proxy details. Anybody have any idea why this is happening?? Please suggest any solutions if possible. Thanks

推荐答案

编辑apt.conf会仅更改APT(程序包管理器)的代理.如果要在整个系统范围内设置代理,则确实需要转到网络>>代理并手动进行设置.

Editing apt.conf changes the proxy just for the APT (package manager). If you want to set up the proxy system-wide, you really need to go to Network >> Proxy and set that manually.

这篇关于通过apt.conf更新SOCKS代理不会更新Network Manager>>代理部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆