DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Just reinstalled and installed the "Desktop Environment" so now when my Debian system boots, I get an error after I login as my user that says:
Could not look up internet address for debian. This will prevent Gnome from operating correctly. It may be possible to correct the problem by adding Debian to the file /etc/hosts.
Log In Anyways or Try Again
I am able to get the GUI login prompt fine and I have an active internet connection.
Gnome does not seem to operate correctly if it can't resolve your computer's hostname. Under normal circumstances you should not use any "hostnames" given to you by your ISP or anything.
I added some stuff to the first line you see and now I no longer get the error when Debian starts up into GUI mode. I am prompted to login as I did with a graphical login screen so I enter my user name and password. This time there is no error but I get the "Debian" logo load screen to show that Gnome is loading however that is as far as she gets. It freezes and will not go any further. I don't know what the problem is.
I'm also getting the same error, except that my error says "Could not look up internet address for . This will prevent Gnome from operating correctly. It may be possible to correct the problem by adding to the file /etc/hosts." (i.e. it appears to be trying to resolve a blank hostname!)
My etc/hosts file is:
127.0.0.1 localhost.localdomain localhost waldersubuntu
# 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
The other symptom I get is that when I try a sudo command (e.g. sudo gedit /etc/hosts), I get the error "sudo: unable to lookup via gethostbyname()". I presume this is related to the host error? The command without sudo works just fine (excpet that it's read-only, of course!).
Can anyone help?
AW
Quote:
Originally posted by carlwill Just reinstalled and installed the "Desktop Environment" so now when my Debian system boots, I get an error after I login as my user that says:
Could not look up internet address for debian. This will prevent Gnome from operating correctly. It may be possible to correct the problem by adding Debian to the file /etc/hosts.
Log In Anyways or Try Again
I am able to get the GUI login prompt fine and I have an active internet connection.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.