flashplugin-installer prerm script fix

Bug #403829 reported by Daniel Hermansson on 2009-07-24
This bug affects 16 people
Affects Status Importance Assigned to Milestone
flashplugin-nonfree (Ubuntu)

Bug Description

Binary package hint: flashplugin-nonfree

flashplugin-installer has this on line 37 and 55 in its prerm script:
[ `update-alternatives --list "$p-flashplugin" | wc -l` = 0 ] && \
which does not work as intended because updates-alternatives outputs errors to stderr.
obvious fix is to change lines 37 and 55 to:
[ `update-alternatives --list "$p-flashplugin" 2>&1| wc -l` = 0 ] && \
and flashplugin-installer is uninstallable again.

ProblemType: Bug
Architecture: amd64
Date: Fri Jul 24 03:26:17 2009
DistroRelease: Ubuntu 9.10
Package: flashplugin-installer (not installed)
 PATH=(custom, user)
ProcVersionSignature: Ubuntu 2.6.31-3.19-generic
SourcePackage: flashplugin-nonfree
Uname: Linux 2.6.31-3-generic x86_64

it seems like a bit of a redundant check to me, trying to remove an alternatives name is it has no links. but if we've removed the last link then the name is automatically removed anyway. unless theres something i'm missing we could drop altogether. still, daniels fix will certainly do the trick

for p in $VARIANTS; do
                     [ `update-alternatives --list "$p-flashplugin" | wc -l` = 0 ] && \
                                update-alternatives --remove-all "$p-flashplugin"

from changelog,
dpkg (1.15.0) experimental; urgency=low
[ Raphael Hertzog ]
* Modify update-alternatives to always remove the alternative group when the
    last alternative is removed (even in manual mode).

Changed in flashplugin-nonfree (Ubuntu):
status: New → Confirmed

i'm using a version check to only remove-all on update-alternatives < 1.15 since its redundant with 1.15,

DPKG_VERSION=`update-alternatives --version |head -n1 |cut -f4 -d" "`

        if [ "$DPKG_VERSION" \< 1.15 ] ; then
            for p in $VARIANTS; do
             [ `update-alternatives --list "$p-flashplugin" | wc -l` = 0 ] && \
                update-alternatives --remove-all "$p-flashplugin"

but unless theres some other errors dpkg should fail on then piping the error to stdin is obviously simpler

Linuxexperte (andrea-koeth) wrote :

hi sevenmachines,

I am taking up contact to you, because it is necessary to re-open your so good ppa-repository for flashplugin64-installer, which is no longer offered by Synaptic. And now with gtk3, flash is only more and more crashing and I think, only our repository can fix this up. Could you please be kind and make a repository for oneiric and onward with this flashplugin64-installer??? This would be a so great help for us users of Ubuntu and ubuntu-based distros like LinuxMint.

The thing is, that with this flashplugin in Synaptic, this is no real fun anymore, to watch flash-videos, because flash hangs itself up after a few seconds and I checked this out in other browsers than firefox and there it's completely the same!!

So please, please,please....re-open your ppa-repository of flashplugin64-installer for oneiric and onwards!!! We users really badly need this repositroy to get this fiexed!!!

your friend

Do you still have this bug with the latest Ubuntu/ Flash versions?

Changed in flashplugin-nonfree (Ubuntu):
status: Confirmed → Incomplete
Linuxexperte (andrea-koeth) wrote :

I found out, that in LinuxMint, I do not have problems with flash anymore. But in Ubuntu, flahs often hangs, because the flash often causes cache-overflows. So I manually have to empty out the cache of the browsers, then flahs works again for some time, until the cache is full again.

This is not nice and in LinuxMint, I do not see this, because I am not forced to use the adobe-flash. The Mint-flash is better and it also does not cause these cache-overflows so much. OK, there this also sometimes happens, but not as often as in Ubuntu.

And also the 32bit flash often has problems in Ubuntu so I would like to see this ppa-repository re-opened for Ubuntu Precise and Quantal and even onwards. This would help a lot with flash-trouble! Also in earlier Ubuntu-versions, this ppa-repository helped out a lot!! So we users would greet it, if this repository came back to live!!


Changed in flashplugin-nonfree (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers