You can read that the only hostname command doesn't change the file /etc/hostname, but set the hostname on the way if you need to change it. If you want change the file you can use the last istruction.
After this I don't think this is a realy bug. Thanks many for your help. -- Changing hostname using "hostname" breaks sudo https://bugs.launchpad.net/bugs/113778 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs