I am running OSX 10.6.8, the drive won’t boot up, endless spinning wheel. I verified disk permission, repaired disk, I tried Disk Warrior and Safe Mode … nothing works.
Has anyone found a single user fix for this yet? The command above and all of the others that I have seen suggested all come up with the “no such file or directory” error. I cant boot in safe mode and my only option is single user…I installed Avast on my girlfriends macbook to try and solve problems but it just made them worse. Any suggestions would be helpful.
The no file error is just because there is a space between ‘Application’ and ‘Support’
Here, try this…
sudo sh /Library/Application\ Support/Avast/components/uninstall/com.avast.uninstall.app/Contents/MacOS/uninstall.sh
(this command is for Avast! 9, prior versions might have the uninstall script elsewhere in /Library/Application Support/Avast/, just browse that folder and look for something that says uninstall and then drill in the uninstall app to find the script).
Okay, so I have this a shot and got a different result than usual. I cant remember exactly because I am at work right now and dont have the machine with me but I got an error message that said “avast shield not found in this location” or something to that effect. Am I getting closer to a solution? I am a novice with all of this stuff, but is there a simple way I can browse the application and see where the uninstall file is located through the terminal? I feel like the issue is that I am not putting in the exact location so when I run the command it cant find the uninstall…does any of this make sense??
shrug
If it gave that message it’s because it run script script but couldn’t find that specific component, but I’m sure that wasn’t the only thing it said?
I’m not even sure uninstalling avast will fix your problem.
As I said that command is for version 9, what version of Avast is installed? I don’t have any other version of Avast to indicate you the path in case it’s different.
If the uninstaller worked, trying the command I gave you again will give you an error like “No such file or directory”.
I just resolved the problem by simply deleting this file:
/private/etc/launchd.conf
To access the Private folder, you need to be in Finder, at the top screen bar click on Go and then Go to Folder. In the search pop up type:
/your drive name/private
You may not have the same problem, in my case after deleting this file my computer works perfectly. I have not uninstalled Avast.
I have the solution.
1.- Turn off your Mac, press Command + S, turn on, and don´t release Command + S until you see the apple logo
2.- When you are in the prompt (a screen black with white letters), write the next
/sbin/mount -uw /
3.- Go to this folder
cd Library
cd Application\ Support "in this case exist a space between “Application Support”, put \ after Application and a space
cd Avast
cd components
cd uninstall
cd com.avast.uninstall.app
cd Contents
cd MacOS
4.- Now, in this last folder if you write
ls
You will see a file called uninstall.sh, and this is the one to run to remove Avast, now to use it you must use the following instruction
sudo sh uninstall.sh
After this now you can reboot your Mac writing the next
reboot
If after this reboot you can´t login your Mac, turn off your mac, repeat step 1 and 2 and now go to the folder
cd private
cd etc
ls
and you see a file with the name launchd.conf, you need to delete this file, type the following
rm launchd.conf
Reboot your Mac with
reboot
And it´s all
Yes, it is the same, but I found that the latter version (also the longer) would get cut off in the middle of “components” because it was too long of a string. I tried both of these suggested fixes but kept getting kext errors after getting to the, “sudo sh uninstall.sh” step.
The errors were as follows:
Kext com.avast.AvastFileShield not found for unload request.
Kext com.avast.PacketForwarder not found for unload request.
My boyfriend was able to walk me through a fix that actually worked for me. I survived this terrible ordeal, and so did all of my files by doing the following:
/sbin/ -uw /
cd Library
cd Application\ Support
sudo rm -rf Avast
(I then did “ls ” to make sure the Avast folder was no longer there. If it is infact gone, proceed.)
cd …
cd …
(You should be back at the root folder now)
cd private
cd etc
rm launchd.conf
reboot
(And it should be fixed!)
Shout out to Francisco Velasco, thanks for the launchd.conf step. It still wasn’t working for me until I removed that file.
I’m sorry for anyone who has to deal with this $#*!. I spent a good 3 hours this morning trying to resurrect my bosses’ computer. Never again am I going to install Avast on any machine, Mac or PC.
The kext errors just means that avast isn’t running, which of course we know this because we are on single user mode.
Also, it’s unlikely that OSX would cut off a path for being too long, it supports much longer paths than that from the command line, it’s more likely a typing error?
Also, the launchd.conf file is not present in a normal install of Avast, in fact this file controls the startup environment of the Mac and it’s not always present, it could have also been created/modified by some other program, the fact that only deleting it solved the problem for you both makes me wonder that in in fact your problem was not related to avast at all.
I have the same issue. I installed AVAST in my Mac - OSX last night and then I cannot reboot my system. I tried to start up in single user mode and entered all the commands (provided by ‘alyssaharn’ and ‘Francisco Velasco’) to uninstall AVAST but system is giving error like “/tmp/avastuninstall : Read-Only file system”…I don’t remember the exact error message as I’m at my work now.
It seems like I don’t have permission to uninstall AVAST in single user mode. But why??