karius
Would you like to react to this message? Create an account in a few clicks or log in to continue.

No Internet in dual boot windows 7 & ubuntu 16.04

Go down

No Internet in dual boot windows 7 & ubuntu 16.04 Empty No Internet in dual boot windows 7 & ubuntu 16.04

Post by Admin Mon Jun 03, 2019 3:23 am

https://askubuntu.com/questions/1021884/no-internet-after-upgrade-from-16-04-to-18-04





I reported the bug on launchpad. You can subscribe if you are involved: https://bugs.launchpad.net/ubuntu/+bug/1816530

the ORIGIN of the solution

if the /etc/resolv.conf is empty but you can ping 8.8.8.8

$ echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

if the /etc/resolvconf/resolv.conf.d/head is empty then you have to repeat the command above after every restart except you do this:

$ echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null

then you have to restart the resolvconf and the networking

$ sudo systemctl enable resolvconf
$ sudo systemctl start resolvconf
$ sudo /etc/init.d/networking restart

shareimprove this answer
edited Feb 19 at 9:19
answered Apr 4 '18 at 11:09
Zoltán Süle
5941512

1
is the nameserver set in the /etc/resolv.conf file? If not add nameserver 8.8.8.8 to this file – Zoltán Süle Apr 4 '18 at 12:48
4
adding the nameserver in the /etc/resolv.conf and restarting by sudo /etc/init.d/networking restart did the magic! Thanks a lot!! – Eftychia Thomaidou Apr 4 '18 at 13:11
1
@EftychiaThomaidou, Congratulations and thanks for sharing your solution/confirming that this method works :-) – sudodus Apr 4 '18 at 13:26

2
@sudodus @EftychiaThomaidou: you have to add it to /etc/resolvconf/resolv.conf.d/head too. Otherwise you have to repeat the editing of the /etc/resolv.conf file after every reboot. – Zoltán Süle Apr 4 '18 at 13:58
1
This is a workaround, but not a good solution, and will probably break your system in unpredictable ways in the future. You should use the network configuration GUI or netplan to configure your network properly. – JanC May 2 '18 at 19:18
Admin
Admin
Administrator
Administrator

Posts : 44
Points : 4693
Reputation : 0
Join date : 2011-10-23

https://karius.niceboard.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum