Proxy 在非浏览器应用程序中使用代理

Proxy 在非浏览器应用程序中使用代理,proxy,Proxy,我的学院使用代理服务器提供互联网。我可以在浏览器上很好地访问互联网,当我登录到浏览器时,Skype等应用程序会自动连接。 但有些应用程序显示连接错误。 在Windows应用商店(Windows10)中,我可以打开应用商店,但下载时显示错误代码0x800704CF 此外,我无法在我的虚拟机Ubuntu16.04.2 LTS的终端上访问internet(我可以在浏览器中访问它)。我发现以下错误: 试着 sudo apt-get update python get-pip.py 我得到了错误 Er

我的学院使用代理服务器提供互联网。我可以在浏览器上很好地访问互联网,当我登录到浏览器时,Skype等应用程序会自动连接。 但有些应用程序显示连接错误。 在Windows应用商店(Windows10)中,我可以打开应用商店,但下载时显示错误代码0x800704CF

此外,我无法在我的虚拟机Ubuntu16.04.2 LTS的终端上访问internet(我可以在浏览器中访问它)。我发现以下错误:

试着

sudo apt-get update
python get-pip.py
我得到了错误

Err:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Cannot initiate the connection to us.archive.ubuntu.com:80
(2001:67c:1562::19). - connect (101: Network is unreachable) [IP:
2001:67c:1562::19 80]
在尝试的时候

sudo apt-get update
python get-pip.py
(下载get pip.py后)(安装pip) 我得到一个错误:

 Retrying (Retry(total=4, connect=None, read=None, redirect=None))
after connection broken by
'NewConnectionErro ('<pip._vendor.requests.packages.urllib3.connection.VerifiedH
TTPS Connection object at 0x7f7451ef1f10>: Failed to establish a new
connection: [Errno 101] Network is unreachable',)': /simple/pip/

但它不起作用。

对于apt,您必须提供配置

对于pip,可以使用命令行参数
pip安装--代理用户:password@proxyserver:端口

对于apt,您必须提供配置

对于pip,可以使用命令行参数
pip安装--代理用户:password@proxyserver:端口