installation with proxy auth not working

Bug #1493889 reported by Markus on 2015-09-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
choose-mirror (Ubuntu)
Undecided
Unassigned

Bug Description

I want to kickstart an installation behind a proxy, but its not working. Though wget, seems to accept the proxy configuration, choose-mirror does not succeed.

Following https://help.ubuntu.com/community/KickstartCompatibility#Using_a_proxy_.2F_cache_during_the_Kickstart, my pxe-configuration is (note that i need to authenticate against the proxy which is not described in the above link):

append ks=http://172.16.0.2/ub14_04-install/ks/ks.cfg vga=normal initrd=ubuntu14_04/initrd.gz ramdisk_size=16432 root=/dev/rd/0 http_proxy=http://ossproxy:password@172.16.0.5:8080 rw

ks.cfg is:
...
url --url http://archive.ubuntu.com/ubuntu
...

The installation stops with an error, syslog is saying:
... choose-mirror: DEBUG: command: wget --no-verbose http://archive.ubuntu.com/ubuntu/dists/trusty/Release -O - | ...
... choose-mirror: WARNING **: mirror does not support the specified release (trusty)

But: switching to shell via <strg> + <alt> + <f2> and issuing the wget command:
wget --no-verbose http://archive.ubuntu.com/ubuntu/dists/trusty/Release -O -
everything works fine, hence proxy is properly set.
The problem seems to be that choose-mirror can't handle a Proxy with authentication.

Also, doing an installation without proxy works fine.
But, as I need 50+ computers behind the proxy, this is not an option.

So, am I missing something? What can I do? Modify initrd?
Thanks

Markus (sysadmin-a) on 2015-09-09
affects: kickseed (Ubuntu) → choose-mirror (Ubuntu)
Markus (sysadmin-a) wrote :

Problem solved. You have to use
preseed mirror/http/proxy string http://<username>:<password>@172.16.0.5:8080
inside the ks.cfg, not setting
APPEND http_proxy="http://192.168.0.11:8080"
as suggested by the wiki https://help.ubuntu.com/community/KickstartCompatibility#Using_a_proxy_.2F_cache_during_the_Kickstart

I updated the wiki.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers