It should have something like: 127.0.0.1 localhost.localdomain localhost 127.0.1.1 my-machine If either of these files aren't correct (since you can't sudo), you may have to reboot the machine into recovery mode You are then good to go. To work around this you can remove /etc/hosts and it will be re-created after closing all open bash.exe windows and launching bash.exe ð 13 richiepreece commented Aug 17, 2016 You Re: sudo: unable to resolve host You can change your hostname (computername) easily. http://crudlet.org/unable-to/sudo-unable-to-resolve-host.html
Steve Langasek (vorlon) wrote on 2008-08-23: #15 Scotty, Please don't follow up to bugs that are marked as duplicates; your message will be hidden from the view of most people who I spent 30min fighting with this error after editing my hostname and hosts files and running sudo service hostname restart until I ran sudo hostname and saw that the hostname was Jose (jbellido) wrote on 2008-04-25: #4 I just had this same problem, sudo was working fine until I clicked on the icon for "Wired network connection" and the manual configuration, then hope all is well with you and family,I am sorry I didn't inform you about my traveling to England for a Seminar..
It was working fine until I tried changing my hostname away from the default. –mpen Mar 1 '14 at 2:42 6 -1 This answer is incorrect. I'm guessing this is a dns problem? :-/ Issue? "bogo@(none):~$ sudo nano /etc/hosts sudo: unable to resolve host (none)" This is my copy of the hosts file... "127.0.0.1 localhost localhost 127.0.1.1 sudo: unable to resolve host .... No way to become root otherwise.
Could you please attach your /etc/hosts file? Then open the terminal and type >> sudo gedit /etc/hosts. In What Order Will These Fill? Sudo Unable To Resolve Host Connection Timed Out EasyBCD.
So try to add the name to /etc/hosts file and also don't forget to add it to /etc/hostname file . Sudo Unable To Resolve Host Windows 10 Bash In 4/4 time can I insert a half sized bar in the middle of the piece? Here's what the file looks like using Google DNS servers: /etc# cat resolv.conf nameserver 188.8.131.52 nameserver 184.108.40.206 nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844 share|improve this answer edited Aug 16 '14 at 22:29 answered http://askubuntu.com/questions/357155/sudo-unable-to-resolve-host-ubuntu-server File does not exist.
Sever-sort an array What caused my meringue to fall after adding cocoa? Sudo Unable To Resolve Host Raspberry Pi My hostname was "staging_1". sudo doesn't work, sir. Full disk problem on Ubuntu 16.04 (Xenial Xerus) What are Iron nuggets and what can they be used for? "newfangled", "fandangle" and "fandango" Select records that intersect more than 3 polygons
share|improve this answer answered Aug 13 '14 at 13:50 Chris.B 1412 add a comment| up vote 3 down vote In my case it was the problem, I changed the hostname to I will appreciate whatever you can afford and i'll pay you back as soon as I return,Kindly let me know if you can help me out so I can send you Sudo Unable To Resolve Host Hostname Adv Reply May 10th, 2011 #8 czaravm View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date May 2011 Beans 10 Re: sudo: unable to resolve host Sudo Unable To Resolve Host Debian Initial appearance of error: ran 'sudo lshw' to see if the report would be different than under Gutsy.
and for my /etc/hosts file, what exactly do you want me to change? this contact form Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 324 Star 3,126 Fork 106 Microsoft/BashOnWindows Code Issues 723 Pull requests 0 Projects share|improve this answer answered Apr 13 '14 at 5:19 community wiki Radu RÄdeanu add a comment| up vote 0 down vote First you have to edit the hostname in /etc/hostname file. Now it's solved. Sudo Unable To Resolve Host Bash On Windows
Vikas Bhasin (vikasb) wrote on 2009-11-24: Help Request #16 Hello, How are you doing? Windows 10 Bash Unable To Resolve Host There you will find a name in the second line. NoScript).
Browse other questions tagged sudo or ask your own question. What change in history would I have to make to stop Christmas from happening? The time now is 12:41 PM. /etc/hostname Permission Denied When it returns the error sudo: unable to resolve host
Did Donald Trump say that "global warming was a hoax invented by the Chinese"? My terminal looks like this: ubuntu@(none):~$ sudo true sudo: unable to resolve host (none) What can I do to solve it? I > reccomend giving it high priority. Check This Out I changed the 127.0.0.1 to look like "127.0.0.1 localhost DESKTOP-SLQK4CV" (by doing "sudo vim /etc/hosts" (quick tip for vim newbies: press i before typing to switch to insert mode, press esc
Any ideas? All is well. Browse other questions tagged sudo error-handling or ask your own question. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd.
A root account with password is discouraged. –Lekensteyn Mar 29 '15 at 23:31 add a comment| up vote 26 down vote Note, this is an answer to this question which has If this does not work, you can reboot into the recovery console and apply the changes. export EDITOR=vim) as it creates an offline copy for editing and then cleanly overwrites after editing. –Jan Sep 26 '14 at 13:55 thanks a lot for this answer –kapil What does HR do for me?
Every time when I trying to use sudo I got this problem: sudo: unable to resolve host ubuntu-server My /etc/hosts file: 127.0.0.1 localhost 127.0.1.1 ubuntu-server # The following lines are desirable