Here is the solution, I had the same problem and fixed it yesterday. Look below.
—————————————————-
Fixed it! It is amazing to me that one tiny config file can bring down the whole system! I followed the instructions of someone else in the replies below (forgot the name) and Mohave installed without a hitch. Here are the instructions:
If you're also seeing symptoms like networking failing, bluetooth devices not connecting, etc, and you have been using the mac for a while (or restored it from another machine using migration or time machine), then it's due to an old, out of date system configuration file that is contains settings that are too low for modern macs: '/etc/sysctl.conf
'
This file doesn't even exists on new macs, so if you have it, it will cause problems
A. If you can log in (even if slow), or you're still on High Sierra, and have not yet upgraded, follow these instructions:
1. Start the terminal
app from Applications/Utilities
2. Check if the file exists, by typing
ls -l /etc/sysctl.conf
If this returns a result like the following, then the file exists. If it does not, then your issues are caused by something else
-rw-r--r-- 1 root wheel 136 24 Nov 2013 /etc/sysctl.conf
3. Remove the file: (actually this command will simply rename it, so you can restore it if you really want to mess up your computer again.)
You'll be prompted for your password.
sudo mv /etc/sysctl.conf /etc/sysctl.conf.bak
4. Restart your computer, and you should be all set, or if you've rolled back to High Sierra, you should be good to attempt the upgrade again.