How to fix wedged dpkg?
After mistakenly trying to install the netsaint package from unstable on a
system running stable I have a system that refuses to either install or
uninstall the broken netsaint package. I have added unstable lines to
sources.list and attempted to reinstall the package, but no luck. I now get
the following behaviour:
$ sudo apt-get install -f
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 250 not upgraded.
42 packages not fully installed or removed.
Need to get 0B/1214kB of archives. After unpacking 0B will be used.
Selecting previously deselected package netsaint.
(Reading database ... 30659 files and directories currently installed.)
Preparing to replace netsaint 0.0.6stable-4 (using
.../netsaint_0.0.6stable-4_i386.deb) ...
Unpacking replacement netsaint ...
dpkg: warning - old post-removal script returned error exit status 10
dpkg - trying script from the new package instead ...
dpkg: error processing
/var/cache/apt/archives/netsaint_0.0.6stable-4_i386.deb (--unpack):
subprocess new post-removal script returned error exit status 10
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 10
Errors were encountered while processing:
/var/cache/apt/archives/netsaint_0.0.6stable-4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
-----
$ sudo dpkg -P netsaint
dpkg: error processing netsaint (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
netsaint
-----
I've looked through /var/lib/dpkg/info/netsaint.postrm but can't tell what
exactly would exit with status 10.
Any ideas greatly appreciated,
Charles Thornhill-Cole
Systems Admin / Developer
charles@bigbridge.com.au
Ph 07 3435 1800
Fax 07 3435 1810
Reply to: