On Wed, Aug 02, 2006 at 07:22:39AM +0300, Jabka Atu wrote: > Howdy,.. > i have found a bug when using package nvidia-glx-legacy and how to fix it . > [...] > > the bug happens only when you upgrade from nvidia-glx-legacy to > nvidia-glx (7174 to 8xxx version). > > description: > > the bug will hapen if all condition are true: > person installed nvidia-glx-legacy and then removed it without purge. > person tried to install nvidia-glx by apt-get install. > happen both in testing and unstable. > > when you try to install nvidia-glx you will get the next error : > > debian:/var/lib/dpkg# apt-get install nvidia-glx > Reading package lists... Done > Building dependency tree... Done > Suggested packages: > nvidia-settings > The following NEW packages will be installed > nvidia-glx > 0 upgraded, 1 newly installed, 0 to remove and 79 not upgraded. > Need to get 0B/3291kB of archives. > After unpacking 10.9MB of additional disk space will be used. > (Reading database ... 131868 files and directories currently installed.) > Unpacking nvidia-glx (from .../nvidia-glx_1.0.8762-2_i386.deb) ... > dpkg-divert: `diversion of /usr/lib/xorg/modules/extensions/libGLcore.a to > /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx' clashes with `diversion > of /usr/lib/xorg/modules/extensions/libGLcore.a to > /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx-legacy' > dpkg: error processing > /var/cache/apt/archives/nvidia-glx_1.0.8762-2_i386.deb (--unpack): > subprocess pre-installation script returned error exit status 2 > Errors were encountered while processing: > /var/cache/apt/archives/nvidia-glx_1.0.8762-2_i386.deb > E: Sub-process /usr/bin/dpkg returned an error code (1) > [...] > > to fix it you should : > list divertions. > > debian:/home/mha13# dpkg-divert --list nvidia-glx-legacy > diversion of /usr/lib/xorg/modules/extensions/libGLcore.a to > /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx-legacy > diversion of /usr/lib/xorg/modules/extensions/libglx.a to > /usr/lib/nvidia/libglx.a.xlibmesa by nvidia-glx-legacy > diversion of /usr/lib/xorg/modules/extensions/libglx.so to > /usr/lib/nvidia/libglx.so.xlibmesa by nvidia-glx-legacy > > then remove the diverstions. > > dpkg-divert --rename --remove /usr/lib/xorg/modules/extensions/libglx.a > dpkg-divert --rename --remove /usr/lib/xorg/modules/extensions/libglx.so > dpkg-divert --rename --remove /usr/lib/xorg/modules/extensions/libGLcore.a > > > and now you can install freely the nvidia-glx. > > > the issue with the bug that apt(or nvidia-glx) create divertions even if > it is not installed (exit with error) >
I saw this too about a month ago. I chalked it up to me interrupting some process (I don't remember what happened). Nice to know it wasn't my fault... :) I would file a bug against both packages and let the maintainers figure out who's responsible. (probably the same maintainers anyway). post the bug report number and I'll put in my .02 A
signature.asc
Description: Digital signature