Package: debian-installer Version: 20110106+squeeze3 Severity: normal Tags: d-i
Copied from an Ubuntu bug report, since it resembles my problem as well: In my preseed file I set "d-i mirror/http/proxy string http://apt-cacher:3142/", this is an apt-cacher-ng proxy. This works correctly for installing the system. I expect "d-i mirror/http/proxy" to only apply to the debian installer http proxy (apt proxy), and all other http applications, e.g., wget, curl, lynx to not use that setting. Instead when I run applications from the Kickstart %post section, all HTTP connections are proxied; curl, wget, lynx, hg (mercurial), everything. Once the system installs and reboots all is good, the only remanence of the mirror/http/proxy setting is in /etc/apt/apt.conf, which is fine (though I think that should be configurable too). mirror/http/proxy is setting the environment variable http_proxy. Repo: Set "d-i mirror/http/proxy string http://apt-cacher:3142/" in a preseed (use your local mirror). Use a Kickstart post section like this: %post --interpreter=/bin/bash exec < /dev/tty3 > /dev/ttyS0 chvt 3 ( echo "## http_proxy = $http_proxy" echo "## lynx dump head" lynx -dump -head http://example.com echo "## wget" wget -O /root/test http://example.com ) 2>&1 | /usr/bin/tee /var/log/post_install.log chvt 1 After install check /var/log/post_install.log and it will look like: ## http_proxy = http://apt-cacher:3142/ ## lynx dump head HTTP/1.1 403 Forbidden file type or location Date: Thu Apr 22 16:29:10 2010 Server: Debian Apt-Cacher NG/0.4.6 ## wget --2010-04-22 09:29:10-- http://example.com Resolving apt-cacher... 10.0.0.10 Connecting to apt-cacher|10.0.0.10|:3142... connected. Proxy request sent, awaiting response... 403 Forbidden file type or location 2010-04-22 09:29:10 ERROR 403: Forbidden file type or location. The workaround for me it to reset $http_proxy at the top of %post: export http_proxy="" Then all the applications that use http behave normally. Suggestion: Don't set $http_proxy with "d-i mirror/http/proxy", maybe set $apt_http_proxy if d-i needs an environment variable. For users that need a general proxy a setting like "d-i http/proxy" could be created. -- System Information: Debian Release: 6.0.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/16 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- no debconf information -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110919204447.8659.48512.report...@kahlo.csde.washington.edu