06 August 2016

Ubuntu Reconnect After Network Fail

I recently had an Ubuntu system upgrade fail part way through with the result that it would not longer connect tot he net. I resolved it by carrying out the following. Your situation may be different.

If you run ifconfig -a you should get information about your ethernet adapters, but if this is not the case these steps might help.
  1. /etc/resolv.conf was missing so I recreated the link: ln -s /run/resolvconf/resolv.conf
  2. Then reconfigured it: dpkg-reconfigure resolvconf
  3. Add a route: ip route add default via dev eth0
Then I was able to run apt-get update and all was good after a reboot

No comments:

Post a Comment