如何在命令行中通过代理运行“sudo apt-get update”?

Ren*_*h G -2 linux networking proxy

在我的办公室,我想通过更新和下载wget,在这里他们使用代理。如何wget从命令行使用代理?

tan*_*nte 5

http_proxy环境变量导出为 inexport http_proxy=http://myproxy:port或添加

Acquire::http::proxy "http://MYNAME:MYPASS@MY.PROXY.COM:MYPORT"
Run Code Online (Sandbox Code Playgroud)

/etc/apt/apt.conf.

http://ubuntuforums.org/showthread.php?t=96802