sudo needs a long time to determine the host name
Bug #21859 reported by
Dani Alonso
This bug report is a duplicate of:
Bug #32906: sudo fails if it cannot resolve the local hostname and no MTA is installed.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Whenever I try to run a graphical app (such as boot-admin, network-admin,
gnome-cups-manager) that need to be invoked trough sudo they suffer a great
delay before their window is showed in the desktop, though a "ps -A" in a
terminal shows that they are executing.
I've discovered that this problem is someway related to dhcp, because manually
running dhclient3 fixes the delay problems. But internet is already working
from the beginning so the network interface already has an ip assigned.
To post a comment you must log in.
sudo needs to lookup your hostname in order to process its configuration file.
If your DNS server is slow or unreachable, this will cause delays.