PDA

View Full Version : [ubuntu] sh: Can't open ./fglrx-uninstall.sh



OdinOrion
June 3rd, 2010, 05:26 PM
Trying to update ATI drivers to Catalyst 10.5

The very first step to uninstall the previous driver version does not work.

andrew@andrew-desktop:~$ cd /usr/share/ati/
andrew@andrew-desktop:/usr/share/ati$ sudo sh ./fglrx-uninstall.sh
[sudo] password for andrew:
sh: Can't open ./fglrx-uninstall.sh
andrew@andrew-desktop:/usr/share/ati$

Help

Temüjin
June 3rd, 2010, 11:27 PM
sh or ./ (but not both ;) )

cd /usr/share/ati/
sudo sh fglrx-uninstall.sh
OR

sudo ./fglrx-uninstall.sh

OdinOrion
June 5th, 2010, 03:12 PM
DOH!

Ok, I will try again.

hayhursm
August 17th, 2010, 02:38 PM
DOH!

Ok, I will try again.

Were you able to find this? I am trying to uninstall Catalyst10.6 so I can install Catalyst10.7 but I am unable to find this script. I am using Ubuntu 10.04 x64 and I installed Catalyst10.6 using the package file on AMD’s website.

I have tried both but terminal returns: “command not found”

Code:
cd /usr/share/ati/
sudo sh fglrx-uninstall.sh


OR

Code:
sudo ./fglrx-uninstall.sh

hayhursm
August 18th, 2010, 04:59 PM
were you able to find this? I am trying to uninstall catalyst10.6 so i can install catalyst10.7 but i am unable to find this script. I am using ubuntu 10.04 x64 and i installed catalyst10.6 using the package file on amd’s website.

i have tried both but terminal returns: “command not found”

code:
cd /usr/share/ati/
sudo sh fglrx-uninstall.sh


or

code:
sudo ./fglrx-uninstall.sh

bump

I8NY
August 19th, 2010, 05:31 AM
i'm no expert but make sure the file has permission to execute (option under the file properties). That helped with other .sh apps i have installed/uninstalled. Tell me if the new driver fixes the 3D problem that made games stop working.

tjones00
August 19th, 2010, 01:14 PM
A reminder command line for enabling execute permission is.

sudo chmod +x some.file

scripts can then be executed via

sudo ./some.file


To search for a file via command line

sudo find / -name some.file

This will search the entire system for a file named some.file in this case the command would be.

sudo find / -name fglrx-uninstall.sh

hayhursm
August 19th, 2010, 02:03 PM
A reminder command line for enabling execute permission is.

sudo chmod +x some.file

scripts can then be executed via

sudo ./some.file


To search for a file via command line

sudo find / -name some.file

This will search the entire system for a file named some.file in this case the command would be.

sudo find / -name fglrx-uninstall.sh


Thank you all for the reply! Unfortunately, I tried the command "sudo find / -name fglrx-uninstall.sh" and it returned nothing, I don’t know why this script appears to be missing. I’m clueless right now as I followed the ATI Wiki Catalyst 10.6 tutorial completely. The “aticonfig” command works and I didn’t receive any errors during the Catalyst 10.6 installation so I’m sure the installation was a success. I don’t know if this helps but “dpkg –l | grep fglrx” returns this:

laptop:/lib/fglrx$ dpkg -l | grep fglrx

ii fglrx 2:8.741-0ubuntu1 Video driver for the ATI graphics accelerato

ii fglrx-amdcccle 2:8.741-0ubuntu1 Catalyst Control Center for the ATI graphics

ii fglrx-dev 2:8.741-0ubuntu1 Video driver for the ATI graphics accelerato

ii fglrx-modaliases 2:8.741-0ubuntu1 Identifiers supported by the ATI graphics dr

Any ideas?

I8NY
August 19th, 2010, 07:41 PM
try just searching for just fglrx and see if it finds a uninstall file in the results. Also try to see if fglrx is in the package manager, idk if *.sh apps will show in there but it is worth a shot. One more thing, did you install the ati driver yourself or through the proprietary driver app in ubuntu?

