kernel-image install wedged
My kernel's stuck!
For a while now I've been limping along with the following error from
apt-get install/upgrade/dist-upgrade:
Preparing to replace kernel-image-2.6.8-powerpc 2.6.8-12 (using .../
kernel-image-2.6.8-powerpc_2.6.8-16_powerpc.deb) ...
The directory /lib/modules/2.6.8-powerpc still exists. Continuing as
directed.
Unpacking replacement kernel-image-2.6.8-powerpc ...
Not a directory: -v
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/kernel-
image-2.6.8-powerpc.postrm line 250.
dpkg: warning - old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
Not a directory: --verbose
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/tmp.ci/postrm
line 250.
dpkg: error processing /var/cache/apt/archives/kernel-image-2.6.8-
powerpc_2.6.8-16_powerpc.deb (--unpack):
subprocess new post-removal script returned error exit status 2
Not a directory: --verbose
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/tmp.ci/postrm
line 250.
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/kernel-image-2.6.8-powerpc_2.6.8-16_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Meanwhile attempting to remove it via apt-get remove kernel-
image-2.6.8-powerpc reports:
dpkg: error processing kernel-image-2.6.8-powerpc (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Aborted
creaky:/var/vdomains/shawmutav.com/users# Errors were encountered
while processing:
kernel-image-2.6.8-powerpc
In short kernel-image-2.6.8-powerpc... just will not install, and
will not remove.
I _think_ things got wedged by running out of room on a partition.
Can anyone suggest a combination of dpkg/apt/apt-get commands can get
me out of this trap?
Note those '' Not a directory: -v'' messages makes me think that the
package removal scripts have a problem with incomplete installations.
Is there anything that'll just wipe an inconsistent package from the
disk to allow reinstallation from scratch?
If it helps, I've backed off to using a 2.4.17 kernel.
Reply to: