Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 \
    http://ubuntu.media.mit.edu/ubuntu//pool/universe/s/squid-deb-proxy/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
2  
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
1  
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

3 Answers 3

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; \
true

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

share|improve this answer

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

Your Answer

 
discard

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.