How can I get apt to use a proxy?
ubuntu at two14.net
Sun Sep 26 19:49:13 BST 2004
On Sun, Sep 26, 2004 at 06:34:38PM +0000, Frank Merenda wrote:
> Matt Zimmerman <mdz <at> canonical.com> writes:
> > You might try passing http_proxy=http://yourproxy:3128 from the boot prompt
> > (untested).
Right, used at the second-stage boot that works around the lack of any
chance to config it before it fetches (I misremembered, or have you
released a boatload in the last couple days?) 170MB of packages. Even
with a pretty fast DSL line this is going to save me about twenty
minutes later today. :-)
> 1 - export your proxy settings:
> 2 - run apt commands as needed, i.e.
The problem is this is the scripted second-stage install, and there's
no shell prompt along the way at which to setup the environment. There
really should be an option somewhere for this - think of the poor sods
who *have* to use a non-transparent proxy, for example.
Hmmm - there is a point where it asks whether to "use the internet" -
if it can be stopped there then I guess you could do the setup and
restart it. Assuming this isn't like the magic vanishing script that
I've made the mistake of interrupting in Debian installs past, which is
probably why it never occured to me to try to bail out of it.
If there is a lesson to be learnt from Adobe's eBook
fiasco, it is that litigation is no substitute for
well-designed software. -- The Economist
More information about the ubuntu-users