Home Linux Sudo时使用http_proxy
Post
Cancel

Linux Sudo时使用http_proxy

refer to:
https://askubuntu.com/questions/530547/proxy-does-not-work-using-sudo

sudo vim /etc/sudoers

保留这一行:

Defaults env_keep += "http_proxy https_proxy"

然后在普通用户的界面设置好http_proxy ,

然后再运行sudo命令即可。

This post is licensed under CC BY 4.0 by the author.