انجمن‌های فارسی اوبونتو

کمک و پشتیبانی => انجمن عمومی => نویسنده: nimaR در 05 اردیبهشت 1394، 08:59 ق‌ظ

عنوان: syntax error (حل شد)
ارسال شده توسط: nimaR در 05 اردیبهشت 1394، 08:59 ق‌ظ
linux@linux:~$ sudo update-grub
[sudo] password for linux:
Generating grub configuration file ...
using custom appearance settings
Found background image: /home/linux/Pictures/pic/z.grub.png
Found Windows 7 (loader) on /dev/sda3
Found linux image: /boot/vmlinuz-3.13.0-51-generic
Found initrd image: /boot/initrd.img-3.13.0-51-generic
Found linux image: /boot/vmlinuz-3.13.0-48-generic
Found initrd image: /boot/initrd.img-3.13.0-48-generic
Found linux image: /boot/vmlinuz-3.13.0-46-generic
Found initrd image: /boot/initrd.img-3.13.0-46-generic
Found Windows 7 (loader) on /dev/sda3
Found linux image: /boot/vmlinuz-3.13.0-51-generic
Found initrd image: /boot/initrd.img-3.13.0-51-generic
Found linux image: /boot/vmlinuz-3.13.0-48-generic
Found initrd image: /boot/initrd.img-3.13.0-48-generic
Found linux image: /boot/vmlinuz-3.13.0-46-generic
Found initrd image: /boot/initrd.img-3.13.0-46-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
error: syntax error.
error: Incorrect command.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 236
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done

لطفا بفرمایید چطور می‌تونم این ارورها رو درست کنم
سرچ کردم و از سوپرگراب۲ هم استفاده کردم درست نشد
عنوان: پاسخ : syntax error
ارسال شده توسط: { AliReaza } در 05 اردیبهشت 1394، 11:33 ق‌ظ
شما زحمت بکش و fileی که ویرایش کردی را اینجا قرار بده تا بشه راهنمایی کرد.
عنوان: پاسخ : syntax error
ارسال شده توسط: majidkamali1370 در 05 اردیبهشت 1394، 12:21 ب‌ظ
فایل etc/default/grub/ رو ویرایش کردی؟
محتویاتش رو اینجا بذار لطفا
عنوان: پاسخ : syntax error
ارسال شده توسط: nimaR در 05 اردیبهشت 1394، 05:52 ب‌ظ
خدمت شما

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="0"
#GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="saved"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

export GRUB_MENU_PICTURE="/home/linux/Pictures/pic/z.grub.png"
export GRUB_COLOR_NORMAL="white/black"
export GRUB_COLOR_HIGHLIGHT="yellow/black"
#GRUB_THEME="/boot/grub/themes/message/theme.txt"
GRUB_SAVEDEFAULT="false"
عنوان: پاسخ : syntax error
ارسال شده توسط: majidkamali1370 در 05 اردیبهشت 1394، 10:29 ب‌ظ
نقل‌قول
Syntax error at line 236
این که خط ۲۳۶ نداره :)
از محتویات boot/grub/grub.cfg/ خطوط ۲۳۰ تا ۲۴۰ رو بذار لطفا :)
عنوان: پاسخ : syntax error
ارسال شده توسط: nimaR در 06 اردیبهشت 1394، 08:01 ق‌ظ
نقل‌قول
Syntax error at line 236
این که خط ۲۳۶ نداره :)
از محتویات boot/grub/grub.cfg/ خطوط ۲۳۰ تا ۲۴۰ رو بذار لطفا :)
خط ۲۳۰ تا ۲۴۰
}
### END /etc/grub.d/31_linux_proxy ###

### BEGIN /etc/grub.d/33_linux_xen ###

### END /etc/grub.d/33_linux_xen ###

### BEGIN /etc/grub.d/34_uefi-firmware ###
### END /etc/grub.d/34_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
عنوان: پاسخ : syntax error (حل شد)
ارسال شده توسط: nimaR در 06 اردیبهشت 1394، 09:06 ق‌ظ
به لطف Boot-Repair درست شد

linux@linux:~$ sudo update-grub
[sudo] password for linux:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-51-generic
Found initrd image: /boot/initrd.img-3.13.0-51-generic
Found Windows 7 (loader) on /dev/sda3
done
linux@linux:~$

https://help.ubuntu.com/community/Boot-Repair (https://help.ubuntu.com/community/Boot-Repair)
عنوان: پاسخ : syntax error (حل شد)
ارسال شده توسط: nimaR در 06 اردیبهشت 1394، 09:09 ق‌ظ
Boot-Repair رو نصب کردم

sudo add-apt-repository ppa:yannubuntu/boot-repair

sudo apt-get update

sudo apt-get install -y boot-repair && boot-repair

مرحله به مرحله می‌گفت چه کاری کنم