Tuesday, June 22, 2010

Ubuntu 10.04 hang after login

For some unknown reason(s), my newly install Ubuntu 10.04 went panic last Friday. Simply put, the ubuntu 10.04 hang after entering login information. I spend lost of hours on finding the problem. However, I still cannot see why it happens. It turns out that some package contains bugs and cause the o/s crashed after login.

I have tried the following means and none of them works:
- sudo apt-get install --reinstall ubuntu-desktop
- Update every package installed in the system
- Use the default xorg.conf setting (Without Xinerma)
- ... rm -rf home directory ...

Anyway, after keep trial and errors, here explains how I solve the problem.

1. Reboot to Recovery Model
It's a little tricky in Ubuntu 10.04 because by default the grub2 won't show up a start menu for you. The "default" in Ubuntu 10.04 always try to select the default booting item after power on the system. In addition, there's no more /boot/grub/menu.lst in ubuntu 10.04.

Here are solutions:
(1) Comment out "#GRUB_HIDDEN_TIMEOUT=0" through editing /etc/default/grub
(2) Run update-grub (or update-grub2 ?)
(3) Reboot and you will see the grub menu. Select the recovery mode and you are done.

2. Installed the following two package
sudo aptitude install libpam-gnome-keyring=2.92.92.is.2.30.0-0ubuntu3
sudo aptitude install gnome-keyring=2.92.92.is.2.30.0-0ubuntu3


If it works for you as well, please simply leave a comment here :)

3 comments:

  1. hi ,
    i have tried as you have mentioned, but it says
    "0 installed 0 upgraded 0 updated" and etc .

    when I reboot, I face the same problem that the desktop hangs after logging in.

    please help .

    ReplyDelete
  2. Have you try "sudo apt-get update" before running upgrade command?

    ReplyDelete
  3. You are awesome! It worked!! Thanks a ton! I'm bookmarking this page!

    ReplyDelete