None

Flashplayer Broken on Ubuntu 10.04

May 1, 2010

After an ubuntu upgrade from 8.04LTS to 10.04LTS I had trouble with flashplayer. sudo apt-get remove flashplugin-nonfree gave:

The following packages will be REMOVED                                                                                    
    flashplugin-nonfree                                                                                                     
0 upgraded, 0 newly installed, 1 to remove and 17 not upgraded.                                                           
1 not fully installed or removed.                                                                                         
After this operation, 168kB disk space will be freed.                                                                     
Do you want to continue [Y/n]? y                                                                                          
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)

I fixed this by doing:

sudo rm /var/lib/dpkg/info/flashplugin-nonfree.prerm
sudo dpkg --remove --force-remove-reinstreq flashplugin-nonfree
sudo dpkg --purge --force-remove-reinstreq flashplugin-nonfree

References