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.

This question already has an answer here:

I've changed my machine name through editing /etc/hostname file. but since I did, a weird message appears whenever I sudo:

sudo: unable to resolve host Tehuti

then it asks for password normally.

What is wrong and is there a correct way to change name with causing problems?

share|improve this question

marked as duplicate by Lekensteyn, vasa1, hhlp, Stephen Myall, Seth Mar 6 '13 at 19:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

2 Answers 2

up vote 1 down vote accepted

Check in your hosts file(/etc/hosts), for the entry of 127.0.1.1 Set your new hostname there as well. So probably for you:

127.0.1.1 Tehuti

share|improve this answer
add comment

You have to edit /etc/hosts too. Replace old name with new name.

share|improve this answer
    
that's it, thanks –  ashams Mar 5 '13 at 21:20
add comment

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