http_proxy='' breaks the update-notifier downloader
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Invalid
|
Undecided
|
Unassigned | ||
update-notifier (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
I installed Flash installing the restricted-extras, but every time that is a update avaliable and I upgrade the package using Muon, Flash doesn't work anymore. To fix it, I need to uninstall the package and install it using the terminal. And I know that this issue doesn't happen with other package managers.
I reported this as a Muon bug (https:/
<<Yes, it does fail within Muon, but the ultimate failure is an uncaught exception in the script the packaging runs to download the actual flash plugin. The difference would be that package managers like apt-get and Synaptic run dpkg in a terminal emulator, whereas package managers like Muon and PackageKit run dpkg in a pty. (A perfectly valid thing to do.) The script within the flashplugin-
So, I hope you can solve this.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: muon 1.3.1-0ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-31-generic x86_64
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
Date: Wed Oct 10 19:13:27 2012
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120319)
ProcEnviron:
LANGUAGE=
LANG=es_ES.UTF-8
SHELL=/bin/bash
SourcePackage: muon
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | muon (Ubuntu) → flashplugin-nonfree (Ubuntu) |
affects: | python2.7 (Ubuntu) → update-notifier (Ubuntu) |
Changed in python: | |
status: | New → Invalid |
tags: | added: bitesize |
If the http_proxy environment variable is set but empty, python's urllib craps its pants and tries to concatenate a string with a NoneType object:
Traceback (most recent call last): update- notifier/ package- data-downloader ", line 234, in process_ download_ requests urlretrieve( files[i] )[0] python2. 7/urllib. py", line 93, in urlretrieve retrieve( url, filename, reporthook, data) python2. 7/urllib. py", line 243, in retrieve python2. 7/urllib. py", line 201, in open
File "/usr/lib/
dest_file = urllib.
File "/usr/lib/
return _urlopener.
File "/usr/lib/
fp = self.open(url, data)
File "/usr/lib/
name = 'open_' + urltype
TypeError: cannot concatenate 'str' and 'NoneType' objects
That's what is causing the bug.