flashplugin-installer prerm script fix

Bug #403829 reported by Daniel Hermansson
58
This bug affects 16 people
Affects Status Importance Assigned to Milestone
flashplugin-nonfree (Ubuntu)
Confirmed
Undecided
Unassigned

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)
ProcEnviron:
 PATH=(custom, user)
 LANG=sv_SE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-3.19-generic
SourcePackage: flashplugin-nonfree
Uname: Linux 2.6.31-3-generic x86_64

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

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"
                done

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

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
Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

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"
            done
        fi

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

Revision history for this message
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!!!

Greetings
your friend
Linuxexperte

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

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

Changed in flashplugin-nonfree (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
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!!

Greetings
Linuxexpert4e

Changed in flashplugin-nonfree (Ubuntu):
status: Incomplete → Confirmed
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.