I had a similar problem with sudo.  I solved it, I hope this helps
developers to fix it quickly.

Problem:
Recently upgrading to Hardy
Inconsistent performance from commads "sudo" or "gksu" (I stopped using 
"gksudo", I thought it was deprecated but in retrospect if it isn't deprecated 
it might be related to this too).
When running a "sudo" command in the console from a computer with hostname 
"myoriginalhostname" you get the message:
[CODE]
[EMAIL PROTECTED]:~$ sudo echo "Hello"
sudo: unable to resolve host myoriginalcomputername
Hello
[EMAIL PROTECTED]:~$
[/CODE]

The problem is that apparently the upgrader sets the computer name in the 
/etc/hosts file to the "default" computer name that the Ubuntu installer sets 
up.  Thus, it takes the current user name and appends something like "-desktop" 
or "-laptop" to the end.  So the hosts file might have a line like this:
[CODE]
127.0.1.1 myusername-laptop
[/CODE]

Solution:
For the installer (developers), you would have to make sure that the correct 
hostname is written to this file when upgrading.  For the end user, edit the 
mentioned line in /etc/hosts and change "myusername-laptop" to your original 
computer name.  I hope that helps.

-- 
_usr_sbin_firestarter.0.crash
https://bugs.launchpad.net/bugs/224854
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to