![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Absolute Beginner Talk The perfect starting place to find out more about computers, Linux and Ubuntu. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Way Too Much Ubuntu
![]() Join Date: Nov 2007
Location: Puebla, México
Beans: 327
Ubuntu 8.04 Hardy Heron
|
[SOLVED] sudo unable to resolve host
Every time I use sudo the terminal says
sudo: unable to resolve host icarus-laptop It works but that didn't happened before, ideas? Thanks ![]() |
|
|
|
|
|
#2 |
|
The Free Multi-Distro Tux
![]() |
Re: sudo unable to resolve host
Post the output of:-
Code:
cat /etc/hosts
__________________
Think carefully before executing commands containing "rm", especially "sudo rm -rf ", if you require more information concerning this matter, read this. I am an experimenter, give me the most stable OS and I can make it unstable in a few hours. C == seriously fast == FTW!
|
|
|
|
|
|
#3 |
|
Way Too Much Ubuntu
![]() Join Date: Nov 2007
Location: Puebla, México
Beans: 327
Ubuntu 8.04 Hardy Heron
|
Re: sudo unable to resolve host
ivan@icarus-laptop:~$ cat /etc/hosts
127.0.0.1 localhost 127.0.1.1 icarus-laptop.actuaria_rulz # 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 ff02::3 ip6-allhosts |
|
|
|
|
|
#4 |
|
The Free Multi-Distro Tux
![]() |
Re: sudo unable to resolve host
Open the hosts file for editing with:-
Code:
gksudo gedit /etc/hosts Code:
127.0.0.1 localhost 127.0.1.1 icarus-laptop # 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 ff02::3 ip6-allhosts That should fix the problem.
__________________
Think carefully before executing commands containing "rm", especially "sudo rm -rf ", if you require more information concerning this matter, read this. I am an experimenter, give me the most stable OS and I can make it unstable in a few hours. C == seriously fast == FTW!
|
|
|
|
|
|
#5 |
|
Way Too Much Ubuntu
![]() Join Date: Nov 2007
Location: Puebla, México
Beans: 327
Ubuntu 8.04 Hardy Heron
|
Re: sudo unable to resolve host
Thanks
![]() |
|
|
|
|
|
#6 |
|
5 Cups of Ubuntu
![]() Join Date: Aug 2005
Location: Sydney, Australia
Beans: 40
Ubuntu 7.10 Gutsy Gibbon
|
Re: sudo unable to resolve host
This happened to me after upgrade to Hardy Heron. (which may or may not be relevant)
Check your /etc/hosts file. My machine in question is "greywolf" and my domain is "home.net". I use DHCP but I have an IP address fixed by my router as 192.168.1.xx. The entry I have in the /etc/hosts file for that IP address is normally: 192.168.1.xx greywolf.home.net greywolf The system (I assume network manager) had added the domain name to the end of the line again - ie 192.168.1.xx greywolf.home.net greywolf.home.net I just removed the 2nd ".home.net" off the end and name resolution worked again. This is not the 1st time this has happened to my /etc/hosts, but it was the 1st time it had caused name resolution errors in the terminal. I just wish they would use a decent network manager like 'wicd' as the default instead of the crap they use now. Anyway, hope this helps? rhodry.
__________________
Integrity is doing the right thing when nobody is watching you. ### Linux Registered User No. 416376 ### |
|
|
|
|
|
#7 | |
|
5 Cups of Ubuntu
![]() |
Re: sudo unable to resolve host
Quote:
![]()
__________________
My little blog |
|
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() Join Date: Jun 2005
Location: Earth
Beans: 90
Ubuntu Karmic Koala (testing)
|
Re: [SOLVED] sudo unable to resolve host
I had this problem as well after I upgraded to Hardy Heron. ^_^ Add/Remove... stopped working correctly as well and I didn't know what is going on. After this fix, things seem to get back to normal.
|
|
|
|
|
|
#9 |
|
Quad Shot of Ubuntu
![]() Join Date: Nov 2007
Location: Portugal
Beans: 488
Kubuntu 9.10 Karmic Koala
|
Re: [SOLVED] sudo unable to resolve host
I had that problem when installing FireStarter and trying to share a connection,
but now it's ok!! fixed!! Thank you guys! |
|
|
|
|
|
#10 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2006
Beans: 78
Kubuntu Jaunty Jackalope (testing)
|
I have the same problem, after updating to hardy (RC1). This problem should be fixed before the final releas!
|
|
|
|
| Bookmarks |
| Tags |
| sudo, unable to resolve host |
| Thread Tools | |
| Display Modes | |
|
|