[Bug 820383] Re: package-data-downloader fails if apt is configured to use an http proxy that only supports package downloading
Josep Pujadas-Jubany
820383 at bugs.launchpad.net
Sat Dec 20 10:53:18 UTC 2014
/usr/lib/update-notifier/package-data-downloader from update-notifier
uses python urllib
It seems to be problems when using proxies. In addition, urllib doesn't
supports https protocol.
https://docs.python.org/2/library/urllib.html#urllib-restrictions
Using a http proxy, adobe-flashplugin updates will work but not allways:
urllib.urlretrieve("http://archive.canonical.com/pool/partner/a/adobe-
flashplugin/adobe-flashplugin_11.2.202.425.orig.tar.gz", "adobe-
flashplugin.tar.gz")
Using a https proxy, pepflashpluguin updates will never work:
urllib.urlretrieve("https://dl-
ssl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-
chrome-stable_39.0.2171.95-1_i386.deb", "google-chrome.deb")
So, scripts must be something like:
export http_proxy=http://192.168.0.1:3128
export https_proxy=https://192.168.0.1:3128
apt-get install -y flashplugin-installer
apt-get install -y pepflashplugin-installer
echo "" >> /etc/chromium-browser/default
echo ". /usr/lib/pepflashplugin-installer/pepflashplayer.sh" >> /etc/chromium-browser/default
echo "" >> /etc/chromium-browser/default
unset http_proxy
unset https_proxy
apt-get --reinstall install -y flashplugin-installer
apt-get --reinstall install -y pepflashplugin-installer
Of course, if yo do this, your corporative firewall/proxy must allow
direct connections to archive.canonical.com (http) and dl-ssl.google.com
(https).
In my opinion, update-notifier (and other applications using urllib)
should avoid python urllib
There are many bugs related (in fact, they are duplicated):
https://bugs.launchpad.net/ubuntu/+source/anacron/+bug/1209146
https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/1098233
https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/1037662
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1005837
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/983559
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/820383
https://bugs.launchpad.net/zc.buildout/+bug/484735
--
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/820383
Title:
package-data-downloader fails if apt is configured to use an http
proxy that only supports package downloading
Status in update-notifier package in Ubuntu:
Triaged
Bug description:
Description: Ubuntu oneiric (development branch)
Release: 11.10
ttf-mscorefonts-installer:
Installato: 3.3ubuntu3
Candidato: 3.3ubuntu3
Tabella versione:
*** 3.3ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ oneiric/multiverse i386 Packages
100 /var/lib/dpkg/status
I have ONLY an apt-proxy defined here
cat /etc/apt/apt.conf.d/proxy
Acquire::http::proxy "http://192.168.100.58:3142/";
i must temporary move the /etc/apt/apt.conf.d/proxy then do a
sudo dpkg-reconfigure ttf-mscorefonts-installer
to get the font installer ignore the DEB proxy... and can get the
fonts via web...
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: ttf-mscorefonts-installer 3.3ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-7.9-generic 3.0.0
Uname: Linux 3.0.0-7-generic i686
Architecture: i386
Date: Wed Aug 3 11:06:15 2011
PackageArchitecture: all
ProcEnviron:
LANGUAGE=it_IT:en
PATH=(custom, user)
LANG=it_IT.UTF-8
SHELL=/bin/bash
SourcePackage: msttcorefonts
UpgradeStatus: Upgraded to oneiric on 2011-06-07 (56 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/820383/+subscriptions
More information about the foundations-bugs
mailing list