1

Possible Duplicate:
sudo: unable to resolve host (none)

My Ubuntu 12.04 LTS lost Internet connection. It just acts like it has lost Internet connection.

When I go to terminal in says: user@(none). When I run any sudo command, it says

sudo: unable to resolve host (none)

If I try Firefox, nothing happens. But when I try pinging, it responds fine (but only if it has been pointed to a IP address).

DaGhostman Dimitrov
  • 1,198
  • 11
  • 17

1 Answers1

2

Please, enter this line into the terminal:

nano /etc/hostname

And tell me what it says :)

denNorske
  • 965
  • 8
  • 31
  • Actually it is blank =D – DaGhostman Dimitrov Nov 28 '12 at 12:55
  • Then, restart your computer, enter the "recovery mode" in your start-up, and when you are in there, select the option where you can use the command line as "root". From there (note this down), you just type: `nano /etc/hostname` then, when you have, enter a pc name / hostname like "computer", and exit with ctrl+x or what it says, to save it. reboot, and try the things again :P – denNorske Nov 28 '12 at 12:59
  • Did the network work now? If so, no problem! – denNorske Nov 28 '12 at 13:23
  • Yeah the weird part is that the wired network now shows as Auto Ethernet but works perfectly =D – DaGhostman Dimitrov Nov 28 '12 at 13:31
  • Thats because the computer must have a name to be allowed to connect to most networks. If there is no name, no network. – denNorske Nov 28 '12 at 13:35
  • let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/6536/discussion-between-daghostman-dimitrov-and-dennorske) – DaGhostman Dimitrov Nov 28 '12 at 13:57