[karmic upgrade] flashplugin-installer creates bad symlink (amd64)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flashplugin-nonfree (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: flashplugin-
I just upgraded from jaunty to karmic by running 'update-manager -d'.
Observed behavior: the non-free Adobe flash plugin disappeared from my firefox. 'apt-get install --reinstall flashplugin-
Underlying cause:
Looking in /usr/share/
npwrapper.
However, /usr/lib/
Running 'cd /usr/share/
Please fix, kthx.
This is on x86-64.
summary: |
- [karmic upgrade] flashplugin-installer creates bad symlink + [karmic upgrade] flashplugin-installer creates bad symlink (amd64) |
Found the broken symlink with cruft(8). I don't use ubufox.
flashplugin- installer. postinst does
for p in $VARIANTS; do
... update-alternatives with /var/lib/....so
ln -sf /usr/lib/ flashplugin- installer/ npwrapper. libflashplayer. so /usr/share/ ubufox/ plugins
Note the /var/lib vs. /usr/lib mixup.
The postinst should put the path in a shell variable, instead of repeating it 4 times (2 times incorrectly, with /usr instead of /var). e.g. /var/lib/ flashplugin- installer libflashplayer. so npwrapper. $INST_SO when needed.
INST_DIR=
INST_SO=
and use $INST_DIR/
Maybe.
actually, someone who knows what all the paths are supposed to be should have a look at the script and make sure that other occurrences of /usr/lib/ flashplugin- installer are ok. e.g. DIR=/var/ lib/flashplugin -installer/ /usr/bin/ nspluginwrapper -n -i /usr/lib/ flashplugin- installer/ libflashplayer. so
NSPLUGIN_
flash works for me, in both firefox and seamonkey, but the postinst is a bit of a mess with /var/lib vs. /usr/lib
I also noticed that postinst deletes the tar.gz it just downloaded, so it always has to re-download.
This only matters when mucking around, since normally the postinst will only run after an upgrade,
and those will normally come with a new tar.gz to download.
The lines in question are:
fp_download_ and_unpack
rm -rf adobe-flashplugin*
the rm -rf could be rm -rf adobe-flashplug in*[^z] to keep the tar.gz, although that's still somewhat brittle and will stop working
if they ever dist a tar.bz2, for example.