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

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

问题描述

操作系统:Ubuntu 16.10

Os: Ubuntu 16.10

我想做什么:

我有外部的socks 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;#这里连接没有问题

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

ps 辅助 |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 部分的变化,列出了 socks 代理的详细信息,如下所示:

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 代理不会更新网络管理器>>代理部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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