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

Re: broken package dependencies, surgery on package database



Richard Weil wrote:

Here are samples from running dpkg --purge:

able:/home/rcw# dpkg --purge lm-sensors-2.4.23
dpkg: error processing lm-sensors-2.4.23 (--purge):
Package is in a very bad inconsistent state - you
should
reinstall it before attempting a removal.
Errors were encountered while processing:
lm-sensors-2.4.23

able:/home/rcw# dpkg --purge i2c-2.4.23
dpkg: error processing i2c-2.4.23 (--purge):
Package is in a very bad inconsistent state - you
should
reinstall it before attempting a removal.
Errors were encountered while processing:
i2c-2.4.23

If I run dselect, and select these packages for
removal/purge, I get a similar error message saying
the packages should be reinstalled. Of course I no
longer have the original .debs.

The force options of dpkg don't help either.

Richard
ok, my hunch. Approach #1:
# dpkg --purge --force-depends i2c-2.4.23 lm-sensors-2.4.23 "<and the others here>"

Approach #2:
# apt-get --purge remove i2c-2.4.23 lm-sensors-2.4.23 "<and the others here>"

This should do OK.

--
HTH, best regards,
Massa



Reply to: