Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to set up a server on my home network which will eventually host rails. I am not great in linux server and i try to follow the prompt. I did succesfully get to a black screen which then prompts me to a username then password to then do anything ( assuming). However here what i try to do

I kinda fellow his tutorial http://www.ubuntugeek.com/step-by-step-ubuntu-11-04-natty-lamp-server-setup.html but however the command where not 100% like him not in same order but same idea.

Then i want to install ubuntu server with gui here the command i try with

sudo apt-get upgrade
sudo apt-get install ubuntu-desktop

Which however give me the following error

Err http... inRelease
w Failed to fetch ht... So been ignored

if i try the desktop one i get
E: unable to locate package ubuntu
E: unable to locate package desktop

So i am assuming i am not connected to the internet, so i try the following command sudo vi /etc/network/interfaces

here the output it gives me and i know my gateway on my laptop is


Btw i do not know the command to get out of vi and saving it.

Err http://us.archive.ubuntu.com precises InRelease
Err http://us.archive.ubuntu.com precises-updates InRelease
Err http://us.archive.ubuntu.com precises-backports InRelease
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/InRelease
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-backport/InRelease

migration rejected from serverfault.com Aug 18 '13 at 23:45

This question came from our site for system and network administrators. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as unclear what you're asking by jrg Aug 18 '13 at 23:45

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Please post the full, unmutilated error message. Also post the content of /etc/apt/sources.list (without comment lines). –  Ansgar Wiechers Sep 2 '12 at 23:54
its about 20 line and its on an other computer but ill post one or 2 line –  Jseb Sep 3 '12 at 0:00
ping ... do you get an answer? If not, your network is the first issue to fix. Be sure you do "sudo apt-get update" first. If that has errors get that fixed before trying more. –  Skaperen Sep 3 '12 at 0:12
As an Emacs user, I had no answer to your question of getting out of vi. But when I googled "get out of vi" the first response had an answer. And there are plenty of answers to plenty of questions just in the Stack Exchange network of sites, such as unix.stackexchange.com/questions/3334/how-do-i-quit-from-vi –  Skaperen Sep 3 '12 at 0:20
Btw i do not know the command to get out of vi and saving it. - esc :wq return –  Mark Henderson Sep 3 '12 at 1:26