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
原创文章,转载请注明:转载自Web开发笔记 | Ubuntu升级update-grub报错的解决办法
本文链接地址:https://www.magentonotes.com/ubuntu-update-grub-errors.html
Comments on this entry are closed.