Re: Stuck with dpkg: can neither remove nor reinstall a package



Carl Fink wrote:
On Sat, Jul 29, 2006 at 05:07:20PM -0400, Nick Lidakis wrote:
Something went terribly wrong while trying to install a debain package called gtkwifi. Now I'm unable to reinstall the package or force its removal. And using apt-get -f install has not worked either. When trying to reinstall via dpk it keeps complaining: "The package gtkwifi needs to be reinstalled, but I can't find an archive for it. The deb is in my home directory. Using the --force-all option (for reinstall and removal) didn't help either.

What's the full command line and exact message you get?

With dpkg, you have to specify the location of the package, something like

dpkg -i /home/nick/gtkwiki.deb
when trying to install:

thinkpad:/home/nick# dpkg -i /home/nick/gtkwifi-1.09.deb
(Reading database ... 77112 files and directories currently installed.)
Preparing to replace gtkwifi 1.09 (using /home/nick/gtkwifi- 1.09.deb) ...
Unpacking replacement gtkwifi ...
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: error processing /home/nick/gtkwifi- 1.09.deb (--install):
subprocess new post-removal script returned error exit status 1
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
/home/nick/gtkwifi-1.09.deb
thinkpad:/home/nick#

and when trying to remove:
dpkg: error processing gtkwifi (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
gtkwifi
thinkpad:/home/nick#


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Stuck with dpkg: can neither remove nor reinstall a package
    ... Now I'm unable to reinstall the package or force its removal. ... When trying to reinstall via dpk it keeps complaining: "The package gtkwifi needs to be reinstalled, but I can't find an archive for it. ... warning - old post-removal script returned error exit status 1 ...
    (Debian-User)
  • how to get rid of this broken package?
    ... I've a broken package which is set for reinstallation: ... But any attempt to remove or upgrade or reinstall the package fails, ... dpkg: error while cleaning up: ... subprocess post-installation script returned error exit status 4 ...
    (Debian-User)
  • Re: Stuck with dpkg: can neither remove nor reinstall a package
    ... Now I'm unable to reinstall the package or force its ... to reinstall via dpk it keeps complaining: "The package gtkwifi needs to ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Stuck with dpkg: can neither remove nor reinstall a package
    ... Something went terribly wrong while trying to install a debain package called gtkwifi. ... When trying to reinstall via dpk it keeps complaining: "The package gtkwifi needs to be reinstalled, but I can't find an archive for it. ...
    (Debian-User)
  • Edgy Eft upgrade stuck
    ... I saw your name as the maintainer for DDNS3-CLIENT, ... reinstall it before attempting a removal. ... Reading package fields... ... warning - old pre-removal script returned error exit status 127 ...
    (Ubuntu)