No Internet in dual boot windows 7 & ubuntu 16.04
karius :: Computer Zone :: PC Tweaks
Page 1 of 1
No Internet in dual boot windows 7 & ubuntu 16.04
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
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
karius :: Computer Zone :: PC Tweaks
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum