I was using Ubuntu 10.04 and then I updated it to 10.10. But 10.10 GNOME was crashing very frequently, so I tried to do distribution update. When the downloading was in progress, system crashes many times and so update also crashes. And finally I got a prompt for partial update, and I go for that. It gets completed and I restarted my system. It hangs after it.
I also try to boot the system in recovery mode but that fails. Then I tried to boot the system using bootable Ubuntu pen drive to check the boot logs. What I found in that log is:
init: udevtrigger mainprocess (1283) terminated with status 1
init: udevtrigger post-stop porcess (1283) terminated with status 1
init: udevmonitor main process (1282) killed by TERM signal.
init: udevtrigger post-stop porcess (1283) terminated with status 1
init: udevmonitor main process (1282) killed by TERM signal.
Then I start searching the fix on google. After around 2 days, I found a post in which some steps are mentioned to recover the system. And I followed those steps. But at one stage I was not able to move onto the next step. After some time an idea came into my mind and I tried it. It works. So in this blog I want to share that additional steps after which my system is up again.
The recovery steps has been taken from the following site post #2:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/433943
Recovery steps are :
1. - Download/grab a live cd.
2. - Start live cd and when it loads the desktop open a gnome-terminal.
3. - Create this dirs:
sudo mkdir /media/karmic
sudo mkdir /media/karmic/proc /media/karmic/dev /media/karmic/etc
4. - Mount your linux partition (for me sda6):
sudo mount /dev/sda6 /media/karmic
5. - Bind the dirs:
sudo mount -o bind /proc /media/karmic/proc
sudo mount -o bind /dev /media/karmic/dev/
sudo mount -o bind /dev/pts /media/
6. - Copy this file
sudo cp /etc/resolv.conf /media/
7. - Update your real linux partition with chroot:
sudo chroot /media/karmic apt-get update
May be update will fail mentioning a message:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
So instead of running the command:
simply this dpkg --configure -a
we need to run it like this:
chroot /media/karmic dpkg --configure -a
This is the only difference from the reference.
8. - Upgrade your real linux partition with chroot:
sudo chroot /media/karmic apt-get dist-upgrade
9. - If you have some broken package:
sudo chroot /media/karmic apt-get -f install
10. - Reboot and Issue fixed for me.
You can use any text instead of karmic. Like maverick, lucid.