1

I'm new to Ubuntu Server and am trying to get a basic instance up and running. I'm having some issue installing the GUI (GNOME, correct?) through apt-get.

Background:

Host OS: Windows 7 Pro x64

VM App: VirtualBox x64 (latest version)

Network for VM: Bridged to my laptop's wireless card (gets connection fine; tested)

Guest OS: Ubuntu 10.10 Maverick Server x64

So Far:

  • I installed Ubuntu Maverick x64 with no problems. However, I didn't set up network connection during install (no connection at the time).
  • Edited my /etc/network/interfaces file to read the following (may be incorrect):

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet dhcp

  • I edited /etc/apt/sources.list to remove comments for all repositories except the backport.
  • I ran "sudo apt-get update". It appeared to run fine and complete.
  • I ran "sudo apt-get upgrade". It appeared to download and upgrade a number of packages.

The Issue:

Whenever I run "sudo apt-get install ubuntu-desktop" it gives me an error that the package cannot be found. Same for many other popular packages (gedit, etc.) I have not been able to get a single package to install.

Questions:

  • Does my network interfaces file appear to be correct or did I miss something?
  • Is "ubuntu-desktop" the correct package name that I should be searching for?
  • Can you think of anywhere else I might have gone wrong?

Update: Error Information

After being informed that I should try "sudo apt-get install gnome-desktop-environment", I tried that, but I got the same error that I've been getting.

The error message, regardless of which package I try to install, continually comes back:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gnome-desktop-environment

This error happens with ubuntu-desktop, gnome-desktop-environment, gedit, and any other packages I can think of.

Update: sources.list snippets

Because I think it might help, I'm re-typing some of my sources.list files so you get an idea of what's happening:

sudo nano /etc/apt/sources.list outputs repositories such as:

deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted

deb http://us.archive.ubuntu.com/ubuntu maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe
3
  • It looks like there's something wrong with your sources.list. Are you sure you didn't accidentally comment something out?
    – Sascha
    Oct 24, 2010 at 0:39
  • @Sascha - it sounds like that to me as well. @goober - please see my edit about the repository list. Oct 24, 2010 at 2:10
  • Just to clarify, I'm a programmer and understand the nature of comments. As far as I can tell, every line that begins with "deb" or "deb-src" has not been commented. I've also ensured that the text starts the line (i.e. no spaces before the beginning text, etc.) Also, it allowed me to do the initial update/upgrade, which is the most confusing part of all this. Oct 25, 2010 at 2:23

4 Answers 4

2

Your /etc/interfaces file looks fine, and since you managed to run apt-get update and apt-get upgrade successfully, this indicates that your network config is good.

As to why you can't install GNOME, the package is called gnome-desktop-environment rather than ubuntu-desktop. You may want to opt for gnome-core instead, which contains less bloat than the full blown desktop environment would.

If that doesn't work, please could you edit your original question to include the error text from apt-get.

Edit 1
Since you're getting package not found for everything, check out /etc/apt/sources.list and check the repositories for universe and multiverse aren't commented out (i.e have a # at the beginning of the line). If they are, remove the # and try again.

Edit 2
For the key error, try the following command sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192. (Source)

13
  • Yup, I usually use apt-cache search <package name> to make sure it's there or if I'm not sure, search for a partial string.
    – gravyface
    Oct 23, 2010 at 22:45
  • There's also always apt-get install gnome-<tab>. I do love tab completion :) Oct 23, 2010 at 22:47
  • @Ben: No matter what, it tells me the package can't be found. I've updated my question to include the exact error. Oct 23, 2010 at 23:53
  • @gravyface: "sudo apt-cache search gnome-desktop-environment" just seems to return. I just get the next line in the console, waiting for a command. Oct 23, 2010 at 23:54
  • @goober: What does apt-cache policy gnome-desktop-environment return? Oct 24, 2010 at 0:56
1

This has happened to me too. What I did was reinstall ubuntu server and it simply worked. I think the problem was that I accidentally canceled the apt configuration during the install.

0

Try apt-get upgrade following server install, before trying to install desktop

0

After much back and forth, it seems what fixed it was removing the "us" from the package URL (that is, changing "us.archive.ubuntu.com" to "archive.ubuntu.com").

It must be an issue with those servers or that particular domain.

Anyway, after editing the file to remove those references, it now appears to work.

I did this on a hunch -- a hunch that I'm now very glad I had! :)

This issue may be reported the Ubuntu team.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .