[pkg-nvidia-devel] Bug#596843: unable to purge after replacing nvidia-glx with nvidia-glx-legacy

Marvin Renich mrvn at renich.org
Tue Sep 14 13:54:02 UTC 2010


Package: nvidia-glx
Severity: normal

After installing the new nvidia-glx-legacy and removing, but not
purging, nvidia-glx, you can no longer purge nvidia-glx.  dpkg fails in
the postrm attempting to remove diversions that no longer exist:

-----
root at monstro:~# dpkg -P nvidia-glx
(Reading database ... 162441 files and directories currently installed.)
Removing nvidia-glx ...
Purging configuration files for nvidia-glx ...
rm: cannot remove `/usr/lib/libGL.so': No such file or directory
dpkg-divert: mismatch on divert-to
  when removing `diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/libGL.so.1.xlibmesa by nvidia-glx'
  found `diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/diversions/libGL.so.1 by libgl1-nvidia-alternatives'
dpkg: error processing nvidia-glx (--purge):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 nvidia-glx
-----

I worked around it by inserting 'exit 0' in an appropriate place in the
postrm file (obviously not the proper fix!).

...Marvin


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the pkg-nvidia-devel mailing list