Re: purging linux-image-220.127.116.11
On Wed, Nov 08, 2006 at 09:05:25PM +0100, Gudjon I. Gudjonsson wrote:
> I have had such problems several times and I have always resolved them by
> editing /var/lib/dpkg/status by hand, setting the status of the corresponding
> package to not-installed.
> This has worked but it is not the preferred solution. If anyone knows a
> better solution please tell.
This is indeed the best solution. However, you have to see if all the
/var/lib/dpkg/info/linux-image-2.6.18* prerm and postrm scripts have done
what they should do. In the case of the linux kernel, you should certainly
configure your bootloader (e.g. lilo or grub) in order to account for the
absence of the removed kernel. Once that's done, then you should certainly
get rid of all the files related to the deb package. This information is
Usually the commands:
# rm `cat /var/lib/dpkg/info/linux-image-2.6.18-1-amd-whatever.list`
# rmdir `cat /var/lib/dpkg/info/linux-image-2.6.18-1-amd-whatever.list`
do the trick. Please bear in mind that you have to be AWAKE in order to do
this. Don't try to simply follow the above commands. You should think
before doing the rm and the rmdir.
> Þann Miðvikudagur 08 nóvember 2006 19:41 skrifaði Seb:
> > Hi,
> > A bug seems to have crept in linux-image-2.6.18-1-amd64 so that purging
> > the package fails with the error:
> > dpkg: error processing linux-image-2.6.18-1-amd64 (--purge):
> > subprocess post-removal script returned error exit status 128
> > Errors were encountered while processing:
> > linux-image-2.6.18-1-amd64
> > E: Sub-process /usr/bin/dpkg returned an error code (1)
> > Can somebody point out how this can be resolved? Thanks.
> > --
> > Seb