when removing nvidia-glx-177 /usr/lib/libGL.so is gone

Bug #309116 reported by Michael Vogt
24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-173 (Ubuntu)
Fix Released
Medium
Alberto Milone
nvidia-graphics-drivers-177 (Ubuntu)
Won't Fix
Medium
Alberto Milone
nvidia-graphics-drivers-180 (Ubuntu)
Fix Released
Medium
Alberto Milone
nvidia-graphics-drivers-96 (Ubuntu)
Fix Released
Medium
Alberto Milone

Bug Description

When libgl1-mesa-glx and libgl1-mesa-dev are installed and then nvidia-glx-177 gets installed and removed it takes away the /usr/lib/libGL.so symlink. Example (system has libgl1-mesa-glx and libgl1-mesa-dev and nvidia-glx-177):

root@top:/# ls -l /usr/lib/libGL.so /usr/lib/libGL.so.1
lrwxrwxrwx 1 root root 10 Dec 17 19:52 /usr/lib/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 15 Dec 17 19:53 /usr/lib/libGL.so.1 -> libGL.so.177.82
root@top:/# apt-get remove nvidia-glx-177
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  nvidia-177-kernel-source linux-headers-2.6.28-2 linux-image dkms
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  nvidia-glx-177
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
After this operation, 47.3MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 31790 files and directories currently installed.)
Removing nvidia-glx-177 ...
dpkg-divert: error checking `/usr/lib/xorg/modules/extensions/libGLcore.so': No such file or directory
dpkg: error processing nvidia-glx-177 (--remove):
 subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
 nvidia-glx-177
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@top:/# apt-get remove nvidia-glx-177
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  nvidia-177-kernel-source linux-headers-2.6.28-2 linux-image dkms
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  nvidia-glx-177
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 47.3MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 31735 files and directories currently installed.)
Removing nvidia-glx-177 ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@top:/# ls -l /usr/lib/libGL.so /usr/lib/libGL.so.1
ls: cannot access /usr/lib/libGL.so: No such file or directory
lrwxrwxrwx 1 root root 12 Dec 17 19:52 /usr/lib/libGL.so.1 -> libGL.so.1.2

I'm not sure if that is releated to the error on the first removal or not, this was done in a pbuilder chroot.

Revision history for this message
Michael Vogt (mvo) wrote :

From debian/nvidia-glx-177.postrm.in:
        # remove file created by init script
        rm /usr/lib/libGL.so 2> /dev/null || true

but:
# dpkg -S /usr/lib/libGL.so
libgl1-mesa-dev: /usr/lib/libGL.so

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

The removal of that file is obviously a mistake (I think it's a residue of a previous merge) since there's no reason to remove something that a package didn't install.

Thanks for reporting. I'll fix it.

Changed in nvidia-graphics-drivers-177:
assignee: nobody → albertomilone
importance: Undecided → Medium
status: New → In Progress
Changed in nvidia-graphics-drivers-173:
assignee: nobody → albertomilone
importance: Undecided → Medium
status: New → In Progress
Changed in nvidia-graphics-drivers-180:
assignee: nobody → albertomilone
importance: Undecided → Medium
status: New → In Progress
Changed in nvidia-graphics-drivers-96:
assignee: nobody → albertomilone
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Alberto Milone (albertomilone) wrote :

I would also like to know why this error showed up only once:
dpkg-divert: error checking `/usr/lib/xorg/modules/extensions/libGLcore.so': No such file or directory

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-96 - 96.43.10-0ubuntu1

