There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
ubuntu /etc/hosts problem


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
Slipaway172's Avatar
Senior Member with 155 posts.
 
Join Date: Apr 2005
Location: Dacula, GA
Experience: A+ certified/Geek Squad
06-Jun-2005, 09:15 PM #1
ubuntu /etc/hosts problem
hello,

i logged into my ubuntu machine today and it promopted that the internet address for ubuntu couldnt be aquired. i said adding ubuntu to the /etc/hosts file may resolve the problem. i cannot run the package manager, but all internet applications work. how do i fix this. in my /etc/hosts file this is all that is found in it


# The following lines are desirable for IPv6 capable hosts


thankyou
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
06-Jun-2005, 09:28 PM #2
No. What needs to happen is that you need an ip adress. Try dhclient.
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
06-Jun-2005, 11:42 PM #3
Well, I'm confused ... but not to worry, it happens often! () ...

When you say that all internet applications work, do you mean that you can (for example) open a browser and surf the internet? If so, that suggests that you have an IP address already. Adding a site to the hosts file is most useful when the site is not in DNS (for whatever reason) but has an IP address. I know nothing about ubuntu, but I suspect that if you could surf the internet, the problem is likely some temporary condition with ubuntu that prevents them from being resolved through DNS.

OTOH, if you can surf to some sites but not others (besides ubuntu), your ISP may be having problems with their DNS resolution. Either way, you won't be able to do much about it; you'll have to wait until either ubuntu or your ISP fixes things.

Hope this helps.
__________________
The slowest component still sits at the keyboard.
Slipaway172's Avatar
Senior Member with 155 posts.
 
Join Date: Apr 2005
Location: Dacula, GA
Experience: A+ certified/Geek Squad
07-Jun-2005, 06:57 AM #4
well i cant open the root terminal , wont open, just click and nothing happens. and when i type su and the root password it will ALWAYS say incorrect. and when i run dhclient all i get is this.

Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

sit0: unknown hardware address type 776
can't create /var/lib/dhcp3/dhclient.leases: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
sit0: unknown hardware address type 776
Open a socket for LPF: Operation not permitted
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
07-Jun-2005, 05:12 PM #5
Do so as root. However, if the internet is already working (you can browse), then you may want to check out the adresses in /etc/apt/sources.list, and ensure they are correct.
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
08-Jun-2005, 01:43 AM #6
Quote:
well i cant open the root terminal , wont open, just click and nothing happens. and when i type su and the root password it will ALWAYS say incorrect.
Unfortunately, you won't be able to get much beyond your problem without root access. All of your "permission denied" messages suggest that you should have been running as root in order to complete the commands. You may be able to reset your root password by booting from your distribution CD. Alternatively, are you sure you set a root password? -- have you tried just hitting enter at the root password prompt?

Hope this helps -- more info appreciated.
__________________
The slowest component still sits at the keyboard.
Slipaway172's Avatar
Senior Member with 155 posts.
 
Join Date: Apr 2005
Location: Dacula, GA
Experience: A+ certified/Geek Squad
08-Jun-2005, 01:26 PM #7
i know my root password, also when i run the application under the start menu called root terminal , it wont load. i still cant become root
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
08-Jun-2005, 07:38 PM #8
boot single user (append single at your grub prompt), and then run chpass. Reboot, and try again
ubuntunewbie's Avatar
Computer Specs
Junior Member with 2 posts.
 
Join Date: Aug 2007
Experience: Intermediate
21-Aug-2007, 10:10 PM #9
Similar "No Network Connection" Issue
I'm having a similar issue. My PIII machine can be pinged up until the Ubuntu login screen shows up. Once I login, I get the Network icon saying that there is "no network connection". This is a new issue and only occurred once I upgraded to Feisty Fawn from the previous distro.

I tried running dhclient as suggested, and it worked -- I was able to obtain a network address from my router. The Network icon still says "no network connection", but I am now able to be pinged by another machine on the network and can surf the net and run other network apps.

Any ideas what caused this and how I can permanently get rid of this (without adding dhclient to my login scripts).

Thanks!
lotuseclat79's Avatar
Distinguished Member with 10,043 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
22-Aug-2007, 01:40 PM #10
Hi ubuntunewbie,

Welcome to TSG!

Please do not hijack someone else's thread. If you have an issue, start a thread of your own.

Try reading the Fiesty Starter Guide here for information on how to configure network access.

-- Tom
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,527 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
22-Aug-2007, 04:31 PM #11
Quote:
Originally Posted by Slipaway172
well i cant open the root terminal , wont open, just click and nothing happens. and when i type su and the root password it will ALWAYS say incorrect.
Does sudo not work for you either? Do you get incorrect password messages when you enter a command like:

$ sudo ifconfig

Peace...
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:14 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.