Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Lucid, installing from the Lucid mini.iso. Both AMD64.

In the following I've tried as \, all of apt-get, apt-install, anna-install, dpkg:

d-i preseed/early_command string <cmd+opt> squid-deb-proxy-client

I've also tried:

d-i preseed/early_command string /usr/bin/wget \
    -O squid-deb-proxy-client_0.3.1_all.deb \ && dpkg -i squid-deb-proxy-client_0.3.1_all.deb

Is this possible, and if nor what is the earliest point one can get a installation to use the squid-deb-proxy server?

share|improve this question
Is there a reason you don't want to do this via "d-i pkgsel/include"? – Pete Ashdown May 16 '11 at 22:27
No. that is what I have now. I was just wondering if it is possible to get this set up as early as possible. Does using d-i pkgsel/include .... mean that all package downloads will go though the proxy? – hedgehog May 25 '11 at 0:48
Unless I'm not understanding you correctly, if all you want is your downloads to go through a proxy, you should use "d-i mirror/http/proxy string". If you want it to go through a proxy on the same box you're installing, that would be much more difficult, but I don't understand why you'd want to do that in the first place. – Pete Ashdown Jun 7 '11 at 14:42
Pete the box is actually a VM which boots itself several times and has several children (which boot themselves several times too) all do an apt update several times. The idea was to have all these VM's only grab the packages once. – hedgehog Apr 26 '12 at 8:01
@PeteAshdown you're misunderstanding that it's about the convenience of not having to know the proxy's URL. – Frederick Nord May 27 at 17:31

When the early_command runs, I don't think you even have /target already formatted/mounted. For instance, preseed/early_command can be used to install udebs (but note, not standard debs) in the installer environment:

# This first command is run as early as possible, just after
# preseeding is read.
#d-i preseed/early_command string anna-install some-udeb

You can run this in your late_command, that's when you can actually install stuff in the target system:

d-i preseed/late_command string \
in-target apt-get install -y --force-yes openssh-server; \

I think the best way to have your system get packages from a proxy is what Pete Ashdown suggested.

share|improve this answer
"I think the best way to have your system get packages from a proxy is what Pete Ashdown suggested." the problem is that it's not as convenient because you have to know the proxy's URL. With the squid-deb-proxy-client package, you don't. – Frederick Nord May 27 at 17:30

To force the installer to use your proxy server, configure it using preseeding properly using the d-i mirror/http/proxy option, e.g.:

d-i mirror/http/proxy string http://ip-or-hostname-of-proxy:8000/

You don't really need the squid-deb-proxy-client package to use the Squid proxy. The only purpose of the -client package is that it can auto-discover the proxy servers in the network.

share|improve this answer

It's currently not possible due to bug #1183326, however if one day it gets fixed it should be possible with:

d-i anna/choose_modules string squid-deb-proxy-client-udeb

In your preseed file, the d-i mirror/http/proxy trick will work on limited escenarios due to bug #642159

share|improve this answer
why choose_modules? I would expect that it's necessary to tell it where to get the modules from, e.g. to anna-install /path/to/udeb. – Frederick Nord May 28 at 15:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.