---------------
nvidia-graphics-drivers-96 (96.43.10-0ubuntu1) jaunty; urgency=low

  * New upstream release. Supports the new X.org ABI (LP: #308410)
    * Fixed a text corruption problem on X.org server 1.5 and up.
    * Fixed a problem that caused nvidia-installer to remove Compiz's libglx.so.
    * Added "nvidia-uninstall" as a shortcut for "nvidia-installer --uninstall".
    * Added the ability to run distribution provided pre- and post- installation
      hooks to 'nvidia-installer'; please see the 'nvidia-installer' manual page
      for details.
    * Fixed an X server crash with multiple server generations when GLX is disabled.
    * Fixed a bug that caused corrupt window decorations in Compiz.
    * Worked around an X server bug that causes text to disappear when a composite
      manager is enabled on X.org 1.5 and newer.
    * Fixed a problem that prevented X from starting on 2.6.29-rc1 with an error
      like the following:
      X:6500 map pfn expected mapping type write-combining for d0000000-d0500000,
      got uncached-minus
  * debian/nvidia-glx-96.preinst:
    - Correct typo in the removal of diversions of /usr/lib/xorg/modules/extensions/libglx.so
  * debian/nvidia-glx-96.postrm.in
    - Do not remove libGL.so (LP: #309116)
  * debian/nvidia-glx-96-dev.preinst.in:
    - Add diversion on /usr/lib/libGL.so since (the postrm tries to remove it already)
  * debian/scriptremove.sh:
    - Remove from source

 -- Alberto Milone (tseliot) <email address hidden> Thu, 29 Jan 2009 14:46:33 +0100

Changed in nvidia-graphics-drivers-96:
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-173 - 173.14.16-0ubuntu1

---------------
nvidia-graphics-drivers-173 (173.14.16-0ubuntu1) jaunty; urgency=low

  * New upstream release. Supports the new X.org ABI (LP: #308410)
    * Fixed a problem that caused nvidia-installer to remove Compiz's libglx.so.
    * Added "nvidia-uninstall" as a shortcut for "nvidia-installer --uninstall".
    * Fixed a bug that caused corrupt window decorations in Compiz (LP: #186382).
    * Fixed corruption in KDE 4 when OpenOffice is launched.
    * Fixed a problem that prevented X from starting on 2.6.29-rc1 with an error
      like the following:
      X:6500 map pfn expected mapping type write-combining for d0000000-d0500000,
      got uncached-minus
    * Added the ability to run distribution provided pre- and post- installation
      hooks to 'nvidia-installer'; please see the 'nvidia-installer' manual page for details.
  * Drop debian.binary/patches/NVIDIA_173.14.12_2.6.27.patch
  * debian/nvidia-glx-173.preinst:
    - Correct typo in the removal of diversions of /usr/lib/xorg/modules/extensions/libglx.so
  * debian/nvidia-glx-173.postrm.in
    - Do not remove libGL.so (LP: #309116)
  * debian/nvidia-glx-173-dev.preinst.in:
    - Add diversion on /usr/lib/libGL.so since (the postrm tries to remove it already)
  * debian/nvidia-glx-173-dev.postrm:
    - replace legacy-173xx with 173

 -- Alberto Milone (tseliot) <email address hidden> Thu, 29 Jan 2009 13:23:57 +0100

Changed in nvidia-graphics-drivers-173:
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  * New upstream release. Supports the new X.org ABI (LP: #308410, #322416)
    * Added support for the following GPUs:
       o GeForce GTX 295
       o GeForce GTX 285
       o GeForce 9300 GE
       o Quadro NVS 420
    * Fixed a bug that caused VDPAU to display a green screen when using the
      overlay-based presentation queue with interlaced modes.
    * Fixed a bug that prevented VDPAU from working correctly after X server
      restarts on some GPUs.
    * Improved VDPAU's handling of mode switches; eliminated a crash in its
      mode switch recovery code and a hang in the blit-based presentation queue.
    * Fixed a bug that caused VDPAU to crash when using DisplayPort devices.
    * Fixed a potential hang in VDPAU when using the blit-based presentation
      queue on systems with multiple GPUs not in SLI mode.
    * Implemented missing error checking of layer data in VDPAU's VdpVideoMixerRender
      function.
    * Improved VDPAU's handling of setups with multiple GPUs, if a subset of the
      GPUs cannot be supported due to resource limitations.
    * Improved GPU video memory management coordination between the NVIDIA X driver
      and VDPAU.
    * Fix potential hang in VDPAU when the overlay is already in use.
    * Improved workstation OpenGL performance.
    * Fixed an X driver acceleration bug that resulted in Xid errors on GeForce 6 and
      7 series GPUs.
    * Updated the X driver to consider GPUs it does not recognize supported, allowing
      it to drive some GPUs it previously ignored.
    * Added the ability to run distribution provided pre- and post- installation hooks
      to 'nvidia-installer'; please see the 'nvidia-installer' manual page for details.
    * Updated the X driver's metamode parser to allow mode names with periods (i.e. '.'s).
    * Fixed a problem with hotkey switching on some recent mobile GPUs.
    * worked around a power management regression in and improved compatibility with
      recent Linux 2.6 kernels.
    * Added support for OpenGL 3.0 for GeForce 8 series and newer GPUs.
  * debian/nvidia-glx-180.preinst:
    - Correct typo in the removal of diversions of /usr/lib/xorg/modules/extensions/libglx.so
  * debian/nvidia-glx-180.postrm.in
    - Do not remove libGL.so (LP: #309116)
  * debian/nvidia-glx-180-dev.preinst.in:
    - Add diversion on /usr/lib/libGL.so since (the postrm tries to remove it already)
  * debian/scriptremove.sh:
    - Remove from source.

 -- Alberto Milone (tseliot) <email address hidden> Thu, 29 Jan 2009 12:36:09 +0100

Changed in nvidia-graphics-drivers-180:
status: In Progress → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

In jaunty we've dropped -177 for -180

Changed in nvidia-graphics-drivers-177:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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