My home network has 2 desktops, 1 laptop, 1 printer, and 1 smart TV. All equipment is connected through a modem/router. The desktops are ethernet wired to the router while the laptop, printer and TV are connected by WiFi. Everything worked fine on Ubuntu 16.04LTS until I upgraded one of the desktops (grumpy) from Ubuntu 16.04LTS to Ubuntu 18.04.1LTS.
ping -c3 www.ubuntu.com on grumpy yields "Name or service not known".
ping -c3 8.8.8.8 yields 3 packets transmitted, 3 received, 0% packet loss
Mozilla Firefox on grumpy cannot find any server anymore. None of the of the Preferences/General/Network Proxy/Settings options work! Printing from grumpy does not work either! Unexpectedly, Grumpy shows on Settings/Network/Wired/"Connected-1000 Mb/s".
Everything on my home network works - but grumpy (with Ubuntu 18.04.1LTS)! How can I make grumpy work again? Note: I want to keep my existing data. on grumpy intact.
See inside No internet after upgrade from 16.04 to 18.04.
Solution: Start the terminal and type: $ ifconfig
Now you gotta figure out which is your Ethernet interface. Mine is listed as eth0.
Next type: $sudo gedit /etc/network/interfaces
My file only had:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
Now what you need to do is to add the following lines afterwards:
auto eth0
iface eth0 inet dhcp
Lastly, $ sudo ifup eth0
reboot and you're done. Don't forget to change eth0 with the name of your Ethernet interface.
Original answer shareedit edited Sep 19 at 9:37 Yufenyuy Veyeh Dider 1,3902923 answered Sep 19 at 9:08 Whatnow 211
ping -c3 www.ubuntu.com
and also:ping -c3 8.8.8.8
Next, edit your question to add the result. Welcome to Ask Ubuntu.