Karmic erased my desktop

1

1

I'm running Karmic RC 32-bit. Ran aptitude safe-upgrade this morning, then rebooted. Everything looks fine in GDM, I enter my password, the animation goes for a few seconds and then dumps me to my desktop wallpaper, and AWN, which I have set to automatically start at login.

No desktop icons, no gnome-panel, keyboard shortcuts (like Alt+F2) don't work. I can launch apps from AWN but they open without window decorations.

This happened with one of the Karmic alphas and I just reinstalled. Anyone have a less radical solution?

Edit: People have suggested running metacity --replace and gnome-panel from a gnome-terminal, and this gets me my window decorations and panel. What I'm looking for is, what file or script is responsible for setting up my session and launching these apps at login time, and how can I stop aptitude from breaking it?

regan

Posted 2009-10-27T15:35:40.170

Reputation: 712

You could start the panel and decorations manually with gnome-panel and metacity --replace or compiz --replace. I had a similar problem ones (window manager, no matter which, didn't start with the session). I don't know what fixed it in the end, but I was going through my home-directory and removed every configuration directory I didn't seem to need (like .gnome2 etc.) until it worked again. – Bobby – 2009-10-27T15:44:41.837

Duplicate question is here: http://superuser.com/questions/38717/ubuntu-apt-get-upgrade-undo-or-rollback

– eleven81 – 2009-10-27T15:48:55.353

1Pardon me eleven81, but that's not a duplicate, the seem to be the same, but are completely different. – Bobby – 2009-10-27T16:04:59.270

Answers

0

The same thing happened to me when I upgraded to 9.04. Here is what I did:

Hit Ctrl-Alt-F1 to change to a command line terminal and log in.

Now go to the directory `.config/autostart' in your home directory and create a file named 'nautilus desktop'. Copy the following content into that file:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Version=1.0
Name=No Name
Name[en_US]=Nautilus
Comment=Start Nautilus on login event though this should happen automatically
Exec=nautilus --no-default-window
X-GNOME-Autostart-enabled=true

Now log in to your graphical session again and with a little luck you should see the desktop populated this time.

innaM

Posted 2009-10-27T15:35:40.170

Reputation: 9 208

This worked for my desktop items, but I'll have to do the same thing for each app that's failing to launch (gnome-panel, metacity, etc). Will reinstall in a couple days when Karmic is final. – regan – 2009-10-28T02:29:49.073

Another option is to simply wait for updated versions of the buggy packages. Did you file a bug report for this? – innaM – 2009-10-28T09:27:31.433

By the way, here is an old bug that sounds very similar: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/218070

– innaM – 2009-10-28T11:06:22.620

1

So you could try moving aside .gconf and .gconfd as recommended here: Karmic Koala desktop only shows wallpaper, nothing else

Regan, in a comment you say you'll reinstall when Karmic's final - it is now - did that do the trick, or did you have the same problem?

pbr

Posted 2009-10-27T15:35:40.170

Reputation: 1 285

I did reinstall when Karmic was released. The issue cropped up again, but I believe I've traced it to Google's dev repository (which I had added so I could use the dev builds of Chrome). I've had no problems running Karmic with several other third-party repos installed (and I use the chromium-daily PPA to update my web browser now). – regan – 2009-12-03T14:30:00.977

0

Try running metacity --display=:0 --replace and see what happens? If you have no other way to run it, you can get into a virtual console by pressing Control-Alt-F1. To get back to your desktop, either logout or press Control-Alt-F7.

Michael Mior

Posted 2009-10-27T15:35:40.170

Reputation: 309

0

Boot with the recovery mode option in grub, run the xfix option, then continue with a normal boot. It's possible your graphics drivers got borked in the upgrade, and if you are using desktop compositing this would cause issues similar to what you describe.

TJ L

Posted 2009-10-27T15:35:40.170

Reputation: 1 869

0

Personally, and as much as I like Linux, I never wanted to trust the upgrade of an operating system, whether this is Windows, Linux, Solaris or else. I consider that any OS is too fundamental and has too many dependencies to be upgradable. Unless this is a service pack, or a fix, of course.

Every time I tried an upgrade of Ubuntu, I was having issues with it.

Also, doing a clean install means doing a full backup, defragmenting the hard disk, and also re-installing ONLY the applications that I really need, not all the little things I accumulated since the last major release.

Yes, this is time-consuming. But the sanity of your computer, and the safety of your data files, regardless of the type of content, is more important.

For myself, i go to an extreme, installing Ubuntu on a separate hard disk, until I see that it can do what I need, and I then proceed with the clean install, after doing a complete backup.

That's my view.

jfmessier

Posted 2009-10-27T15:35:40.170

Reputation: 2 530

I agree with you about preferring a clean reinstall, but this wasn't a dist-upgrade. I installed Karmic RC when it came out, and today I simply ran the standard updates command and it did this. – regan – 2009-10-27T20:17:04.783

I see. Have you installed other packages, or added third-party sources of packages ? If not, this should be reported ASAP to the developers of Ubuntu, and it get fixed just in time. – jfmessier – 2009-10-27T20:27:36.757

I've got the AWN testing PPA, a PPA for chromium-browser and the google repos enabled, so the culprit might be harder to nail down. Will try reinstalling and running without third party repos to see if it happens again. Naturally I only run pre-release software on this box cause it's an unimportant home PC. All the important data lives elsewhere, affording me free rein to reinstall as often as I please. – regan – 2009-10-27T21:09:36.907

0

I had a similar problem after upgrading to Karmic. I solved by installing the associated nvidia driver (sudo apt-get install nvidia-glx-185)....I am not sure if you have an nvidia-graphics card, but this worked for me.

William

Posted 2009-10-27T15:35:40.170

Reputation: