Ubuntu升级update-grub报错的解决办法

by Web全栈工程师 on 2012 年 03 月 11 日

Ubuntu升级时,运行~$ sudo update-grub,出现如下的错误:

Generating grub.cfg …
Found linux image: /boot/vmlinuz-2.6.35-32-generic
Found initrd image: /boot/initrd.img-2.6.35-32-generic
Found linux image: /boot/vmlinuz-2.6.32-38-generic
Found initrd image: /boot/initrd.img-2.6.32-38-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
/etc/grub.d/README: 2: All: not found
/etc/grub.d/README: 4: 00_*:: not found
/etc/grub.d/README: 5: 10_*:: not found
/etc/grub.d/README: 6: Syntax error: “(” unexpected

解决办法:

chmod a-x /etc/grub.d/README

重新运行 ~$ sudo update-grub的结果:

Generating grub.cfg …
Found linux image: /boot/vmlinuz-2.6.35-32-generic
Found initrd image: /boot/initrd.img-2.6.35-32-generic
Found linux image: /boot/vmlinuz-2.6.32-38-generic
Found initrd image: /boot/initrd.img-2.6.32-38-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
done

Comments on this entry are closed.

Previous post:

Next post: