[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to force a package removal?



On Sun, Aug 16, 2009 at 14:50:53 -0500, Ron Johnson wrote:
> Hi,
> 
> A couple of years ago, when there were some "issues" with the
> various Adobe Flash packages, I downloaded and installed
> adobe-flashplugin from Ubuntu.  It installed perfectly, and I've
> been happy with it ever since.
> 
> But now I want to replace it with the up-to-date flashplayer-mozilla
> from www.debian-multimedia.org.
> 
> However, I've hosed something, and can't figure out how to unhose it...
> 
> Currently, this is what is happening:
> 
> # dpkg -r --force-remove-reinstreq adobe-flashplugin
> dpkg: warning: overriding problem because --force enabled:
>  Package is in a very bad inconsistent state - you should
>  reinstall it before attempting a removal.
> (Reading database ... 182140 files and directories currently installed.)
> Removing adobe-flashplugin ...
> update-alternatives: error: no alternatives for iceape-flashplugin.
> update-alternatives: error: no alternatives for iceape-flashplugin.
> dpkg: error processing adobe-flashplugin (--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:
>  adobe-flashplugin

The first two errors seems to result from invocations of
update-alternatives in the pre-removal script of the package, so I would
start here:

/var/lib/dpkg/info/adobe-flashplugin.prerm

Looking at the script you might be able to figure out what it is trying
to do; then you can search for a way to change your alternatives setup
to make that work or you can comment out the problematic commands. Using
"set -x" in the script (assuming it is a shell script) should also help
to see what it is trying to do. 

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


Reply to: