Cannot install or remove flashplugin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flashplugin-nonfree (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: synaptic
I install the flashplugin-
ola@minifix:~$ sudo apt-get -f purge flashplugin-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
flashplugin-
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 180kB disk space will be freed.
Do you want to continue [Y/n]?
dpkg: error processing flashplugin-
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
flashplugin-
E: Sub-process /usr/bin/dpkg returned an error code (1)
ola@minifix:~$
I try to re-install:
ola@minifix:~$ sudo apt-get -f install flashplugin-
Reading package lists... Done
Building dependency tree
Reading state information... Done
flashplugin-
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B/19.2kB of archives.
After this operation, 0B of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package flashplugin-
(Reading database ... 102634 files and directories currently installed.)
Preparing to replace flashplugin-
dpkg (subprocess): unable to execute old pre-removal script: Exec format error
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/
subprocess new pre-removal script returned error exit status 1
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
ola@minifix:~$
I download flash-plugin from Adobes site and try to install:
ola@minifix:
(Reading database ... 102634 files and directories currently installed.)
Preparing to replace adobe-flashplugin 10.0.22.87-1 (using install_
update-
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
update-
dpkg: error processing install_
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
Errors were encountered while processing:
install_
ola@minifix:
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/sbin/synaptic
Package: synaptic 0.62.5ubuntu2.1
ProcAttrCurrent: unconfined
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: synaptic
Tags: ubuntu-unr
Uname: Linux 2.6.28-11-generic i686
affects: | synaptic (Ubuntu) → flashplugin-nonfree (Ubuntu) |
tags: | added: exec-format-error |
Here's a workaround:
Execute this to remove all zero byte files related to Flash in /var/lib/ dpkg/alternativ es/:
find /var/lib/ dpkg/alternativ es/*flash* -type f -size 0 | xargs sudo rm
Then try again install/remove flashplugin.