Ubuntu – Terminal command with sudo takes a long time

command linesudo

I noticed that the terminal recently becomes too slow when I execute a command that needs my password. It takes some seconds to display [sudo] password for …

I'm using Dell XPS developer edition (i7,8G RAM) with Ubuntu 13.04 64bit.

Best Answer

Hi I found this answer on another question - The problem is if your hostname is not in your hosts file.

basically, type "hostname" in your terminal. That will tell you what your hostname is.

Next, type:

sudo nano /etc/hosts

and add:

127.0.0.1 yourhostname

then save - and you are done! Sudo should be fast now!

Related Question