![]() ![]() This will open the file in the nano text editor. Open an SSH connection to your Ubuntu Server or open the terminal app if you are using Ubuntu desktop and run the command: You can use any text editor, but for this example, we will use nano. The most common fix to resolve the “sudo: unable to resolve host (none)” error, is to edit the hosts configuration file. If that still doesn’t work, try changing your DNS server to a public one like Google DNS or OpenDNS If that doesn’t work, check your /etc/hosts file and make sure it contains an entry for your machine’s IP address. ![]() First, try reconnecting to the network if you’re not already connected. If you’re not sure which of these is the cause of the error, you can try each of them in turn. However, if you’re using a private DNS server, it’s possible that the server is not configured to resolve hostnames on your network. If you’re using a public DNS server like Google DNS or OpenDNS, this is unlikely to be the case. If the file is empty or does not contain an entry for your machine’s IP address, sudo will be unable to resolve the hostname.įinally, it’s possible that your DNS server is not configured correctly. This file should contain a mapping of IP addresses to hostnames for your machine. If you’re running sudo on a local machine with no network connection, this is likely the cause.Īnother potential cause is that your /etc/hosts file is not configured correctly. The most common is that your machine is not connected to the network and thus cannot resolve its own hostname. There are a few potential causes of this error. If the server is unable to resolve the hostname, it will return the “sudo: unable to resolve host” error. Part of this process involves resolving the hostname of your machine. When you use the sudo command, it contacts the sudo server to validate your user credentials. Thanks in advance.First, let’s take a look at what the error message actually means. Any help on this matter would be greatly appreciated. I still have full use of the sudo command but everytime I use it that error pops up and I would like to find a way to keep this from happening. I am not sure where else to look to see what might be causing this error to occur. Thanks in advance.Īnd I have looked over the system->administration->network hosts tab and 127.0.1.1 alias jerok-desktop is listed there as well. # The following lines are desirable for IPv6 capable hostsĪnd I have looked over the system- >administration ->network hosts tab and 127.0.1.1 alias jerok-desktop is listed there as well. I logged in today to try and figure out an email issue that I have been having and when I went to use the sudo command I received the same unable to resolve error that is described in this thread, I have looked over all of my files that have been described as being the offending files but all of mine seem to be alright. I have just recently upgraded to 8.04 and have had successful results so far minus a few issues. Hi I'm still fairly new to Ubuntu I have been using it for about a year now off and on. > SYSTEM>ADMINISTRATION>NETWORK>(HOST TAB)). > You received this bug notification because you are a direct subscriber > launchpadlibrar ian.net/ 14866505/ Screenshot- 1.png > ** Attachment added: "Screenshot-1.png" > SYSTEM> ADMINISTRATION> NETWORK> (HOST TAB)). > is configured to your machine name (the 127.0.1.1 entry in > fix is take out the domain changes, and check to make sure your loopback > it was trying to query my PDC, not the local machine. When it returns the error sudo: unable to resolve host > the domain in which it was trying to log on. When trying to connect my ubuntu box to my workgroup I edited ![]() > I figured out what i did wrong on this, and it may help others so here > *** This bug is a duplicate of bug 32906 *** Thanks a lot, me also experiencing the same issue, and get over it by ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |