Monday, May 17, 2010

Force removing flashplugin-nonfree completely on ubuntu lucid

Got this error after upgrading from Ubuntu Hardy to Lucid:

flashplugin-nonfree: subprocess installed pre-removal script returned error exit status

Found this on debian forum:


rm /var/lib/dpkg/info/flashplugin-nonfree.prerm
### that is the most important step, the manual removing of the bad script ###
dpkg --remove --force-remove-reinstreq flashplugin-nonfree
### after the above step this is possible now ###
dpkg --purge --force-remove-reinstreq flashplugin-nonfree
### use this in order to purge everything is *package* related

That removed flashplugin completely and new installation is possible.