LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-14-2010, 03:19 AM   #1
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Rep: Reputation: 0
No internet access after installing GUI on ubuntu server


Hi all,

I was having a hard time configuring ubuntu server with command line so this is the steps I did to install the GUI;

Code:
apt-get update
then

Code:
apt-get upgrade
then

Code:
apt-get install ubuntu-desktop
The GUI started up fine and I logged in as root,
then I tried Update Manager and received this error message:

Requires installation of untrusted packages

I tried this in terminal window

Code:
apt-get update
and got

W: Failed to fetch http://au.archive.ubuntu.com/........
(-5 - No address associated with hostname


So I did System Testing and got the result that my network was fine but my internet failed!

I could do command line update no problem before installing GUI.
I can see it on the network on another computer though.

Trying to setup without the GUI is starting to look easier than with.

Thanks for any help.

Cheers.
 
Old 12-14-2010, 03:29 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
First, don't login as root in the GUI
Make sure your default gateway and dns are correct.
What's the output from
Code:
ping 74.125.230.83
ping google.com
Kind regards
 
Old 12-14-2010, 06:26 AM   #3
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks for the help, below is the screen shot of my router that plugs into a adsl modem.
Sorry to be a pain but could you help with static ip address, network address, gateway address etc
Code:
ping 74.125.230.83
ping google.com
74.125.230.83 replied
but google.com did not

Thanks
Attached Thumbnails
Click image for larger version

Name:	router settings.jpg
Views:	48
Size:	66.5 KB
ID:	5520  
 
Old 12-14-2010, 06:34 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You need to put the dns in
Quote:
/etc/resolv.conf
Is 192.168.1.1 a dns server?
Try to put the dns from your provider or use opendns
Quote:
208.67.222.222
208.67.220.220
Kind regards
 
Old 12-14-2010, 06:42 AM   #5
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Ok, will try again after work.
Where can I find dns server?
Sorry for all the Q's
Cheers
 
Old 12-14-2010, 07:05 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You can set the dns in your router, when you use dhcp, it will be given out with the ip address to your computer.
You can also add the dns in the file
/etc/resolv.conf on your computer
Quote:
nameserver 208.67.222.222
nameserver 208.67.220.220
Kind regards
 
Old 12-14-2010, 01:21 PM   #7
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Original Poster
Rep: Reputation: 0
/etc/resolv.conf

is

# Generated by NetworkManager
search gigglenetwork

Gigglenetwork is what I called my home network and thought it was only the wireless network name.

Should I just add the nameserver info after this in the /etc/resolv.conf file?
 
Old 12-14-2010, 01:29 PM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
First see if networkmanager has an option to add the DNS
Since /etc/resolv.conf is regenerated by networkmanager at every restart of the network.
If you don't have an option in networkmanager; you can do the following

Code:
sudo cp /etc/resolv.conf /etc/resolv.conf.auto
sudo gedit /etc/dhcp3/dhclient.conf
# append the following line to the document
prepend domain-name-servers 208.67.222.222,208.67.220.220;
Kind regards
 
Old 12-15-2010, 03:10 AM   #9
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks repo for all your input.
Still no go but.
After reading alot more I'm going to reinstall server version and give it another crack.

Cheers
 
Old 12-15-2010, 03:13 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
try t remove
Quote:
search gigglenetwork
from /etc/resolv.conf

Kind regards

Last edited by repo; 12-15-2010 at 03:17 AM.
 
Old 12-27-2010, 05:22 AM   #11
ilovelatte
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
I had the same problem and I stumbled upon a solution almost by accident.

First delete, yes delete, /etc/resolv.conf. Then connect using your network manager. It should work, at least that's how it worked for me.

What probably happens is that the network manager, on finding the conf file missing immediately creates a new resolv.conf file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PPPOE server access the internet clients fail to access the internet simbini Linux - Newbie 3 08-31-2010 12:37 AM
Remote, Internet and LAN access to Ubuntu Server ehcah Linux - Server 12 07-21-2010 09:21 PM
Will Installing GUI (Gnome) and GDM login adversely affect Ubuntu 8.0.3.4 server? delinux1 Linux - Newbie 2 05-07-2010 04:05 PM
installing a GUI on Ubuntu server Rangerjim Linux - Newbie 3 11-02-2008 03:45 PM
Ubuntu server cannot access internet but LAN machines can. librano Linux - Server 2 05-13-2007 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration