unable to resolve host ...

Rashkae ubuntu at tigershaunt.com
Fri Nov 14 06:14:59 UTC 2008


Ray Parrish wrote:
> Hello,
> 
> I followed some instructions from another thread to install vnc packages 
> so I can use Remote Desktop Viewer and got the following output from 
> terminal. The line I'm worried about is - *sudo: unable to resolve host 
> ray-desktop*.
> Does this mean this install bombed. If not, why can it not resolve my 
> local host and is this something I need to worry about?
> 

your install worked, but the messed up hostname can cause problems down
the road.

Check your /etc/hosts file, by default, it should contain something like:

127.0.0.1       localhost Horo
127.0.1.1       Horo


In my case, Horo is my host name, yours should be ray-desktop

You can also try setting your hostname from Ubuntu GUI (System ->
Administration -> Network, General tab).  That should fix the hostname
in all places Ubuntu expects it to be.



> Later, Ray Parrish
> 
> ray at ray-desktop:~$ sudo apt-get install xtightvncviewer xvnc4viewer
> sudo: unable to resolve host ray-desktop
> [sudo] password for ray:
> Reading package lists... Done
> Building dependency tree      
> Reading state information... Done
> The following packages were automatically installed and are no longer 
> required:
>   python-zopeinterface python-twisted-core python-twisted-web python-elisa
>   python-bluez python-pgm python-avahi python-mutagen python-daap
>   python-pylirc libpigment0.3-4 python-setuptools python-pkg-resources
>   python-gpod python-twisted-bin
> Use 'apt-get autoremove' to remove them.
> Suggested packages:
>   ssh tightvncserver vnc4-common vnc-common
> The following NEW packages will be installed:
>   xtightvncviewer xvnc4viewer
> 0 upgraded, 2 newly installed, 0 to remove and 17 not upgraded.
> Need to get 204kB of archives.
> After this operation, 598kB of additional disk space will be used.
> Get:1 http://us.archive.ubuntu.com hardy/universe xtightvncviewer 
> 1.2.9-22 [60.5kB]
> Get:2 http://us.archive.ubuntu.com hardy/universe xvnc4viewer 
> 4.1.1+xorg1.0.2-0ubuntu7 [143kB]
> Fetched 204kB in 2s (82.8kB/s)    
> Selecting previously deselected package xtightvncviewer.
> (Reading database ... 187358 files and directories currently installed.)
> Unpacking xtightvncviewer (from .../xtightvncviewer_1.2.9-22_i386.deb) ...
> Selecting previously deselected package xvnc4viewer.
> Unpacking xvnc4viewer (from 
> .../xvnc4viewer_4.1.1+xorg1.0.2-0ubuntu7_i386.deb) ...
> Setting up xtightvncviewer (1.2.9-22) ...
> 
> Setting up xvnc4viewer (4.1.1+xorg1.0.2-0ubuntu7) ...
> 
> ray at ray-desktop:~$
> 





More information about the ubuntu-users mailing list