7

I have upgraded from Ubuntu 16 to Ubuntu 18. And since I restarted my machine, I am not able to connect to the internet. And this seems to be a very popular issue, because I am reading and applying the whole morning different solutions given (for example, tried this one), but that does not seem to do the trick for me.

My laptop is connected to the wifi network. In fact we even have 2 in the house and I am able to successfully see and connect to both of them. However, when I ping www.ubuntu.com, I receive "unknown host" as response. I am able to ping to 127.0.0.1 though. Any other application is also unable to connect.

Any help is appreciated :)

Resolved this issue by adding nameserver 8.8.8.8 in the file /etc/resolv.conf. And then restarted using sudo /etc/init.d/networking restart. The solution to my issue was given by Zoltán Süle, in the comments of a similar issue like that of mine.

Eftychia Thomaidou
  • 321
  • 2
  • 4
  • 13
  • 2
    [Ubuntu Development version / How to participate](https://askubuntu.com/questions/1018033/ubuntu-development-version-how-to-participate/1018060#1018060) – sudodus Apr 04 '18 at 11:17
  • 2
    [Please don't post images of text](https://meta.askubuntu.com/q/8713/85695). Instead, paste the text directly into your question and use the [formatting tools](https://askubuntu.com/help/formatting). Also, what happens if you run `ping 8.8.8.8` or any other external IP address? – terdon Apr 04 '18 at 11:34
  • 1
    I am able to ping to 8.8.8.8! Sorry for the image, but I would have to manually type everything, since I do not have internet connection on my machine. – Eftychia Thomaidou Apr 04 '18 at 11:41
  • 4
    This answer was just posted a few minutes after your question: https://askubuntu.com/questions/1021884/no-internet-after-upgrade-from-16-04-to-18-04 – WinEunuuchs2Unix Apr 04 '18 at 11:48
  • 2
    Have added `nameserver 8.8.8.8` in the file `/etc/resolv.conf`. And then restarted using `sudo /etc/init.d/networking restart`. And that worked for me!! – Eftychia Thomaidou Apr 04 '18 at 13:12

0 Answers0