package adobe-flashplugin 10.0.22.87-1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 2

Bug #371890 reported by Madhusudan.C.S
312
This bug affects 65 people
Affects Status Importance Assigned to Milestone
adobe-flashplugin (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Karmic by Salimane Adjao Moustapha

Bug Description

Binary package hint: adobe-flashplugin

I have flashplugin-installer installed from repos. But still I am not able to view any flash related content on Firefox. So I tried re-installing it. It said the package is in very bad inconsistent state. I also tried installing it from Adobe's website. Still no use. After today's upgrade of the flash plugin. I am getting this error:

E: /var/cache/apt/archives/adobe-flashplugin_10.0.22.87-2jaunty1_i386.deb: subprocess new pre-removal script returned error exit status 2
E: /var/cache/apt/archives/flashplugin-installer_10.0.22.87ubuntu2_i386.deb: subprocess new pre-removal script returned error exit status 1

And the apt console says:

Preconfiguring packages ...
(Reading database ... 139819 files and directories currently installed.)
Preparing to replace adobe-flashplugin 10.0.22.87-1 (using .../adobe-flashplugin_10.0.22.87-2jaunty1_i386.deb) ...
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/iceape-flashplugin for update_mode ()
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/iceape-flashplugin for update_mode ()
dpkg: error processing /var/cache/apt/archives/adobe-flashplugin_10.0.22.87-2jaunty1_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 2
postinst called with argument `abort-upgrade'
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Preparing to replace flashplugin-installer 10.0.22.87ubuntu2 (using .../flashplugin-installer_10.0.22.87ubuntu2_i386.deb) ...
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/iceape-flashplugin for update_mode ()
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
prerm called with unknown argument `failed-upgrade'
dpkg: error processing /var/cache/apt/archives/flashplugin-installer_10.0.22.87ubuntu2_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
postinst called with argument `abort-upgrade'
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Selecting previously deselected package flashplugin-nonfree.
Unpacking flashplugin-nonfree (from .../flashplugin-nonfree_10.0.22.87ubuntu2_i386.deb) ...
Errors were encountered while processing:
 /var/cache/apt/archives/adobe-flashplugin_10.0.22.87-2jaunty1_i386.deb
 /var/cache/apt/archives/flashplugin-installer_10.0.22.87ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up swfdec-mozilla (0.8.2-1ubuntu1) ...
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/iceape-flashplugin for update_mode ()
dpkg: error processing swfdec-mozilla (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: error processing flashplugin-installer (--configure):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration.
dpkg: dependency problems prevent configuration of flashplugin-nonfree:
 flashplugin-nonfree depends on flashplugin-installer; however:
  Package flashplugin-installer is not configured yet.
dpkg: error processing flashplugin-nonfree (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing adobe-flashplugin (--configure):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration.
Errors were encountered while processing:
 swfdec-mozilla
 flashplugin-installer
 flashplugin-nonfree
 adobe-flashplugin

Please help.

Thanks and regards

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess new pre-removal script returned error exit status 2
Package: adobe-flashplugin 10.0.22.87-1
SourcePackage: adobe-flashplugin
Title: package adobe-flashplugin 10.0.22.87-1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 2
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
Madhusudan.C.S (madhusudancs) wrote :
Revision history for this message
Jeffrey Baker (jwbaker) wrote :

Confirmed on Karmic. adobe-flashplugin 10.0.22.87-2jaunty1 package can no longer be removed.

Removing adobe-flashplugin ...
update-alternatives: error: no alternatives for iceape-flashplugin.
update-alternatives: error: no alternatives for iceape-flashplugin.
dpkg: error processing adobe-flashplugin (--purge):
 subprocess installed pre-removal script returned error exit status 2
postinst called with argument `abort-remove'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 adobe-flashplugin

Changed in adobe-flashplugin (Ubuntu):
status: New → Confirmed
Jeffrey Baker (jwbaker)
tags: added: karmic
Revision history for this message
Khairul Aizat Kamarudzzaman (fenris) wrote :

i also can confirm it happen to me in karmic ..

but is there any temporary fix for it .. since it will affect all the new package i want to install into my desktop...if this bugs not being fix 1st before installing new package ...

Revision history for this message
Matthias Blaicher (blaicher) wrote :

This seems to be related to bug #365392. But the fix provided there doesn't help me as there are no *flash* files in /var/lib/dpkg/alternatives.

Revision history for this message
Matthias Blaicher (blaicher) wrote :

I tried to hack the flashplugin-installer_10.0.22.87ubuntu2_amd64.deb so that it won't try to update-alternativ those things. Now at least one can install the package and uninstall it afterwards. Once flashplugin-nonfree is installed flash works again. I'll append the hacked 64-bit package, the i386 package can probably hacked the same way.

Oh, first I tried to only alter VARIANTS to VARIANTS="mozilla firefox xulrunner midbrowser xulrunner-addons" - but that did not work...

Revision history for this message
Matthias Blaicher (blaicher) wrote :

Ok I also made a package for i386 but could not test it as I'm x64 only. This is not a fix merely a hack to get your system to a usable state again. I don't think it has any side effects. Especially if you reinstall flashplugin-installer again after this package.

Revision history for this message
YaManicKill (yamanickill) wrote :

I think this is affecting me as well. When I sudo apt-get autoremove, it removes nspluginwrapper, and doesn't remove flashplugin-installer. The process is here - http://pastebin.com/f7bd13916

Then it asks me to sudo apt-get -f install, which gives this - http://pastebin.com/ff5168aa

I think this is the same problem, but not sure. I can leave them installed, but it then complains at me everytime I do anything with apt-get.

Revision history for this message
YaManicKill (yamanickill) wrote :

I managed to mkdir /var/cache/flashplugin-installer and then it installs it properly

http://pastebin.com/f5e5945c0

Revision history for this message
Ryan (ubuntu-draziw) wrote :

This is what fixed me up:
http://forum.ubuntu.cz/index.php/topic,37765.msg277499.html#msg277499
 sudo rm /var/lib/dpkg/info/adobe-flashplugin.prerm
 sudo dpkg --remove --force-remove-reinstreq adobe-flashplugin

Couldn't find any pages in English that had that. - thanks/Dzięki to "arrange", Stálý člen for the post

Revision history for this message
Jamie (solowinter) wrote :

@Ryan

Thanks! That did the trick!

Revision history for this message
Christian González (droetker) wrote :

Here not.
I have already a /var/cache/flashplugin-installer/, and Ryans trick was not working here (Jaunty).
The only way havone adobes flash was Matthias Blaichers package - but with every upgrade it breaks again.
The problem hiere is:
When I call "update-alternatives --config firefox-flashplugin" it also says

 update-alternatives: Fehler oder EOF beim Lesen von /var/lib/dpkg/alternatives/firefox-flashplugin für update_mode ()

The file /var/lib/dpkg/alternatives/firefox-flashplugin exists, but is empty. I can install gnash, makes no difference.

Revision history for this message
Daniel de Souza Telles (danielsouza) wrote :

Thanks Ryan!

Revision history for this message
Fabio Rodriguez (realgt) wrote :

a combination of these helped me on karmic

mkdir /var/cache/flashplugin-installer
sudo rm /var/lib/dpkg/info/adobe-flashplugin.prerm
sudo dpkg --remove --force-remove-reinstreq adobe-flashplugin

Revision history for this message
Adam Taylor (tochinoki) wrote :

Fabio's fix worked for me. Many thanks.

Revision history for this message
mixalns (jhonnyglou) wrote :

Fabio Rodriguez thanks, worked for me too.

Revision history for this message
dizassm (dizassm) wrote :

Fabio thanks!!!! Work on karmic!

Revision history for this message
macpablo (t-bordeleau) wrote :

I second that !!!

Revision history for this message
bjohnson8949 (bjohnson8949) wrote :

Ryan just wanted to say thanks a million took forever to find this solution :(

Revision history for this message
sem (semitones) wrote :

confirmed in karmic, x64

Fabio Rodriguez's solution worked for me, except I used flashplugin-installer instead of adobe-flashplugin.

mkdir /var/cache/flashplugin-installer
sudo rm /var/lib/dpkg/info/flashplugin-installer.prerm
sudo dpkg --remove --force-remove-reinstreq flashplugin-installer

The text of the original problem can be seen below

$ sudo dpkg -r flashplugin-installer
(Reading database ... 351173 files and directories currently installed.)
Removing flashplugin-installer ...
update-alternatives: error: no alternatives for iceape-flashplugin.
update-alternatives: error: no alternatives for iceape-flashplugin.
dpkg: error processing flashplugin-installer (--remove):
 subprocess installed pre-removal script returned error exit status 2
postinst called with argument `abort-remove'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 flashplugin-installer

Revision history for this message
opsilos (pick2005) wrote :

hello !!!

this command:
sudo dpkg --remove --force-remove-reinstreq flashplugin-installer

has resolved my error !!!

my error was:
" ...
ProblemType: Package
Architecture: i386
Date: Sun Nov 1 23:16:06 2009
Package: adobe-flashplugin 10.0.22.87-1
SourcePackage: adobe-flashplugin
ErrorMessage:
 le sous-processus script pre-removal installé a retourné une erreur de sortie d'état 2

...

E: Le paquet adobe-flashplugin doit être réinstallé, mais il est impossible de trouver son archive.
E: Erreur interne en recalculant le cache des dépendances (1). Veuillez envoyer un rapport d'anomalie.
"

thank's !!!

Revision history for this message
dneff87 (danielneff) wrote :

Thank's Ryan!!!

Revision history for this message
Eric Polin (eric-polin) wrote :

Creating /var/cache/flashplugin-installer did it my case, thanks YaManicKill!

error 2 was reported when installing or uninstalling flashplugin-nonfree. I run lucid on X64

Revision history for this message
Aravind Babu Parvathala (aravind-svu) wrote :

Thanks Ryan

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.