[Bug 1364069] Re: [utopic] deploy juju-gui fails on apt-get install error (with local provider)
Martin Pitt
martin.pitt at ubuntu.com
Mon Sep 1 15:48:55 UTC 2014
$ juju debug-hooks juju-gui/0
root at martin-local-machine-1:~# apt-get -y install libapt-pkg-dev python-apt python-launchpadlib python-tempita python-yaml
[...]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/z/zlib/zlib1g-dev_1.2.8.dfsg-1ubuntu1_amd64.deb Unable to connect to 127.0.0.1:3142:
And indeed:
# cat /etc/apt/apt.conf.d/42-juju-proxy-settings
Acquire::http::Proxy "http://127.0.0.1:3142";
That's wrong -- juju can't blindly copy the host's apt proxy (in this
case, apt-cacher-ng). Doing so is great, but it needs to rewrite
localhost and 127.0.0.1 to 10.0.3.1 (or more generally, the host in the
default route, or lxcbr0's IP). I do something similar in autopkgtest:
http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/tree/tools
/adt-build-lxc#n51
that might be something to steal?
** Summary changed:
- [utopic] deploy juju-gui fails on apt-get install error (with local provider)
+ local provider must transform localhost in apt proxy address
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju-core in Ubuntu.
https://bugs.launchpad.net/bugs/1364069
Title:
local provider must transform localhost in apt proxy address
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/juju-core/+bug/1364069/+subscriptions
More information about the Ubuntu-server-bugs
mailing list