Yarrr! (I'm in GMT+10 at the moment
)
On me 64-bit system, I gots this with 8.8. If ye be runnin' a 32-bit ship, yeh won't see no "lib32" versions of these files, 'cause they'll be stowed in /usr/lib directly:
Code:
/usr/lib32/fglrx/libGL.so.1.2.xlibmesa # This is the original copy of the 32-bit libGL
/usr/lib32/fglrx/libGL.so.1.xlibmesa -> libGL.so.1.2 # This is an original link moved out of the way
/usr/lib32/libGL.so -> /usr/lib32/libGL.so.1 # This is an original link that hasn't been touched
/usr/lib32/libGL.so.1.2 # This is the fglrx 32-bit version of libGL
/usr/lib32/xorg/libGL.so -> /usr/lib32/xorg/libGL.so.1.2 # This is an original link that hasn't been touched
/usr/lib32/xorg/libGL.so.1 -> /usr/lib32/xorg/libGL.so.1.2 # This is a link set up by fglrx
/usr/lib/fglrx/libGL.so.1.2.xlibmesa # This is the original copy of the native libGL
/usr/lib/fglrx/libGL.so.1.xlibmesa -> libGL.so.1.2 # This is an original link moved out of the way
/usr/lib/libGL.so.1.2 # This is the fglrx native version of libGL
/usr/lib/xorg/libGL.so -> /usr/lib64/xorg/libGL.so.1.2 # This is an original link that hasn't been touched
/usr/lib/xorg/libGL.so.1 -> /usr/lib64/xorg/libGL.so.1.2 # This is a link set up by fglrx
and the runarounds (diverts) set up by ye fglrx driver are:
Code:
$ dpkg-divert --list
[...]
diversion of /usr/lib/libGL.so.1 to /usr/lib/fglrx/libGL.so.1.xlibmesa by xorg-driver-fglrx
diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx
diversion of /usr/X11R6/lib/libGL.so.1 to /usr/X11R6/lib/fglrx/libGL.so.1.xlibmesa by xorg-driver-fglrx
diversion of /usr/X11R6/lib/libGL.so.1.2 to /usr/X11R6/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx
diversion of /usr/X11R6/lib32/libGL.so.1 to /usr/X11R6/lib32/fglrx/libGL.so.1.xlibmesa by xorg-driver-fglrx
diversion of /usr/X11R6/lib32/libGL.so.1.2 to /usr/X11R6/lib32/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx
diversion of /usr/lib32/libGL.so.1 to /usr/lib32/fglrx/libGL.so.1.xlibmesa by xorg-driver-fglrx
diversion of /usr/lib32/libGL.so.1.2 to /usr/lib32/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx
Now abandon ship and jump to an escape boat (log out, switch to a virtual terminal with ctrl-alt-f2) and uninstall ye driver packages with dselect.
After the scurvy 8.8 driver be made walk the plank, I got this:
Code:
ls: cannot access /usr/lib/libGL.so.1: No such file or directory
ls: cannot access /usr/lib/fglrx/libGL.so.1.2.xlibmesa: No such file or directory
ls: cannot access /usr/lib32/fglrx/libGL.so.1.2.xlibmesa: No such file or directory
...but avast! some of the runarounds were still clingin' to the hull:
Code:
Removing xorg-driver-fglrx ...
dpkg-divert: rename involves overwriting `/usr/lib32/libGL.so.1' with
different file `/usr/lib32/fglrx/libGL.so.1.xlibmesa', not allowed
dpkg: error processing xorg-driver-fglrx (--remove):
subprocess post-removal script returned error exit status 2
root@raiden:~# cat /var/lib/dpkg/diversions
/bin/sh
/bin/sh.distrib
dash
/usr/share/man/man1/sh.1.gz
/usr/share/man/man1/sh.distrib.1.gz
dash
/usr/lib/libGL.so.1
/usr/lib/fglrx/libGL.so.1.xlibmesa
xorg-driver-fglrx
/usr/X11R6/lib/libGL.so.1
/usr/X11R6/lib/fglrx/libGL.so.1.xlibmesa
xorg-driver-fglrx
/usr/X11R6/lib/libGL.so.1.2
/usr/X11R6/lib/fglrx/libGL.so.1.2.xlibmesa
xorg-driver-fglrx
/usr/lib32/libGL.so.1
/usr/lib32/fglrx/libGL.so.1.xlibmesa
xorg-driver-fglrx
Soo I don't be knowin' if there's any way to force dpkg to clean up after its land-lubbin' self, but arrr, lets just go and hack the useless runarounds off the hull!
Code:
dpkg-divert --list | awk '/fglrx/{print "sudo mv " $5, $3}'
...that'll shout out some orders to restore the links and libraries that fglrx be runnin' around, make sure ye spy them well so yeh don't go and sink yer ship!
Then ye must carve up dpkg so it don't go lookin' for teh runarounds:
Code:
sudo nano /var/lib/dpkg/diversions
...now each runaround be made up of three entries, it be lookin' like:
Code:
<file>
<file>
<package>
The ones ye be lookin' for probably be sunk to the bottom of the file, and each 3-line entry be endin' with "xorg-driver-fglrx".
Ye should end up needin' to carve out 2 or 3 entries on a 32-bit ship, as ye can see I had 4 dastardly entries (though this post may be turned about by some of the boxes above happenin' before or after I got rid of ye olde driver).