- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] Re: Can't uninstall Debian nvidia drivers: package in very bad inconsistent state
- From: Mary Gardiner <mary-slug@xxxxxxxxxxxx>
- Date: Thu, 26 Feb 2004 11:08:08 +1100
- User-agent: Mutt/1.5.5.1+cvs20040105i
On Thu, Feb 26, 2004, Mary Gardiner wrote:
> I can change update-modules to update-modules.modutils as per that
> bug... but then the *post-install* scripts won't run. More changes I
> guess.
For the archives, the complete sequence of steps was:
1. Edit /var/lib/dpkg/info/nvidia-kernel-2.4.24-1-686.postrm so that
every occurence of "update-modules" reads "update-modules.modutils"
2. dpkg -i [original deb]
Although the new deb would probably work just as well. I can't do a
straight purge or remove because of the "very bad inconsistent state"
thing.
3. dpkg dies during the reinstall after successfully removing the
package.
4. Edit /var/lib/dpkg/info/nvidia-kernel-2.4.24-1-686.postinst so that
every occurence of "update-modules" reads "update-modules.modutils"
5. Run dpkg --configure -a to finish the reinstallation
6. Repeat step 1 because all changes got overwritten after successfully
reinstallation
7. Remove/purge package DIE DIE DIE.
It's possible that "reboot into 2.4 kernel, reinstall package" also
works.
-Mary