LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   No internet access after installing GUI on ubuntu server (https://www.linuxquestions.org/questions/ubuntu-63/no-internet-access-after-installing-gui-on-ubuntu-server-850102/)

rough60 12-14-2010 03:19 AM

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. :banghead:

Thanks for any help.

Cheers.

repo 12-14-2010 03:29 AM

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

rough60 12-14-2010 06:26 AM

1 Attachment(s)
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

repo 12-14-2010 06:34 AM

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

rough60 12-14-2010 06:42 AM

Ok, will try again after work.
Where can I find dns server?
Sorry for all the Q's
Cheers

repo 12-14-2010 07:05 AM

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

rough60 12-14-2010 01:21 PM

/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?

repo 12-14-2010 01:29 PM

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

rough60 12-15-2010 03:10 AM

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

repo 12-15-2010 03:13 AM

try t remove
Quote:

search gigglenetwork
from /etc/resolv.conf

Kind regards

ilovelatte 12-27-2010 05:22 AM

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.


All times are GMT -5. The time now is 08:29 AM.