vote up 0 vote down star

When I start Ubuntu it enters tty[1-6] instead of my desktop. Normally I could get back to the desktop by pressing CTRL + ALT + F7 but that doesn't work.

I tried sudo apt-get install ubuntu-desktop but it fails. I tried startx which started the x-server or x-window (not sure what it's called) but it just brought up a black screen with my mouse cursor. If I pressed printscreen, a dialog box would open up.

I can't get back to my desktop. Any ideas how I can?

EDIT

Edited for more info. This was a fresh install of the latest version. It's dual booting with Win7 - but I doubt that matters. Before this happened, I installed lamp-server but realized it wasn't what I wanted. I then installed xampp and uninstalled lamp-server with "sudo tasksel remove lamp-server". I restarted with "sudo shutdown -r now" because it would not shut down using the graphical interface.

flag
was this a fresh install of the latest ubuntu or did you upgrade from an earlier version? – ~quack Nov 3 at 19:18
If you know what happened right before it starting doing this, that would also be helpful to know. – emgee Nov 3 at 19:21
Fresh install of the latest version. Before this happened, I installed lamp-server, xampp then uninstalled lamp-server with "sudo tasksel remove lamp-server". I forgot to add that to the original question. I will edit it in now. – Bua Nov 3 at 20:26
When you say "it fails," it helps if you can provide a specific error. There are many ways for apt to fail. – Ryan Thompson Nov 3 at 21:37

2 Answers

vote up 2 vote down

It sounds like you might have managed to uninstall your desktop environment. (Unless Karmic has replaced GDM, which I doubt.)

If you were using GNOME, you probably installed Karmic with the ubuntu-desktop. You'll want to reinstall that:

$ sudo apt-get install ubuntu-desktop

...or possibly

$ sudo apt-get --reinstall install ubuntu-desktop

That should pull in any missing packages. Once you've reinstalled, you should be able to run

$ sudo /etc/init.d/gdm restart

... and get back to the GDM login screen.

link|flag
vote up 0 vote down

Login, and type:

/etc/init.d/gdm restart
This should launch Gnome Desktop Manager.

link|flag
This didn't work because gdm wasn't there – Bua Nov 3 at 21:15

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.