Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: dpkg purge problem

From: Bob Proulx <bob(at)proulx.com>
Date: Wed Aug 01 2007 - 02:27:09 EDT


Sasho Angelov wrote:
> Updating /boot/grub/menu.lst ... done
> And stop here. Only I can do is to press Ctrl+C

That is running update-grub. You should be able to run that command manually.

  sudo update-grub

If that hangs (hopefully it will) then you can debug from that point. It is a shell script and so the following command would useful.

  sudo bash -x /usr/sbin/update-grub

> /var/lib/dpkg/info/linux-image-2.6.14-2-k7.list is empty file

That .list file should not be related.

> What to do???

Do you need help?X

Did your /boot/grub/menu.lst file become corrupted? If so then move it out of the way (so that you have a saved copy) and then run update-grub manually. Seeing no file there it will offer to create one for you automatically.

  sudo mv /boot/grub/menu.lst /boot/grub/menu.lst.corrupted   sudo update-grub

Then carefully compare and configure the 'kopt' and 'groot' sections. Those would have been set up automatically by the installer. Because my suggestion creates a new file without the installer those options need to be set correctly.

  diff /boot/grub/menu.lst /boot/grub/menu.lst.corrupted   sudo editor /boot/grub/menu.lst
  sudo update-grub

After fixing and running update-grub inspect the file. If update-grub runs without hanging then you should be able to purge the package.

If all else fails and a package simply will not pass the prerm or postrm scripts then a reach-into-the-guts of the system approach is to edit the /var/lib/dpkg/info/linux-image-2.6.14-2-k7.prerm and/or /var/lib/dpkg/info/linux-image-2.6.14-2-k7.postrm files and hack them to exit(0); so as to avoid the error. At that point dpkg will succeed without running the script. But it won't have run the script either and so that problem would need to be dealt with but some broken packages have required this.

Bob

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Wed Aug 1 02:27:38 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 18:36:19 EDT

Do you need more help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library