I recently switched to Ubuntu 18.04 and had no trouble connecting to my university wifi or my wifi at my parents house, but I've been unable to connect to my wifi in my apartment. I also can't connect to the hotspot from my other computer (right now I'm on a mobile hotspot). I've tried a lot of different things (I can't remember the myriad of things I've tried, but I've absolutely tried the basics, like restarting my network manager or going into nmtui or writing the passwords directly into the files in /etc/NetworkManager/system-connections, or the conf file(s) in /etc/modprobe.d). Below is the output from a program I downloaded from this link that is supposedly all the relevant information I need to supply. Let me know if there's something else I can provide that might help deduce the problem.
1 Answers
We see several defects in your system from your supplied paste. Let's fix them and see if there is any improvement.
You've made changes to the file /etc/network/interfaces that are incorrect and, indeed, harmful. Please correct them:
sudo nano /etc/network/interfaces
Correct the file to read:
auto lo
iface lo inet loopback
Save (Ctrl+o) and exit (Ctrl+x) the text editor.
Next, there is no Ubuntu module named '8265':
sudo rm /etc/modprobe.d/8265.conf
sudo rm /etc/pm/sleep.d/config
Next, you haven't any rtl8723be device:
sudo rm /etc/modprobe.d/rtl8723be.conf
Next, ant_sel is not an available parameter for asus_nb_wmi:
sudo rm /etc/modprobe.d/asus_nb_wmi.conf
Next, you have overwritten the needed wording in iwlwifi.conf. Please amend the file:
sudo nano /etc/modprobe.d/iwlwifi.conf
Change it to read:
# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system. When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
Save and close as above. I have omitted the parameters you added, namely 11n_disable=1 and disable_msix=1, as I doubt highly that they are useful here.
For the same reason, please do:
sudo rm /etc/modprobe.d/iwlwifi-opt.conf
Next, I recommend that your regulatory domain be set explicitly. Check yours:
sudo iw reg get
If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:
sudo iw reg set IS
Of course, substitute your country code if not Iceland. Set it permanently:
sudo nano /etc/default/crda
Change the last line to read:
REGDOMAIN=IS
Proofread carefully, save and close the text editor.
Since you are having trouble with just your own access point and none others, we suspect the settings in the router. Here are some tips that I suggest you implement in your router.
First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I recommend a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.
Reboot the computer and tell us if there is any improvement.

- 60,188
Since I'm in the US, I went ahead with your code but changed IS to US.
– Mach Jan 13 '20 at 18:32What I thought was the password to my wifi was actually the password to my wifi with 3 extra digits in front of it. I got it from a sticker on the router. But upon logging into the router from a different computer, the actual shared key was the same thing minus those first three numbers. That's embarassing.
Anyway, thanks for the help! It's good that you helped me fix the mistakes I made in some files from messing around with them and I wouldn't have thought to check that section of the router page if you didn't suggest it. Thanks so much!
– Mach Jan 14 '20 at 02:12