http_proxy propagation

Bug #111253 reported by Fabrizio Balliano
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Customization Kit
Fix Released
Low
Fabrizio Balliano

Bug Description

when chroot-ing to remaster-root directory, we should propagate the "*_proxy" environment variables, doing that will allow users behind proxied to have a working uck, otherwise the build will fail

Changed in uck:
assignee: nobody → fabrizio-balliano
importance: Undecided → Low
status: Unconfirmed → Confirmed
Revision history for this message
Fabrizio Balliano (fabrizio-balliano) wrote :

proxy variable read the right way, the problem is that apt-get update fail due to some proxy errors, maybe i'll do change when we do

apt-get update

with

(apt-get update || apt-get update)

so proxy lacks are always fixed in my case, i know, it's not uck bugs

Changed in uck:
status: Confirmed → Unconfirmed
Revision history for this message
Fabrizio Balliano (fabrizio-balliano) wrote :

released a small fix which re-execute apt-get update a second time if the first fails

Changed in uck:
status: New → Fix Released
Revision history for this message
Stanislav German-Evtushenko (giner) wrote :

proxy doesn't work for lucid

Steps to reproduce:
1. Boot Ubuntu 10.04 LiveCD
2. Configure proxy (apply to system-wide)
3. Install UCK.
4. Start to remaster ISO
5. Result: package information isn't got from the repository.

Changed in uck:
status: Fix Released → New
Revision history for this message
Wolf Geldmacher (wolf-womaro) wrote :

The problem seems to be the use of sudo/gksudo by UCK:

The *sudo commands by default reset the envrionment to a well defined
minimal set that does not include the proxy configuration.

If you add the following line:
Defaults env_keep += "http_proxy https_proxy ftp_proxy all_proxy no_proxy"
to the /etc/sudoers file, proxies should work for UCK (chroot) as well.

I'm not sure whether this solution should be implemented within the uck
package - I personally do not like packages messing around with my
sudoers configuration...

Revision history for this message
Wolf Geldmacher (wolf-womaro) wrote :

Found a way to handle this: uck-gui now saves the _proxy variables to $SCRIPT_DIR/environment where they can be picked up by the chrooted customize script, thus sudo does no longer have to pass them.

Seems to work fine and is part of the changes for UCK 2.4.4

Changed in uck:
status: New → Fix Committed
Changed in uck:
milestone: none → 2.4.4
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.