package nvidia-glx-173 None failed to install/upgrade: trying to overwrite `/usr/lib/libGL.so.1', which is also in package libgl1-mesa-glx

Bug #257133 reported by gspat
50
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-173 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

still attempting to install some sort of accelerated driver with no luck...

ProblemType: Package
Architecture: i386
Dependencies:

DistroRelease: Ubuntu 8.10
ErrorMessage: trying to overwrite `/usr/lib/libGL.so.1', which is also in package libgl1-mesa-glx
Package: nvidia-glx-173 None
SourcePackage: nvidia-graphics-drivers-173
Title: package nvidia-glx-173 None failed to install/upgrade: trying to overwrite `/usr/lib/libGL.so.1', which is also in package libgl1-mesa-glx
Uname: Linux 2.6.26-5-generic i686

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

Did you install the NVIDIA driver from the NVIDIA installer (the one from NVIDIA's website) too?

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

Could we make the code more robust maybe, so that even if people install with the nvidia installer can upgrade with our version?

Changed in nvidia-graphics-drivers-173:
status: New → Incomplete
Revision history for this message
Alberto Milone (albertomilone) wrote :

Michael: as you can see in this other report: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-177/+bug/250486

reinstalling xserver-xorg-core and libgl1-mesa-glx is necessary.

Revision history for this message
Authority (8-launchpad-weshardin-com) wrote :

I too have this same error, but have never used the NVIDIA installer to install my graphics driver

# apt-get install nvidia-glx-173
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  dkms fakeroot nvidia-173-kernel-source
The following NEW packages will be installed:
  dkms fakeroot nvidia-173-kernel-source nvidia-glx-173
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/15.7MB of archives.
After this operation, 52.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously deselected package dkms.
(Reading database ... 128482 files and directories currently installed.)
Unpacking dkms (from .../dkms_2.0.20.4-0ubuntu2_all.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.9.5ubuntu1_amd64.deb) ...
Selecting previously deselected package nvidia-173-kernel-source.
Unpacking nvidia-173-kernel-source (from .../nvidia-173-kernel-source_173.14.12-1-0ubuntu4_amd64.deb) ...
Selecting previously deselected package nvidia-glx-173.
Unpacking nvidia-glx-173 (from .../nvidia-glx-173_173.14.12-1-0ubuntu4_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/nvidia-glx-173_173.14.12-1-0ubuntu4_amd64.deb (--unpack):
 trying to overwrite `/usr/lib/libGL.so.1', which is also in package libgl1-mesa-glx
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/nvidia-glx-173_173.14.12-1-0ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've tried removing nvidia-glx-173 and reinstalling xserver-xorg-core and libgl1-mesa-glx, but attempting to reinstall nvidia-glx-173 after that leads to the above error.

I'm running Intrepid.

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

Authority:
1) Did you install the NVIDIA driver from the NVIDIA installer (the one from NVIDIA's website) too?
2) can you attach the output of these commands?
ls -l /usr/lib/

