Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I hope I'm not asking a duplicate question, but I've searched through the archives and attempted to do it myself several times.

Several months ago I was attempting to install ATI drivers in an attempt to play Team Fortress. The 'additional drivers' menu didn't work, so installed and reinstalled the drivers manually several times. Eventually I must have messed something up, because I got a black screen of death on boot. Luckily I had made a backup xorg.conf, which I then 'mv'd to xorg.conf and rebooted. However, now I am having all sorts of trouble; due to what I imagine is no hardware acceleration. The entire system is sluggish and unable to run anything that requires sophisticated graphics, include anything with wine. The part that's confusing me is my inability to remove the ati drivers now installed.

when I run

fglrxinfo

I get

X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 153 (GLX)
Minor opcode of failed request: 19 (X_GLXQueryServerString)0
Serial number of failed request: 12
Current serial number in output stream: 12

If I run

sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*

I get

E: Unable to locate package fglrx_8.970-0ubuntu1_amd64.deb
E: Couldn't find any package by regex 'fglrx_8.970-0ubuntu1_amd64.deb'
E: Unable to locate package fglrx-amdcccle_8.970-0ubuntu1_amd64.deb
E: Couldn't find any package by regex 'fglrx-amdcccle_8.970-0ubuntu1_amd64.deb'
E: Unable to locate package fglrx-dev_8.970-0ubuntu1_amd64.deb
E: Couldn't find any package by regex 'fglrx-dev_8.970-0ubuntu1_amd64.deb'

However, if I pop open xorg.conf in a text editor, it says:

Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0

EndSection

Section "Module"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:5:0"
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Note that only this xorg.conf works; the other version I have backed up (presumably from when my system was entirely free of this ati garbage) only gives a black screen on startup.

Here is the output of

 sudo lspci -v | grep -A 12 VGA

01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS880
[Radeon HD 4250] (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7596
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at d0000000 (32-bit, prefetchable) [size=256M]
I/O ports at d000 [size=256]
Memory at feaf0000 (32-bit, non-prefetchable) [size=64K]
Memory at fe900000 (32-bit, non-prefetchable) [size=1M]
Expansion ROM at [disabled]
Capabilities: [50] Power Management version 3
Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
Kernel modules: radeon

Please help me figure out how to remove these ati drivers, I implore you. 000

P.S. I forgot to add that reinstalling xorg etc. as per

sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg

it gives me a black screen of death on boot, presumably because the ati drivers failed to remove. Thanks again.

share|improve this question
    
If I remember correctly, the proprietary driver includes an uninstaller. Install the proprietary driver, use the uninstaller, reboot, reinstall the driver. I think that should work, although I haven't used their proprietary drivers for a couple of years with my HD5850. –  Jo-Erlend Schinstad Apr 22 at 21:25

1 Answer 1

If I run

sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*

I get

E: Unable to locate package fglrx_8.970-0ubuntu1_amd64.deb
E: Couldn't find any package by regex 'fglrx_8.970-0ubuntu1_amd64.deb'
E: Unable to locate package fglrx-amdcccle_8.970-0ubuntu1_amd64.deb
E: Couldn't find any package by regex 'fglrx-amdcccle_8.970-0ubuntu1_amd64.deb'
E: Unable to locate package fglrx-dev_8.970-0ubuntu1_amd64.deb
E: Couldn't find any package by regex 'fglrx-dev_8.970-0ubuntu1_amd64.deb'

There are two issues:

  • The shell globbing is expanding * to match the names of files in the current directory. You need to use \ to escape * or quote it

  • apt-get takes POSIX regular expressions as package names, so you have to do .* (match any charcter zero or more times) instead of * (match preceding character zero or more times).

So it should be:

sudo apt-get remove --purge fglrx 'fglrx_.*' 'fglrx-amdcccle.*' 'fglrx-dev.*'
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.