dpkg-divert mismatch when upgrading or reinstalling nvidia-glx-180

Bug #333550 reported by Anders Kaseorg
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-180 (Ubuntu)
Fix Released
Medium
Alberto Milone

Bug Description

anders@balanced-tree:~$ sudo aptitude reinstall nvidia-glx-180

Preparing to replace nvidia-glx-180 180.29-0ubuntu2 (using .../nvidia-glx-180_180.29-0ubuntu2_amd64.deb) ...
dpkg-divert: mismatch on divert-to
  when removing `diversion of /usr/lib32/libGL.so.1.2 to /usr/lib32/nvidia/libGL.so.1.2.xserver-xorg-core by nvidia-glx-180'
  found `diversion of /usr/lib32/libGL.so.1.2 to /usr/lib32/nvidia/libGL.so.1.2.xlibmesa by nvidia-glx-180'
Unpacking replacement nvidia-glx-180 ...
Processing triggers for man-db ...
Setting up nvidia-glx-180 (180.29-0ubuntu2) ...

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi anders-kaseorg,

Please attach the output of `lspci -vvnn`, and attach your /var/log/Xorg.0.log (and maybe Xorg.0.log.old) file from after reproducing this issue. If you've made any customizations to your /etc/X11/xorg.conf please attach that as well.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

Changed in nvidia-graphics-drivers-180:
status: New → Incomplete
Revision history for this message
Anders Kaseorg (andersk) wrote :

This is a bug in the packaging, so `lspci -vvvn` and Xorg.0.log aren’t relevant here.

Changed in nvidia-graphics-drivers-180:
status: Incomplete → New
Changed in nvidia-graphics-drivers-180:
assignee: nobody → albertomilone
importance: Undecided → Medium
status: New → Confirmed
Changed in nvidia-graphics-drivers-180:
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-180 - 180.37-0ubuntu1

---------------
nvidia-graphics-drivers-180 (180.37-0ubuntu1) jaunty; urgency=low

  * New upstream release (LP: #335879).
    - Fixed a problem that caused signals to be blocked in some applications.
    - Fixed a problem that could cause Xid errors and display corruption in
      certain cases when OpenGL is used to render to redirected windows, for
      example when Java2D is used with the -Dsun.java2d.opengl=true option.
    - glGetStringi(GL_EXTENSIONS, i) no longer returns NULL in OpenGL 3.0
      preview contexts.
    - Fixed a problem that caused the screen to flicker momentarily when
      OpenGL applications exit unexpectedly on GeForce 6 and 7 series GPUs.
    - Fixed an X server crash when an X client attempts to draw trapezoids
      and RenderAccel is disabled.
    - Improved recovery from certain types of errors.
    - VDPAU updates:
      o Fixed corruption on some H.264 clips.
      o Update documentation.
      o Fixed VC-1 decoding on 64-bit platforms.
      o Improved handling of invalid H.264 streams.
      o Fixed a problem that caused surfaces to be marked as visible too
        early when the blit presentation queue is in use.
  * nvidia-glx-VER.preinst:
    - Remove diversion on /usr/lib32/libGL.so.1.2 to
      /usr/lib32/nvidia/libGL.so.1.2.xlibmesa instead of
      /usr/lib32/nvidia/libGL.so.1.2.xserver-xorg-core (LP: #333550).
  * debian.binary/patches/nvidia-rt-compat.patch:
    - Restore compatibility with -rt kernels. Thanks to Alessio Igor Bogani
      for the patch.
  * debian/dkms.conf.in:
    - Make sure that the patch for -rt kernels is applied only to 2.6.28.x
      kernels.

 -- Alberto Milone <email address hidden> Fri, 13 Mar 2009 09:27:20 +0100

Changed in nvidia-graphics-drivers-180:
status: In Progress → Fix Released
Revision history for this message
Filippo Argiolas (fargiolas) wrote :

Currently the upgrade fails with:

Preparing to replace nvidia-glx-180-dev 180.35-0ubuntu1 (using .../nvidia-glx-180-dev_180.37-0ubuntu1_i386.deb) ...
dpkg-divert: rename involves overwriting `/usr/lib/libGL.so' with
  different file `/usr/lib/nvidia/libGL.so.xlibmesa', not allowed
dpkg: error processing /var/cache/apt/archives/nvidia-glx-180-dev_180.37-0ubuntu1_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 2
dpkg: regarding .../nvidia-glx-180_180.37-0ubuntu1_i386.deb containing nvidia-glx-180:
 nvidia-glx-180-dev conflicts with nvidia-glx-180 (>= 180.36)
  nvidia-glx-180 (version 180.37-0ubuntu1) is to be installed.
dpkg: error processing /var/cache/apt/archives/nvidia-glx-180_180.37-0ubuntu1_i386.deb (--unpack):
 conflicting packages - not installing nvidia-glx-180

Revision history for this message
Alberto Milone (albertomilone) wrote :

Filippo: your problem seems more like the one described in bug 335621

Revision history for this message
Filippo Argiolas (fargiolas) wrote :

Thanks Alberto, you're right, I don't know dpkg enought to distinguish the two errors :)

Revision history for this message
graingert (tagrain) wrote :

I still get:

dpkg-divert: mismatch on divert-to
  when removing `diversion of /usr/lib32/libGL.so.1.2 to /usr/lib32/nvidia/libGL.so.1.2.xserver-xorg-core by nvidia-glx-180'
  found `diversion of /usr/lib32/libGL.so.1.2 to /usr/lib32/nvidia/libGL.so.1.2.xlibmesa by nvidia-glx-180'
Unpacking replacement nvidia-glx-180 ...
Processing triggers for man-db ...
Setting up nvidia-glx-180 (180.11-0ubuntu1~intrepid1) ...

Revision history for this message
Maxei (maxei-95) wrote :

I know this bug is related to nvidia driver, but I got a similar problem with xorg-driver-fglrx.

I tried to ireplace the xorg-driver-fglrx for non-free fglrx-driver:

# apt-get install module-assistant fglrx-driver fglrx-kernel-src
...The following extra packages will be installed:
  fglrx-atieventsd fglrx-glx fglrx-glx-ia32 fglrx-source
....
Removing xorg-driver-fglrx ...
dpkg-divert: mismatch on divert-to
  when removing `diversion of /usr/X11R6/lib32/libGL.so.1 to /usr/X11R6/lib32/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx'
  found `diversion of /usr/X11R6/lib32/libGL.so.1 to /usr/X11R6/lib32/fglrx/libGL.so.1.xlibmesa by xorg-driver-fglrx'
dpkg: error processing xorg-driver-fglrx (--remove):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
xorg-driver-fglrx
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm running debian lenny in kernel 2.6.26 amd64. Hope this dpkg bug will be solved somehow. Maybe a patch?

Revision history for this message
Anders Kaseorg (andersk) wrote :

This is not a dpkg bug; it was a bug in the nvidia packaging that has now been fixed. Please report a separate bug against the fglrx packaging.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.