I think the problem is un update-notifier

This bit of code checks the environment 
0 jan@muizenberg:/var/autofs/misc/home/jan$grep -C3 nv 
/usr/lib/update-notifier/package-data-downloader
        Failed downloads are reported to the user via the
        update-notifier interface."""

        # Get our proxy settings from the environment
        proxies = {}
        try:
                for proto in ('http','https','ftp'):
                        try:
                                proxies[proto] = os.environ[proto+"_proxy"]
                        except KeyError:
                                pass


0 jan@muizenberg:/var/autofs/misc/home/jan$dpkg -S 
/usr/lib/update-notifier/package-data-downloader
update-notifier-common: /usr/lib/update-notifier/package-data-downloader

Both these /etc/environment and /etc/apt/apt.conf are ignored:

0 jan@muizenberg:/var/autofs/misc/home/jan$cat /etc/environment 
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
http_proxy="http://proxy.aims.ac.za:3128/";
https_proxy="https://proxy.aims.ac.za:3128/";
ftp_proxy="ftp://proxy.aims.ac.za:3128/";
0 jan@muizenberg:/var/autofs/misc/home/jan$cat /etc/apt/apt.conf
Acquire::http::proxy "http://proxy.aims.ac.za:3128/";;
Acquire::https::proxy "https://proxy.aims.ac.za:3128/";;
Acquire::ftp::proxy "ftp://proxy.aims.ac.za:3128/";;
0 jan@muizenberg:/var/autofs/misc/home/jan$

However when I run

env | grep prox

from either root's crontab -e or from /etc/crontab as root, I do see the
appropriate proxies set. I thought this was where os.environ would get
the value, but it does not. You can stick a print statement in  /usr/lib
/update-notifier/package-data-downloader to see that omission.

Some history
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/sudo/+bug/982684
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/979477

Some of those workarounds seem way too long. For us it works to go from
the command line (not from cron) , where your http_proxy is set:

apt-get --reinstall install flashplugin-installer

In real life, many of my users flash stops working each time there is an
update to flashplugin-installer, because they are not familiar with the
command line. In addition, their entire apt system stays broken with
this error popping up every subsequent time they install/update anything
else graphically.

So, while it is marked as WONTFIX here:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/983559
seems to be due to this:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/983559/comments/4

That still leaves many users in a bad position. Despite the comment 4
linked above explaining why apt.conf should not be read. However, it
goes on to say:

"So you can specify a system proxy by setting the http_proxy variable in
/etc/environment. Depending on how you're gaining root privileges for
apt, you may still run into problems due to bug #982684, which will
hopefully be fixed soon."

That other bug #982684 is fixed released April 2013, but I don't really
see how it affects the cronjob /etc/cron.daily/update-notifier, though
I'm not sure the cronjob uses sudo or pkexec.

In any case, on Ubuntu 12.04.2, the proxy still isn't read from
/etc/environment. If that is really fixed then the problem will go away
for many users who do set /etc/environment (knowingly by editing the
file, or unknowningly from the Dash > Network > Proxy > Manual > Apply
Systemwide, which seems to write to /etc/environment).

And while that will fix it for my computer lab institutional desktops,
imaged by me, all the visiting laptops set the proxy via PAC file, not
via manual > apply system wide, so that they still don't have the
problem fixed.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to flashplugin-nonfree in Ubuntu.
https://bugs.launchpad.net/bugs/1098233

Title:
  flashplugin-installer do not honore proxy settings

Status in Adobe Flash Plugin Tools:
  New
Status in “flashplugin-nonfree” package in Ubuntu:
  Confirmed

Bug description:
  Description:  Ubuntu 12.10
  Release:      12.10
  Codename:     quantal

  flashplugin-installer:
    Installato: 11.2.202.258ubuntu0.12.10.1
    Candidato:  11.2.202.261ubuntu0.12.10.1
    Tabella versione:
       11.2.202.261ubuntu0.12.10.1 0
          500 http://archive.ubuntu.com/ubuntu/ quantal-updates/multiverse i386 
Packages
          500 http://archive.ubuntu.com/ubuntu/ quantal-security/multiverse 
i386 Packages
   *** 11.2.202.258ubuntu0.12.10.1 0
          100 /var/lib/dpkg/status
       11.2.202.243ubuntu1 0
          500 http://archive.ubuntu.com/ubuntu/ quantal/multiverse i386 Packages

  flashplugin-installer do not honore proxy settings so cannot download
  the proxy so my update are frozen on

  Elaborazione dei trigger per update-notifier-common...
  flashplugin-installer: downloading 
http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.261.orig.tar.gz

  already reported:
  https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/1037662

  Very old issue still not solved... :-(

  #---------------- Workaround for user with same issue ----------------

  As a workaround... while the apt-get update process is frozen on the
  row below

  Elaborazione dei trigger per update-notifier-common...
  flashplugin-installer: downloading 
http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.261.orig.tar.gz

  Opening another terminal...
  wget 
http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.261.orig.tar.gz
  sudo /usr/lib/flashplugin-installer/install_plugin 
$(pwd)/adobe-flashplugin_11.2.202.261.orig.tar.gz
  rm adobe-flashplugin_11.2.202.261.orig.tar.gz

  then to release the frozen update process, type:

  sudo killall dpkg

  or reboot the pc, then type:

  sudo dpkg --configure -a

  to check and put in a good state the apt env...

  # --------------------------------------------------------------

  Thanks

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: flashplugin-installer 11.2.202.258ubuntu0.12.10.1
  Uname: Linux 3.7.1-030701-generic i686
  ApportVersion: 2.6.1-0ubuntu9
  Architecture: i386
  Date: Thu Jan 10 15:39:05 2013
  MarkForUpload: True
  SourcePackage: flashplugin-nonfree
  UpgradeStatus: Upgraded to quantal on 2012-07-02 (192 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/adobe-flash-plugin-tools/+bug/1098233/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to