Updating SOCKS proxy via apt.conf doesn't update Network Manager>>Proxy section

本秂侑毒 提交于 2019-12-13 08:48:25

问题


Os: Ubuntu 16.10

What I'm trying to do:

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 no issues here

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

  3. Update /etc/apt/apt.conf as:

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

Problem:

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:

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


回答1:


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.



来源:https://stackoverflow.com/questions/43827342/updating-socks-proxy-via-apt-conf-doesnt-update-network-managerproxy-section

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!