ubuntu8.04升級至10.04遇到問題以及解決方法

利用系統升級,system -> Administration -> update Manager進行系統升級後,無法進入系統。
啓動後進入命令行,無法進入桌面,錯誤信息如下:
init: ureadahead main process (329) terminated with status 5
解決方案參考:http://ubuntuguide.net/howto-fix-ureadahead-problem-after-upgrading-to-ubuntu-10-04
After upgrading to Ubuntu 10.04,some get “init: ureadahead main process (329) terminated with status 4″ error at startup.This can be fixed by directly remove the file:/etc/init/ureadahead.conf.
open terminal from Applications->Accessories menu and type this to do it:
sudo mv /etc/init/ureadahead.conf /etc/init/ureadahead.conf.disable
Something about ureadahead written by Ubuntu developer:
注意,在執行mv操作時,提示無法執行,Read-only file system錯誤信息的話,利用如下的命令行進行解決:
mount -o remount,rw /
重新啓動後,仍然無法進入系統,不過提示錯誤變為:
ureadahead terminated with status 5.
udev_monitor_new_from_netlink: error getting socket: Invalid Argument
mountall:mountall.c:3204 assertion failed in main: udev_monitor = udev_monitor_new_from_netlink(udev,"udev")
init: mountall main process (2532) killed by ABRT signal.
General error mounting filesystems
這是由於menu.lst文件在進行系統更新時沒有更新成最新的。解決方法如下:
參考網址:http://ubuntuforums.org/archive/index.php/t-1485990.html

OK, so this damn problem has put my linux computer out of commission since upgrading to 10.04 several months ago. Believe me, I scoured every forum and tried every other suggested solution out there. Thanks to mcilroy_je for turning me onto what finally turned out to be the fix.

For any other newbies like me, here's a more detailed description of what to do.

If you're getting an error something like:

ureadahead terminated with status 5.
udev_monitor_new_from_netlink: error getting socket: Invalid Argument
mountall:mountall.c:3204 assertion failed in main: udev_monitor = udev_monitor_new_from_netlink(udev,"udev")
init: mountall main process (2532) killed by ABRT signal.
General error mounting filesystems

I suggest rebooting using CTRL-SHIFT-D, and logging into your recovery shell.
Then, try typing at the prompt:
locate menu.lst

If your problem was anything like mine, you'll probably see something like
/boot/grub/menu.lst
/boot/grub/menu.lst~
/usr/share/doc/grub/examples/menu.lst/usr/share/doc/memtest86+/examples/grub-menu.lst
/var/lib/ucf/cache/:var:run:grub:menu.lst

The /boot/grub/menu.lst was my menu.lst from Ubuntu 8.04 (what I was using before the upgrade); I took a look at it (less /boot/grub/menu.lst) and sure enough, I could tell it hadn't been changed by the upgrade. Same old kernels, no changes to my dual boot instructions at the bottom of the file. Some example menu.lst files in /usr/share didn't seem weird. But the one in /var/lib/ did seem pretty odd. So I looked at that (less /var/lib/ucf/cache/:var:run:grub:menu.lst) and sure enough, it looked like a newer version of menu.lst.

So, I wanted to try moving the menu.lst in /var/lib to the boot directory and try rebooting, in case the upgrade to 10.04 had mistakenly put the new menu.lst file in the wrong place. To be safe, I first moved /boot/grub/menu.lst to /boot/grub/menu.lst.save:

mv /boot/grub/menu.lst /boot/grub/menu.lst.save

Then I copied the other menu.lst into the grub directory:

cp /var/lib/ucf/cache/:var:run:grub:menu.lst /boot/grub/menu.lst

Then I rebooted (CTRL-SHIFT-D), and voila, successful upgrade to Ubuntu 10.04. Hope this works for you. If you continue to get errors related to flashplugin-nonfree, you might try following the instructions at the top of http://ubuntuforums.org/showthread.php?t=1469475 first.

Cheers, and hope this helps someone.

posted @ 2012-10-08 14:13  日光之下无新事  阅读(649)  评论(0编辑  收藏  举报