Ubuntu – Ubuntu 12.04 recovery mode root shell has no internet connection

command linenetworkingrecovery-mode

I'm debugging some things on my computer and I boot into recovery mode from the grub menu. Then it gives me a bunch of options on what to do next, and I select the one that drops it to a root shell. However, apt-get complains about not being able to resolve hosts whenever I try to install anything. I'm assuming this is because it is not connected to the internet. How can I enable the internet connection from the root shell?

Best Answer

Plug it in to the router with an Ethernet cable and run the dhclient eth0 command.

Related Question