#873603 glx-diversions: Install and uninstall nvidia-driver fails with ERROR: The conflicting library '/usr/lib/i386-linux-gnu/libGL.so.1.2' is known to dpkg.

#873603#5
Date:
2017-08-29 12:46:03 UTC
From:
To:
Dear Maintainer,

I changed graphics card from AMD to Nvidia and errors with installation of nvidia-grive. Graphics card is 01:00.0 VGA compatible controller: NVIDIA Corporation GT215
[GeForce GT 240] (rev a2).

Error Messages:
Errors were encountered while processing:
		* libgl1-nvidia-glx:amd64
		* xserver-xorg-video-nvidia
		* nvidia-driver
Setting up libgl1-nvidia-glx:amd64 (340.102-1) ...
ERROR: The conflicting library '/usr/lib/i386-linux-gnu/libGL.so.1.2' is known to dpkg.
diversion by glx-diversions from: /usr/lib/i386-linux-gnu/libGL.so.1.2
diversion by glx-diversions to: /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1.2
dpkg: error processing package libgl1-nvidia-glx:amd64 (--configure):

The problem was fixed by after running the following commands removing ‘/usr/lib/i386-linux-gnu/libGL.so.1.2’
	ls -al /usr/lib/i386-linux-gnu/libGL.so.1.2
	lrwxrwxrwx 1 root root 48 Mar 21  2016 /usr/lib/i386-linux-gnu/libGL.so.1.2 -> /usr/lib/i386-linux-gnu/fglrx/fglrx-libGL.so.1.2
	root@server:~# rm -v /usr/lib/i386-linux-gnu/libGL.so.1.2
	removed ‘/usr/lib/i386-linux-gnu/libGL.so.1.2’
	sudo apt-get update

I may have had old nvidia drivers or the nouveau installed at one time that caused this problem, however I cannot remember with any certainty.

#873603#10
Date:
2017-11-17 04:15:35 UTC
From:
To:
Control: tag -1 wontfix

That is something from the fglrx driver installation, but looks like
that was not done with the fglrx-driver package we had in jessie - that
should never create such a link.

So glx-diversions failed on some unknown (non-standard) bits it
encountered instead of messing around and silently breaking stuff ...

(For NVIDIA we have nvidia-installer-cleanup to clean up the mess
created by using the .run installer on a Debian system, but there is no
equivalent for AMD/fglrx. And with fglrx being discontinued ... that
will never happen.)

Andreas