3.- Go to this folder
cd Library <ENTER>
cd Application\ Support <ENTER> "in this case exist a space between "Application Support", put \ after Application and a space
cd Avast <ENTER>
cd components <ENTER>
cd uninstall <ENTER>
cd com.avast.uninstall.app <ENTER>
cd Contents <ENTER>
cd MacOS <ENTER>
4.- Now, in this last folder if you write
ls <ENTER>
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 <ENTER>
After this now you can reboot your Mac writing the next
reboot <ENTER>
This is the same as:
sudo sh /Library/Application\ Support/Avast/components/uninstall/com.avast.uninstall.app/Contents/MacOS/uninstall.sh
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 / <ENTER>
cd Library <ENTER>
cd Application\ Support <ENTER>
sudo rm -rf Avast <ENTER>
(I then did "ls <ENTER>" to make sure the Avast folder was no longer there. If it is infact gone, proceed.)
cd .. <ENTER>
cd .. <ENTER>
(You should be back at the root folder now)
cd private
cd etc
rm launchd.conf <ENTER>
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.