flashplugin-nonfree not working after upgrading to 9.1

Asked by GBY

Basically I flash is not installed after upgrading to 9.1. As far as I understanf the problem is with a file name
flashplugin-nonfree

when trying to install it I got the error:
Preconfiguring packages ...
dpkg: error processing flashplugin-nonfree (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 flashplugin-nonfree
E: Sub-process /usr/bin/dpkg returned an error code (1)

but this is Hebrew for me.. what should I do? Can somebody give me the direct commands?
Also when I use the software update at the KpackageKit it says that the above package is successfully installed but I still can not use flash (watch youtube clips for example) and it repeatedly notifies my that this package should be installed/updated.
Please help.. :(
Many thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
GBY
Solved:
Last query:
Last reply:
Revision history for this message
Omer Akram (om26er) said :
#1

try sudo apt-get purge flash* && sudo apt-get update && sudo apt-get install adobe-flashplugin

Revision history for this message
GBY (guybeny) said :
#2

same error message after: apt-get purge flash*:

dpkg: error processing flashplugin-nonfree (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 flashplugin-nonfree
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
wojox (wojox) said :
#3

Try

sudo apt-get -f install

to force an install of the files that didn't get loaded because of the error. Then try apt-get upgrade again, apt-get -f install back and forth until only the package that has the error is left.

Revision history for this message
GBY (guybeny) said :
#4

Hi,
Thanks. However, I did it several times and after typing apt-get -f install I still get the same error:

dpkg: error processing flashplugin-nonfree (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 flashplugin-nonfree
E: Sub-process /usr/bin/dpkg returned an error code (1)

help..

Revision history for this message
Omer Akram (om26er) said :
#5

gby, go to software sources and untick all the repositories you added and then reload.

Revision history for this message
GBY (guybeny) said :
#6

Thanks.
But how I can do this? Can you please send me the explicit commands? Where are these repositories?

Thanks again.

Revision history for this message
GBY (guybeny) said :
#7

Is it possible that I have the same problem as in bug # 92445 (broken dependencies), thus I need the same solution written by wolox?

Thanks!

Revision history for this message
Omer Akram (om26er) said :
#8

System>>administration>>software sources. the go to the second tab(other software) and untick them.

Revision history for this message
Omer Akram (om26er) said :
#9
Revision history for this message
Soul-Sing (soulzing) said :
#10

# Deletes a troublesome config file
sudo rm /var/lib/dpkg/info/adobe-flashplugin.prerm

# Force-reconfigures adobe-flashplugin
sudo dpkg-reconfigure adobe-flashplugin --force

# Force-removes adobe-flashplugin
sudo dpkg --purge --force-all adobe-flashplugin

# Installs flashplayer the easy way
sudo apt-get install flashplugin-nonfree

Revision history for this message
GBY (guybeny) said :
#11

Many thanks !!!

In this link:
https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/365392
posted by om26er I found the winning solution. I have used the last post by Ronny Ager-Wick.

Thank you all