Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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

share|improve this answer
2  
An additional comment: dhclient configures a network interface (in this case eth0) -- "The Internet Software Consortium DHCP Client, dhclient, provides a means for configuring one or more network interfaces using the Dynamic Host Configuration Protocol, BOOTP protocol, or if these protocols fail, by statically assigning an address." –  bigbadonk420 Jun 23 '12 at 19:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.