On Sun, 15 Feb 2009 19:19:23 +0100, Batr Martens wrote:
The package flashplugin-nonfree has "its own internal solution" for
caching the big .tar.gz downloaded from Adobe. Downloading
fp10.*.pgp.asc is not cached by flashplugin-nonfree.
My advice is to never use a caching proxy with flashplugin-nonfree,
because a retrieval of fp10.*.pgp.asc from cache might result in a
security update to be installed later than it should.
If you must use a proxy because you have no direct way to the internet,
then obviously you have no choice than to use the proxy.
Bart, because the update-flashplugin-nonfree script is initially invoked
by apt, "sudo apt-get install flashplugin-nonfree" will never result in
a working flash plugin in a proxied environment. That seems like an
important use case.
ajones@diomedes> echo $http_proxy
http://localhost:8118
ajones@diomedes> sudo apt-get install flashplugin-nonfree
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
libegl1-mesa libegl1-mesa-drivers lsof fortunes-min libccid
libxcb-xfixes0
fortune-mod libpango1.0-common libsexy2 librecode0 libexo-0.3-0
libxfce4menu-0.1-0 librpcsecgss3 libqt4-webkit libexempi3 libgmp3c2 aumix
oss-compat libgsf-1-common aumix-common ttf-linux-libertine libqtsensors1
liboil0.3 pcscd libgsf-1-114 libiptcdata0 libntfs-3g75
Use 'apt-get autoremove' to remove them.
Suggested packages:
msttcorefonts ttf-xfree86-nonfree flashplugin-nonfree-extrasound
The following NEW packages will be installed:
flashplugin-nonfree
0 upgraded, 1 newly installed, 0 to remove and 321 not upgraded.
Need to get 18.0 kB of archives.
After this operation, 139 kB of additional disk space will be used.
Get:1 http://mirrors.kernel.org/debian/ sid/contrib flashplugin-nonfree
i386 1:2.8.3 [18.0 kB]
Fetched 18.0 kB in 0s (29.8 kB/s)
Selecting previously deselected package flashplugin-nonfree.
(Reading database ... 143331 files and directories currently installed.)
Unpacking flashplugin-nonfree (from
.../flashplugin-nonfree_1%3a2.8.3_i386.deb) ...
Processing triggers for man-db ...
Setting up flashplugin-nonfree (1:2.8.3) ...
ERROR: wget failed to download
http://people.debian.org/~bartm/flashplugin-nonfree/fp10.sha512.i386.pgp.asc
More information might be available at:
http://wiki.debian.org/FlashPlayer
The fix to the shell script is straightforward. apt-config is provided
specifically to allow the apt configuration to be examined by shell
scripts, and the apt configuration includes the correct proxy for use
during package install/update.
Adding a simple 'if' to the top of the update-flashplugin-nonfree fixes
the problem:
if apt-config dump | grep Acquire::http::Proxy; then
http_proxy=`apt-config dump | grep Acquire::http::Proxy \
| awk '{ print $2 }' | sed 's/\"\(.*\)\";/\1/'`
if [ $http_proxy ] ; then
export http_proxy
fi
fi
Here, we check for the existence of the variable in the apt config. If
it exists, we attempt to parse it with awk+sed. If parsing succeeds,
export the variable for use by wget.
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org