Revision history for this message
MD (sessorbsed) wrote : Re: [Bug 257133] Re: package nvidia-glx-173 None failed to install/upgrade: trying to overwrite `/usr/lib/libGL.so.1', which is also in package libgl1-mesa-glx
Revision history for this message
Authority (8-launchpad-weshardin-com) wrote :

I have never used the NVIDIA installer to install my graphics driver

ls output attached

Revision history for this message
Authority (8-launchpad-weshardin-com) wrote :

I think I see where you're going.

root@manhack:~# ls -l /usr/lib/libGL.so.1
ls: cannot access /usr/lib/libGL.so.1: No such file or directory

The file that's going to be "overwritten" doesn't even exist, but's its listed as being a part of another package.

root@manhack:~# dpkg -S /usr/lib/libGL.so.1
libgl1-mesa-glx: /usr/lib/libGL.so.1

root@manhack:~# aptitude reinstall libgl1-mesa-glx

root@manhack:~# ls -l /usr/lib/libGL.so.1
ls: cannot access /usr/lib/libGL.so.1: No such file or directory

The dpkg file database doesn't seem to match the actual file system.

I did an 'aptitude remove libgl1-mesa-glx' and aptitude came up with this plan of action:

The following actions will resolve these dependencies:

Remove the following packages:
kubuntu-desktop
libgl1-mesa-dri

Install the following packages:
libgl1-mesa-swx11 [7.2-1ubuntu1 (intrepid)]
libosmesa6 [7.2-1ubuntu1 (intrepid)]

Leave the following dependencies unresolved:
xserver-xorg recommends libgl1-mesa-dri
xserver-xorg-core recommends libgl1-mesa-dri (>= 7.1~rc1)
xserver-xephyr recommends libgl1-mesa-dri (>= 7.1~rc1)

So now I have this:

root@manhack:~# dpkg -S /usr/lib/libGL.so.1
libgl1-mesa-swx11: /usr/lib/libGL.so.1
root@manhack:~# ls -l /usr/lib/libGL.so.1
lrwxrwxrwx 1 root root 19 2008-10-16 14:41 /usr/lib/libGL.so.1 -> libGL.so.1.5.070200

But 'aptitude install nvidia-glx-173' puts me right back to the same spot:

The following NEW packages will be installed:
  dkms{a} fakeroot{a} libgl1-mesa-glx{a} nvidia-173-kernel-source{a} nvidia-glx-173
The following packages will be REMOVED:
  libgl1-mesa-swx11{a}
<snip>
Unpacking nvidia-glx-173 (from .../nvidia-glx-173_173.14.12-1-0ubuntu4_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/nvidia-glx-173_173.14.12-1-0ubuntu4_amd64.deb (--unpack):
 trying to overwrite `/usr/lib/libGL.so.1', which is also in package libgl1-mesa-glx

root@manhack:~# ls -l /usr/lib/libGL.so.1
ls: cannot access /usr/lib/libGL.so.1: No such file or directory
root@manhack:~# dpkg -S /usr/lib/libGL.so.1
libgl1-mesa-glx: /usr/lib/libGL.so.1

Maybe this makes sense to someone:
root@manhack:~# dpkg-divert --list | grep nvidia
diversion of /usr/lib/libGL.so.1.2 to /usr/lib/nvidia/libGL.so.1.2.xlibmesa by nvidia-glx-173
diversion of /usr/lib/xorg/modules/extensions/libglx.so to /usr/lib/nvidia/libglx.so.xserver-xorg-core by nvidia-glx-173
diversion of /usr/lib32/libGL.so to /usr/lib32/nvidia/libGL.so.xlibmesa by nvidia-glx-173
diversion of /usr/lib32/libGL.so.1 to /usr/lib32/nvidia/libGL.so.1.xlibmesa by nvidia-glx-173
diversion of /usr/lib32/libGL.so.1.2 to /usr/lib32/nvidia/libGL.so.1.2.xlibmesa by nvidia-glx-173
diversion of /usr/lib/xorg/modules/extensions/libGLcore.so to /usr/lib/nvidia/libGLcore.so.xlibmesa by nvidia-glx-173

Revision history for this message
Authority (8-launchpad-weshardin-com) wrote :

I was able to successfully install nvidia-glx-173 by following these steps:

dpkg-divert --remove /usr/lib/libGL.so.1.2
aptitude remove libgl1-mesa-glx
aptitude install libgl1-mesa-glx
aptitude install nvidia-glx-173

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

Authority:
this makes little sense to me as the nvidia packages deal with diversions of /usr/lib/libGL.so.1 and /usr/lib/libGL.so.1.2.

From what version of Ubuntu did you do an upgrade to Intrepid?

Revision history for this message
aldebx (aldebx) wrote :

I alo experienced this problem in Intrepid 8.10 (upgraded from a Hardy 8.04 version with envyng nvidia packages).

Reinstalling libgl1-mesa-glx before installing nvidia-glx-173 solved the issue.
No need to divert.

Bryce Harrington (bryce)
Changed in nvidia-graphics-drivers-173 (Ubuntu):
status: Incomplete → Confirmed
Bryce Harrington (bryce)
tags: added: intrepid
Bryce Harrington (bryce)
Changed in nvidia-graphics-drivers-173 (Ubuntu):
importance: Undecided → Medium
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.