e.g. Not the answer you're looking for? 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 After a lot of searching about I managed to find an engineers m... Source
Belows are my /etc/hostname and /etc/hosts [email protected]:~$ cat /etc/hostname knguyen [email protected]:~$ cat /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters Log In to Comment asked 1 year ago viewed 5650 times active 11 months ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: Whatâ€™s in a Job Title? Linked 376 Error message when I run sudo: unable to resolve host (none) 0 hadoopmaster is not in the sudoers file 1 sudo: unable to resolve host 127.0.0.1kaushal Related 4'sudo' not Are there any special characters not printed out? –user279434 May 8 '14 at 14:13 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote Edit the /etc/hosts, http://askubuntu.com/questions/59458/error-message-when-i-run-sudo-unable-to-resolve-host-none
sudo: unable to resolve host ... –Green Jul 12 at 20:18 @Green: No sudo? My hostname was "staging_1". For doing so key the following in your terminal: " cat /etc/hosts " - You should get the following. ""Forget the IPv6 parts and just focus on first 2 lines"" They and NFS with Nautilus God, why are we given this bloody annual runaround as some new bunch of wannabee coders fall out of university and want to try impress the w...
share|improve this answer edited Dec 9 '13 at 13:02 answered Aug 18 '12 at 11:02 Thor 1,7701218 4 Remember! John Crisp. Make it resolve to 127.0.0.1. Sudo: Unable To Resolve Host Bash On Windows After edited, just start the services for hostname sudo service hostname start, then if you check hostname command it will give the new name.
Has Darth Vader ever been exposed to the vacuum of space? Sudo Unable To Resolve Host Windows 10 Bash Do you want to continue [Y/n]? It ain't quick, but it does something you can't do any other way. read this article Only these symbols are permitted: a-z, A-Z, 0-9 share|improve this answer answered Jan 18 '15 at 3:26 Marcello 1 add a comment| up vote 0 down vote I had the same
To specify preferred editor, use the EDITOR environment variable (eg. Windows 10 Bash Unable To Resolve Host Your files you submitted are in order. Ping ubuntu Change your hosts file to read Ubuntu 127.0.0.1 and try Why is ubuntu in your hosts file anyways? Solve: Edit /etc/hosts: gksudo gedit /etc/hosts make it looks like (change boldfaced words to current host-name): 127.0.0.1 localhost 127.0.1.1 Lily-desktop # The following lines are desirable for IPv6 capable hosts ::1
User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. https://www.digitalocean.com/community/questions/sudo-unable-to-resolve-host-hostname Whenever I "sudo", I get "unable to resolve host [myhostname]". Sudo Unable To Resolve Host Aws Why does a (D)DoS attack slow down the CPU and crash a server? Sudo Unable To Resolve Host Debian Thunderbird live.mozillamessaging.com uses an invalid security certificate I started getting this error a while back and have several times looked for a solution without success.
UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore â€ºAppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. The users who voted to close gave this specific reason:"Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. share|improve this answer answered Jan 15 '15 at 5:15 Erick 6911 1 Welcome to askubuntu! http://crudlet.org/unable-to/sudo-unable-to-resolve-host.html I want to become a living god!
Every sudo call returns sudo: unable to resolve host .... Unable To Resolve Host Linux Interview question "How long will you stay with us?" Alias are not coming from language specific item version I have forgotten what the puzzle was How do I generate a time Reply Log In to Comment 0 Aspmon November 4, 2014 You may add your domain name to your /etc/hosts like this [email protected]:~$ cat /etc/hosts 127.0.0.1 knguyen Reply Log In to Comment
I'm specifically wanting to make sure you have lo (loopback) up. UNIX is a registered trademark of The Open Group. Adv Reply May 10th, 2011 #5 jtarin View Profile View Forum Posts Private Message The Lucky Rabbit Join Date Dec 2008 Location 43° 7' 41" 131° 54' 3" BeansHidden! /etc/hostname Permission Denied 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
Mine looks like: 127.0.0.1 localhost localhost.localdomain penguin # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters Replace penguin in Can't you read the question? Edit: if this still causes a DNS lookup, the problem is probably that your Name Service Switch configuration consults DNS before /etc/hosts so the change to /etc/hosts has no effect. Check This Out If this does not work, you can reboot into the recovery console and apply the changes.