hayhursm
August 20th, 2010, 01:58 AM
try just searching for just fglrx and see if it finds a uninstall file in the results. Also try to see if fglrx is in the package manager, idk if *.sh apps will show in there but it is worth a shot. One more thing, did you install the ati driver yourself or through the proprietary driver app in ubuntu?

I just searched for fglrx and this is what I got:

Desktop$ sudo find / -name fglrx
/sys/module/fglrx
/var/lib/dkms/fglrx
/usr/share/fglrx
/usr/share/doc/fglrx
/usr/share/lintian/overrides/fglrx
/usr/lib32/fglrx
/usr/lib/fglrx
/lib/fglrx

fglrx is in the Synaptic Package Manager and it indicates that it is installed (among other files as well) but I didn't see any *.sh files. I did not install the proprietary driver app in Ubuntu; I downloaded the package directly from AMD ATI's website and installed it using their Wiki tutorial.

Wiki tutorial: http://wiki.cchtml.com/index.php/Ubuntu_Lucid_Installation_Guide

I started at the "Installing the drivers manually" section

Just curious are you using ATI's driver? If so, are you able to find the "fglrx-uninstall.sh" on your system? Also, could I just do a "dpkg --purge fglrx-*" or would that not be sufficient?

I8NY
August 20th, 2010, 06:30 AM
funny thing is i made a help doc on how to remove a ati driver from the terminal and forgot i had it.(until now) X-( The command you guessed it
sudo apt-get --purge ati-driver-installer-9-7-x86_64
sudo apt-get --purge ati-driver-installer-9-7-x86 1st line is 64bit and 2nd 32bit. You might need to add *.run to the end, i forgot if it is needed. If this fails you can try removing the fglrx packages from the package manager.(idk the exact package so make a good guess, fglrx?)

The second part, i have the ati driver, and got it through ubuntu. I did search and did not find it, i think that uninstall file might be for other linux OS.

hayhursm
August 20th, 2010, 04:12 PM
funny thing is i made a help doc on how to remove a ati driver from the terminal and forgot i had it.(until now) X-( The command you guessed it
sudo apt-get --purge ati-driver-installer-9-7-x86_64
sudo apt-get --purge ati-driver-installer-9-7-x86 1st line is 64bit and 2nd 32bit. You might need to add *.run to the end, i forgot if it is needed. If this fails you can try removing the fglrx packages from the package manager.(idk the exact package so make a good guess, fglrx?)

The second part, i have the ati driver, and got it through ubuntu. I did search and did not find it, i think that uninstall file might be for other linux OS.


Thank you for the info but it did not work. I think you are on track with the removal of the packages and here is why. Here is the main installation portion of ATI’s Wiki (for version 10.6 of course):

[edit (http://wiki.cchtml.com/index.php?title=Ubuntu_Lucid_Installation_Guide&action=edit&section=9)] Download the latest Catalyst package.
This package contains both the 32-bit and 64-bit driver.
$ cd ~/; mkdir catalyst10.6; cd catalyst10.6/
$ wget http://www2.ati.com/drivers/linux/ati-driver-installer-10-6-x86.x86_64.run
[edit (http://wiki.cchtml.com/index.php?title=Ubuntu_Lucid_Installation_Guide&action=edit&section=10)] Create .deb packages.
$ sh ati-driver-installer-10-6-x86.x86_64.run --buildpkg Ubuntu/lucid
[edit (http://wiki.cchtml.com/index.php?title=Ubuntu_Lucid_Installation_Guide&action=edit&section=11)] Install .debs.
$ sudo dpkg -i fglrx*.deb


Judging from that last step used to install everything would it be safe to say I could use the dpkg --purge fglrx*"? Like you said, the uninstall file is probably used in other Linux OS’ but ATI forgot to indicate that in the tutorial. I have seen more than one Wiki that was erroneous lol.

Temüjin
August 20th, 2010, 05:47 PM
As you've figured out, the uninstall script wasn't created because you installed by building packages. So the way to remove the driver is to uninstall the packages. I've edited the wiki to make this more clear and hopefully, avoid future confusion.
BTW, that wiki is not affiliated with ATI.

hayhursm
August 20th, 2010, 07:22 PM
As you've figured out, the uninstall script wasn't created because you installed by building packages. So the way to remove the driver is to uninstall the packages. I've edited the wiki to make this more clear and hopefully, avoid future confusion.
BTW, that wiki is not affiliated with ATI.

Ok, thank you very much. I guess a little brainstorming and discussion on the forums always helps the noobs. The change you put in the Wiki really clears things up so it will definitely help me and I'm sure others as well.

Also, can you add "thanks to hayhursm" after your Wiki description change? It would be nice to show my wife that all the time spent trying to figure this one out wasn't for nothing. :D

I8NY
August 20th, 2010, 08:09 PM
when you upgrade your driver please tell me if it fixes some of the 3D problems games/apps have been having. i hate upgrading drivers if doesn't fix anything.

hayhursm
August 23rd, 2010, 02:29 PM
when you upgrade your driver please tell me if it fixes some of the 3D problems games/apps have been having. i hate upgrading drivers if doesn't fix anything.


No problem, but I'm not aware of any 3D problems, can you enlighten me please?

I8NY
August 23rd, 2010, 10:02 PM
Well in the ATI driver update in version 10.04 from 9.10, was not a good driver because it changed some of the basic functions for 3D games. Even a few windows PC had problems because the games weren't compatible with the ATI driver changes. So now i can only play 1/2 of my 3D games i have, every thing else does not work, and it worked before the update. (broken games, SpringRTS, Mupen64Plus, World of Goo)

I did try to do a manual ATI driver update and failed because it couldn't remove the current driver. Might try later update or wait for 10.10.

hayhursm
August 25th, 2010, 01:36 PM
Well in the ATI driver update in version 10.04 from 9.10, was not a good driver because it changed some of the basic functions for 3D games. Even a few windows PC had problems because the games weren't compatible with the ATI driver changes. So now i can only play 1/2 of my 3D games i have, every thing else does not work, and it worked before the update. (broken games, SpringRTS, Mupen64Plus, World of Goo)

I did try to do a manual ATI driver update and failed because it couldn't remove the current driver. Might try later update or wait for 10.10.

I’m still trying to figure out why the Wiki instructs us to use: “sudo apt-get remove --purge fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx” to remove everything instead of: “dpkg –purge fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx” I would think that I would use the “dpkg” command to remove everything since it was installed using “dpkg”? What do you think?

Nebukadnezar II.
August 25th, 2010, 04:06 PM
Well, if you installed your fglrx via apt-get(or whatever frontend for it) then you could use the "apt-get"-command instead of dpgk to remove it. But anyway, what apt-get does is mainly calling dpgk in pretty much the same way as your "dpkg"-command is.
That's all, as far as I know.

hayhursm
August 26th, 2010, 04:01 PM
Well, if you installed your fglrx via apt-get(or whatever frontend for it) then you could use the "apt-get"-command instead of dpgk to remove it. But anyway, what apt-get does is mainly calling dpgk in pretty much the same way as your "dpkg"-command is.
That's all, as far as I know.

It was installed using "dpkg" so I will use that to uninstall everything, even though the ATI Wiki says to use "sudo apt-get remove --purge".If I use the --purge option it should remove everything correct? I still struggle with understanding the difference between "apt, aptitude & dpkg". Also "git" but I think that's in a different category.

Temüjin
August 26th, 2010, 08:06 PM
dpkg - the main package manager
apt(-get) - manages packages and repositories. Uses dpkg for a lot of its package operations
aptitude - fancy GUI front-end for apt, "smarter" than apt with dependency issues

In the wiki, I chose to use apt-get for the removal because it better handles wildcards(*) in the package names.

hayhursm
August 27th, 2010, 02:45 AM
dpkg - the main package manager
apt(-get) - manages packages and repositories. Uses dpkg for a lot of its package operations
aptitude - fancy GUI front-end for apt, "smarter" than apt with dependency issues

In the wiki, I chose to use apt-get for the removal because it better handles wildcards(*) in the package names.

Thank you.