flashplugin-installer does not honor proxy settings

Bug #1037662 reported by marcobra (Marco Braida)
152
This bug affects 36 people
Affects Status Importance Assigned to Milestone
flashplugin-nonfree (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Description: Ubuntu quantal (development branch)
Release: 12.10

flashplugin-installer:
  Installato: 11.2.202.238ubuntu1
  Candidato: 11.2.202.238ubuntu1
  Tabella versione:
 *** 11.2.202.238ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ quantal/multiverse i386 Packages
        100 /var/lib/dpkg/status

i'm behind a corporate proxy i can download with wget, curl and other stuffs but the plugin flashplugin-nonfree do not traverse my proxy... gui install mode and also this using terminal commands:

sudo apt-get install flashplugin-nonfree

nor with

sudo -E apt-get install flashplugin-nonfree

my env: "env | grep -i proxy"

http_proxy=http://192.168.100.59:3128/
ftp_proxy=ftp://192.168.100.59:3128/
socks_proxy=socks://192.168.100.59:3128/
UBUNTU_MENUPROXY=
https_proxy=https://192.168.100.59:3128/

Also i have the proxy values correctly set into /etc/apt/apt.conf to traverse the proxy for the debs...

also set into /etc/sudoers
Defaults env_reset
Defaults env_keep="http_proxy https_proxy"

Available workaround:
https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/1098233

Thanks.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: flashplugin-installer 11.2.202.238ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-10.10-generic 3.5.1
Uname: Linux 3.5.0-10-generic i686
ApportVersion: 2.4-0ubuntu8
Architecture: i386
Date: Thu Aug 16 18:16:30 2012
ProcEnviron:
 LANGUAGE=it:en
 TERM=xterm
 PATH=(custom, user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
SourcePackage: flashplugin-nonfree
UpgradeStatus: Upgraded to quantal on 2012-07-02 (45 days ago)

Revision history for this message
marcobra (Marco Braida) (marcobra) wrote :
description: updated
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in flashplugin-nonfree (Ubuntu):
status: New → Confirmed
Revision history for this message
cleary (bernard-gray) wrote :
Download full text (3.8 KiB)

This is also affecting trusty flashplugin-installer=11.2.202.332ubuntu1

==========================================
Workaround: Set a local file in debconf

$ sudo apt-get install debconf-utils

$ cd /path/to/plugin/folder/ ; wget -c http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.332.orig.tar.gz

$ sudo -s
# echo flashplugin-installer flashplugin-installer/local string /path/to/plugin/folder/ | debconf-set-selections
# apt-get install --reinstall flashplugin-installer
# exit

==========================================
Diagnostic output:

$ grep proxy /etc/apt/apt.conf
Acquire::http::Proxy "http://user:pass@proxy1:3128";

$ grep proxy /etc/environment
http_proxy=http://user:pass@proxy1:3128
https_proxy=http://user:pass@proxy1:3128
export http_proxy https_proxy

$ grep proxy /etc/wgetrc
http_proxy = http://user:pass@proxy1:3128/
https_proxy = http://user:pass@proxy1:3128/
# If you do not want to use proxy at all, set this to off.
use_proxy = on

$ sudo grep proxy -B1 /etc/sudoers
Defaults env_reset
Defaults env_keep="http_proxy"

$ sudo echo $http_proxy
http://user:pass@proxy1:3128

$ wget -c http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.332.orig.tar.gz
--2013-12-16 14:53:37-- http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.332.orig.tar.gz
Resolving proxy1 (proxy1)... 10.10.3.137
Connecting to proxy1 (proxy1)|10.10.3.137|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 14136904 (13M) [application/x-gzip]
Saving to: 'adobe-flashplugin_11.2.202.332.orig.tar.gz’

100%[======================================================================>] 14,136,904 504KB/s in 20s

2013-12-16 14:53:58 (700 KB/s) - 'adobe-flashplugin_11.2.202.332.orig.tar.gz’ saved [14136904/14136904]

$ sudo apt-get install --reinstall flashplugin-nonfree
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'flashplugin-installer' instead of 'flashplugin-nonfree'
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/6,832 B of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 241937 files and directories currently installed.)
Preparing to replace flashplugin-installer 11.2.202.332ubuntu1 (using .../flashplugin-installer_11.2.202.332ubuntu1_amd64.deb) ...
Unpacking replacement flashplugin-installer ...
Processing triggers for update-notifier-common ...
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.332.orig.tar.gz
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 235, in process_download_requests
    dest_file = urllib.urlretrieve(files[i])[0]
  File "/usr/lib/python2.7/urllib.py", line 94, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.7/urllib.py", line 240, in retrieve
    fp = self.open(url, data)
  File "/usr/lib/python2.7/urllib.py", line 208, in...

Read more...

summary: - cannot install flash proxy settings are not onored by package
+ flashplugin-installer does not honor proxy settings
Changed in flashplugin-nonfree (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :

It seems that flashplugin-installer is not needed any more. So one can safely:

sudo apt-get remove flashplugin-installer

sudo apt-get install adobe-flashplugin

Revision history for this message
Daniel Richard G. (skunk) wrote :

Walter,

adobe-flashplugin is only available in the Canonical "partner" repository, which is not enabled per default, and should not be required to install Adobe Flash. The flashplugin-installer package is still very much needed as a solution that can reside within the regular Ubuntu repositories.

Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :

Thanks Daniel, I just wrote this comment because I was told that "flashplugin-installer is a historic thing, you should be able to install adobe-flashplugin from partner archive without any problems".

Revision history for this message
Jan Groenewald (jan-aims) wrote : Re: [Bug 1037662] Re: flashplugin-installer does not honor proxy settings

Hi

Is multiverse (where flashplugin-installer resides) enabled by default?

Regards,
Jan

On 9 January 2014 18:51, Daniel Richard G. <email address hidden> wrote:

> Walter,
>
> adobe-flashplugin is only available in the Canonical "partner"
> repository, which is not enabled per default, and should not be required
> to install Adobe Flash. The flashplugin-installer package is still very
> much needed as a solution that can reside within the regular Ubuntu
> repositories.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1098233).
> https://bugs.launchpad.net/bugs/1037662
>
> Title:
> flashplugin-installer does not honor proxy settings
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/1037662/+subscriptions
>

--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za
 ^^-^^

Revision history for this message
cleary (bernard-gray) wrote :

Hi Walter,
Thanks for the info, unfortunately it's still not available for trusty yet, but the flashplugin-installer has been available pretty much since the repo came online.

Therefore I'd argue that flashplugin-installer is in fact still required since the partners aren't really holding up their end for the coming releases.

Revision history for this message
Michel-Ekimia (michel.ekimia) wrote :

Humm, are you sure that you're proxy is not rejecting non classic user agents ? try with wget.

Revision history for this message
Jan Groenewald (jan-aims) wrote :

Also try adobe-flashplugin from partner rather than flashplugin-installer.

On 25 April 2014 11:13, Ekimia <email address hidden> wrote:

> Humm, are you sure that you're proxy is not rejecting non classic user
> agents ? try with wget.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1098233).
> https://bugs.launchpad.net/bugs/1037662
>
> Title:
> flashplugin-installer does not honor proxy settings
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/1037662/+subscriptions
>

--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za
 ^^-^^

Revision history for this message
latimerio (fomember) wrote :

I administer >100 hosts with 12.04LTS and 14.04LTS and the problem with update-notifier-common not respecting proxy settings is very annoying.
I have set the proxy in /etc/apt/apt.d/95proxies in /etc/environment and with gsettings as recommended in http://askubuntu.com/questions/150210/how-do-i-set-systemwide-proxy-servers-in-xubuntu-lubuntu-or-ubuntu-studio but still anacron reports the error.
I think the real bug is #1209146 as anacron does not run with the correct environment settings.

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

/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/zc.buildout/+bug/484735

Revision history for this message
Bart Martens (bartm) wrote :

Please don't send notifications about bugs in flashplugin-nonfree in Ubuntu to <email address hidden>, because Debian uses a different package named flashplugin-nonfree.

Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :
Revision history for this message
Josep Pujadas-Jubany (jpujades) wrote :

#13

OOps, sorry!

Revision history for this message
Bart Martens (bartm) wrote :

Please stop sending notifications to <email address hidden>.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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