合作代理背后的流浪者

时间:2015-08-17 09:02:03

标签: proxy vagrant virtualbox

我用Ubuntu盒安装了vagrant。正在运行的主机正在合作代理后面工作。我安装了vagrant-proxyconf (1.5.1)并将代理数据添加到Vagrantfile

Vagrant.configure("2") do |config|
  if Vagrant.has_plugin?("vagrant-proxyconf")
    config.proxy.http     = "proxy:port"
    config.proxy.https    = "proxy:port"
    config.proxy.no_proxy = "localhost,127.0.0.1"
  end
end

但是当我进入vagrantbox并做sudo apt-get update它只是抛出错误。

其中一个错误:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages  Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument

我的直觉告诉我端口出现问题3128:80,任何想法如何解决这个问题?

提前感谢您的回答,所有帮助表示赞赏!!!

0 个答案:

没有答案
相关问题