System can't upgrade behind proxy due to /usr/lib/update-notifier/package-data-downloader not using system or apt proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update notifier |
New
|
Undecided
|
Unassigned |
Bug Description
/usr/lib/
It uses only environment variables, which aren't always set for both localuser and root account, also using it at all is not good programing practice.
Currenly it's defined in this way:
def process_
[...]
# Get our proxy settings from the environment
proxies = {}
try:
for proto in ('http'
if proxies:
except Exception:
print "DEBUG: os.environ: %r" % os.environ
print "DEBUG: proxy %r" % proxies
affects: | bzr-diffstat → update-notifier |
summary: |
- /usr/lib/update-notifier/package-data-downloader doesn't use system or - apt proxy + System can't upgrade behind proxy due to /usr/lib/update- + notifier/package-data-downloader not using system or apt proxy |
In my case the proxy I am using has basic authentication and this bug causes a particular problem when upgrading using the GUI. Whereas in the terminal you are asked for the username and password for the proxy specified by the environmental variable, the GUI just hangs as there is no prompt for the user's proxy details.