unable to lookup [hostname] via gethostbyname()

Asked by JBLinux

I changed the localhost name from 'jerry-desktop' to 'jerry' and then, DUH!, nothing would run. I managed to change it back so that now my apps run but none of the System/Administration utilities will run. What did I miss?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Frode M. Døving
Solved:
Last query:
Last reply:
Revision history for this message
JBLinux (jlordan) said :
#1

The question title is the error I get when I try to run any 'sudo' command from a terminal.

Revision history for this message
Frode M. Døving (frode) said :
#2

You need to replace the 'jerry-desktop' entry in 'System -> Administration -> Networking -> Hosts [tab]' with 'jerry'

That entry must match the hostname set in the General tab in the same window.

- Frode

Revision history for this message
Best Frode M. Døving (frode) said :
#3

If you can't run any of the System/Administration programs, you can reboot to Recovery Mode,
First find the current hostname:
# cat /etc/hostname

Then run 'nano /etc/hosts' to edit the hosts file. Change the line with your old hostname to match the output of the previous command.
It's essential that these two match.

- Frode

Revision history for this message
JBLinux (jlordan) said :
#4

Frode M. Døving wrote:
> Your support request #2583 on Ubuntu changed:
> https://launchpad.net/distros/ubuntu/+ticket/2583
>
> Status: Open => Answered
>
> Frode M. Døving proposed the following answer:
> You need to replace the 'jerry-desktop' entry in 'System ->
> Administration -> Networking -> Hosts [tab]' with 'jerry'
>
> That entry must match the hostname set in the General tab in the same
> window.
>
> - Frode
>
> _______________________________________________________________________
> If this answers your request, please go to the following page to let us
> know that it is solved:
> https://launchpad.net/distros/ubuntu/+ticket/2583/+confirm?answer_id=1
>
> If you still need support, you can reply to this email or go to the
> following page to enter your feedback:
> https://launchpad.net/distros/ubuntu/+ticket/2583
>
>
Thank you.

That seems simple enough, the trouble is, I can't start Networking. It
shows an entry at the bottom of the screen that says 'Starting
Networking' and then it just ends.

How do I get to it to change it?

Revision history for this message
Frode M. Døving (frode) said :
#5

See my second comment.

Revision history for this message
JBLinux (jlordan) said :
#6

Much thanks Frode...that fixed it.