4

I upgraded from 16.10 to 17.04 and my laptop connects to home wifi but acts as if the network is not working, no website would load. It's not the browser, none of the apps work. A dozen reboots of laptop and router did nothing. Other laptops (win7), phones and tv use this network without issues. All was fine this morning but then the home wifi just stopped working on ubuntu (after waking it from sleep). For a few minutes it worked fine connected to the extender of that home wifi but then stopped that too. Ubuntu connects and uses my mobile hotspot without issues, so far. Any ideas? None of the fixes in previously asked similar questions worked for me so I was told in another thread to ask my own question.

  • try forgetting the network than reconnecting? –  Apr 15 '17 at 23:07
  • try this may be it will work : sudo service network-manager restart – gunjan parashar Apr 16 '17 at 15:10
  • I tried both of those several times before posting the question here, didn't work. – Shaolinka Apr 17 '17 at 10:09
  • Check out this answer: https://askubuntu.com/questions/902992/ubuntu-gnome-17-04-wi-fi-not-working-mac-address-keeps-changing/905019#905019 – Jay Apr 17 '17 at 11:04
  • Jay, I tried that before posting my question and it didn't work, or it worked until next reboot / wake-up. After that, going through the steps again didn't work. But DNS change suggested below is working for now. – Shaolinka Apr 20 '17 at 09:13
  • 1
    The DNS change that you accepted below is the same what multiple answers to the linked question suggest. I'm voting to keep this question closed. – David Foerster Apr 20 '17 at 10:00

3 Answers3

6

Try this: (solved my problem with DNS)

  1. Right click on Wi-Fi icon at the top-right corner of the screen
  2. go to "Edit Connections..."
  3. Mark your wifi network
  4. click "Edit" button
  5. Open "IPv4 Settings" tab
  6. Choose method: "Automatic (DHCP) addresses only"
  7. Copy&Paste 8.8.8.8, 8.8.4.4 to "DNS servers"
  8. Save
  9. Reboot PC
komp
  • 76
  • This worked (editing connection)! Hopefully it sticks because the other fixes I tried only worked until the next reboot or wake up. Thanks! – Shaolinka Apr 17 '17 at 10:57
  • This is bug report that concerns many users of 17.04. Note that the problem affects both wifi & ethernet, some of the other reports are wifi or usb wifi only. https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1654918 – doug Apr 18 '17 at 00:45
  • I believe that you can mark this as solution to your problem with that green sign. – user140345 Apr 18 '17 at 10:46
  • 1
    Tried this and it hasn't work. I'm I missing something. What is potentially causing this issue? – Rudy Jessop Jul 23 '17 at 03:09
  • This is not the solution to my problem. I already do this and I still experience random dropouts especially at critical times. It's frustrating. – Aries Sep 15 '17 at 03:00
4

Here is a link of the bug.

And here is what you should try:

Open a terminal and type or paste this and run it:

sudo -H gedit /etc/NetworkManager/NetworkManager.conf

Then edit the file and add these lines to the bottom of the file:

[device]
wifi.scan-rand-mac-address=no

Save the file and run this command in a terminal:

sudo service network-manager restart
Provided
  • 111
  • 2
    I believe this issue that you give the fix for prevents you from connecting to wifi at all. The OP says he can connect to wifi, but not the internet. Ergo, DNS problem. – Organic Marble Apr 19 '17 at 00:56
  • If that is the case, the OP should try running this command in a terminal: sudo killall dnsmasq – Provided Apr 20 '17 at 01:19
  • On reboot, the wifi doesn't even connect anymore, when I removed the inserted line in NetworkManager.confand reboot I get a wifi connection but no internet. – Rudy Jessop Jul 23 '17 at 03:11
  • Even if this didn't answer OP's question, it fixed an issue for me. – Caustic Aug 16 '17 at 12:37
1

AIP (Answer in Progress)

Wild guess, have you tried changing your DNS?

sudo -H gedit /etc/resolv.conf 

change nameserver 127.0.0.53 to nameserver 8.8.8.8, save & close.