[Bug 983559] Re: package-data-downloader utility does not honor apt http proxy settings
Mike Wilson
mikewse at gmail.com
Wed Feb 20 17:00:51 UTC 2013
*** This bug is a duplicate of bug 820383 ***
https://bugs.launchpad.net/bugs/820383
I am affected by something looking like this bug even though I am on 12.10. The strange thing is that the flashplugin-installer second stage download works when updating from:
- dpkg command line as root
- dpkg command line as sudo from user account
- synaptics apply
but not from:
- update-notifier
>From inside the update-notifier GUI I get the following log:
Processing triggers for update-notifier-common ...
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.270.orig.tar.gz
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 234, in process_download_requests
dest_file = urllib.urlretrieve(files[i])[0]
File "/usr/lib/python2.7/urllib.py", line 93, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.7/urllib.py", line 239, in retrieve
fp = self.open(url, data)
File "/usr/lib/python2.7/urllib.py", line 207, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 344, in open_http
h.endheaders(data)
File "/usr/lib/python2.7/httplib.py", line 958, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 818, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 780, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 761, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 571, in create_connection
raise err
IOError: [Errno socket error] [Errno 110] Connection timed out
The failing process has the following parent chain:
/sbin/init
/usr/bin/python3.2 /usr/sbin/aptd
/usr/bin/python3.2 /usr/sbin/aptd
/usr/bin/dpkg --status-fd 75 --unpack --auto-deconfigure /var/cache/apt/archives/flashplugininstaller_11.2.202.270ubuntu0.12.10.1_amd64.deb
/bin/sh /var/lib/dpkg/info/update-notifier-common.postinst triggered /usr/share/package-data-downloads
/usr/bin/python /usr/lib/update-notifier/package-data-downloader
and I have inspected environment variables in the last two processes, and there are no *_proxy variables in them when triggered by update-notifier.
When triggered in the other ways the variables are present.
My /etc/environment:
all_proxy=...
http_proxy=...
My /etc/sudoers.d/allow-proxy-vars-in-sudo:
Defaults env_keep += all_proxy
Defaults env_keep += http_proxy
sudo env | grep proxy:
http_proxy=...
all_proxy=...
Can someone shed some light on why this is happening?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/983559
Title:
package-data-downloader utility does not honor apt http proxy settings
Status in “update-notifier” package in Ubuntu:
Won't Fix
Bug description:
I'm running 12.04 in an intranet where a proxy is required to get out.
I set up apt-get with a proxy:
$ cat /etc/apt/apt.conf.d/99proxy
Acquire::http::proxy "http://proxy:8080/";
But running this fails:
$ apt-get install flashplugin-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
ttf-mscorefonts-installer ttf-bitstream-vera ttf-dejavu ttf-xfree86-nonfree
xfs
The following NEW packages will be installed:
flashplugin-installer
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 8,292 B of archives.
After this operation, 146 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise/multiverse flashplugin-installer amd64 11.2.202.233ubuntu1 [8,292 B]
Fetched 8,292 B in 0s (15.2 kB/s)
Preconfiguring packages ...
Selecting previously unselected package flashplugin-installer.
(Reading database ... 255509 files and directories currently installed.)
Unpacking flashplugin-installer (from .../flashplugin-installer_11.2.202.233ubuntu1_amd64.deb) ...
Processing triggers for update-notifier-common ...
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.228.orig.tar.gz
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 234, in process_download_requests
dest_file = urllib.urlretrieve(files[i])[0]
File "/usr/lib/python2.7/urllib.py", line 93, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.7/urllib.py", line 239, in retrieve
fp = self.open(url, data)
File "/usr/lib/python2.7/urllib.py", line 207, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 344, in open_http
h.endheaders(data)
File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 776, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 757, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 571, in create_connection
raise err
IOError: [Errno socket error] [Errno 110] Connection timed out
Setting up flashplugin-installer (11.2.202.233ubuntu1) ...
I never put http_proxy in my environment. So apt-get was able to download the .deb but not get the additional binary. Since this process runs inside the context of apt-get, it seems it should pick up the proxy setting.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: flashplugin-installer 11.2.202.233ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu4
Architecture: amd64
Date: Mon Apr 16 17:33:46 2012
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111103)
ProcEnviron:
TERM=xterm
SHELL=/bin/bash
LANG=en_US.UTF-8
SourcePackage: flashplugin-nonfree
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/983559/+subscriptions
More information about the foundations-bugs
mailing list