ATI driver re-install fail
Solution 1:
For 64bit systems before doing anything.
sudo apt-get install ia32-libs
Run each of these, one at the time, if getting any faults ignore it.
sudo sh /usr/share/ati/fglrx-uninstall.sh
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
Remove your xorg.conf file
sudo rm /etc/X11/xorg.conf
Re-install xorg
sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 xserver-xorg-core
Configure xorg
sudo dpkg-reconfigure xserver-xorg
Reboot:
sudo reboot
After the reboot all the fglrx packages will be gone, you will be using default ones.
Download the newest ATI driver (current version is 12.1)
wget http://www2.ati.com/drivers/linux/amd-driver-installer-12-1-x86.x86_64.run
Once downloaded go to the file location and set it to run as executable
cd /path_of_the_file
chmod 755 amd-driver-installer-12-1-x86.x86_64.run
Use these steps to install
sh ./amd-driver-installer-12-1-x86.x86_64.run --buildpkg Ubuntu/oneiric
sudo dpkg -i fglrx*.deb
Once the driver is installed you need to start up a new xorg.conf file with this command
sudo aticonfig --initial -f
Reboot
sudo reboot
Solution 2:
The problem is due to a previous manual installation of the driver, that is without building a deb package, and an incomplete uninstall.
No fear!
Since the package building complains that
dpkg-shlibdeps: error: no dependency information found for /usr/share/ati/lib64/libQtCore.so.4 (used by debian/fglrx/usr/lib/fglrx/bin/amdnotifyui).
or, in other cases,
dpkg-shlibdeps: error: no dependency information found for /lib64/libQtCore.so.4 (used by debian/fglrx/usr/lib/fglrx/bin/amdnotifyui).
you can find alternatives to the library in the system, e.g.
locate libQtCore.so.4
locate libQtGui.so.4
and, if alternatives exist, backup the offending library (libraries)
sudo mv /lib64/libQtCore.so.4 /lib64/libQtCore.so.4.orig
sudo mv /lib64/libQtGui.so.4 /lib64/libQtGui.so.4.orig
Finally, create a symlink to the alternatives (in my case: sudo ln -s /usr/lib/x86_64-linux-gnu/libQtCore.so.4 sudo ln -s /usr/lib/x86_64-linux-gnu/libQtGui.so.4 )
Now package building should complete without throwing errors and so its installation.
It has also been reported that if you're trying a simple reinstall of the proprietary driver (e.g. after a kernel upgrade) it can be enough to move /usr/share/ati/lib64 to another backup location and then build the package in the documented way.