SparkyLinux Forums

Software & hardware support => Newbie questions => Topic started by: carlo on July 07, 2015, 06:11:15 PM

Title: grub fails to update
Post by: carlo on July 07, 2015, 06:11:15 PM
hi all
i've noticed it's some kernel versions that grub isn't upgrading properly......
now i've removed grub customizer and tried to purge and resintall grub, but i always get the very same message:


......
Trovata immagine initrd: /boot/initrd.img-3.16.0-4-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
Trovato Linux Mint 17.1 Rebecca (17.1) su /dev/sda5
errore: syntax error.
errore: Incorrect command.
errore: syntax error.
errore: Incorrect command.
errore: syntax error.
Errore di sintassi alla riga 189
Errori di sintassi sono stati rilevati nel file di configurazione
di GRUB generato. Assicurarsi che non vi siano errori in
/etc/default/grub e /etc/grub.d/* o segnalare un bug allegando
il file /boot/grub/grub.cfg.new.


actually the file it tells me to attach is here: http://www.federproprietaabruzzo.it/Carlo/grub.cfg.new:
Title: Re: grub fails to update
Post by: pavroo on July 07, 2015, 09:25:12 PM
I don't know what installing and removing grub-customizer changed in grub config files, but it could.
I suggest reinstalling all installed grub files (should be 4 packs) and update grub manually after to check is still somenthing wrong.
Title: Re: grub fails to update
Post by: carlo on July 08, 2015, 12:00:47 PM
i guess i've already done what you suggested, but the outcome would always be the same: check all of the /grub.d/ config files or report for bug

what if i try to install grub 1?
Title: Re: grub fails to update
Post by: pavroo on July 08, 2015, 01:47:43 PM
I don't think it's a good idea.

Try: edit as root the file: /etc/default/grub and past inside, on the end of the file:
GRUB_DISABLE_SUBMENU=y
Then:
sudo update-grub

You have 8 Liquorix and 2 Debians kernels installed.
Do you need all of them?
Title: Re: grub fails to update
Post by: carlo on July 08, 2015, 07:23:44 PM
Quote
Try: edit as root the file: /etc/default/grub and past inside, on the end of the file:
Code: [Select]

GRUB_DISABLE_SUBMENU=y

Then:
Code: [Select]

sudo update-grub


alas it did the very same thing...


QuoteYou have 8 Liquorix and 2 Debians kernels installed.
Do you need all of them?
isn't it "the more the better"?
Title: Re: grub fails to update
Post by: carlo on July 09, 2015, 11:42:42 AM
i've made an apt-get autoremove
it deleted some liquorix and maybe something from nvidia from what i could tell, then it sort of made update-grub many times, and i've noticed that this kind of messages
Errore di sintassi alla riga 567
appeared:
it says on line 567 there's a syntax error:
i've checked through /etc/defaults/grub and /etc/grub.d/* but no single file has so many lines
the only file to have enough lines is the /boot/grub/grub.cfg.new, which i'm going to upload again, just in case it change: http://www.federproprietaabruzzo.it/Carlo/grub.cfg.new2
Title: Re: grub fails to update
Post by: pavroo on July 09, 2015, 01:12:39 PM
The line shows that it's about function gfxmode.

Looks like the file  /boot/grub/grub.cfg.new has been made by grub-customizer before.
Can you move the file (as root) out of the /boot/grub directory and update grub again?
Title: Re: grub fails to update
Post by: carlo on July 09, 2015, 01:21:50 PM
i've move grub.cfg* to /tmp but the update grub command gives the very same output....

what is updaate-grub2 about?
Title: Re: grub fails to update
Post by: pavroo on July 09, 2015, 01:35:11 PM
update-grub2 is a symlink to update-grub only so they run the same command
Title: Re: grub fails to update
Post by: carlo on July 09, 2015, 01:48:24 PM
Actually grub totally failed to boot
Not sure whether to try to recover the files ive moved ir try a live grub install...
Title: Re: grub fails to update
Post by: pavroo on July 09, 2015, 02:56:56 PM
Quotei've move grub.cfg*
have you moved all grub.cfg* files out?
Title: Re: grub fails to update
Post by: carlo on July 09, 2015, 03:01:23 PM
Yup
Title: Re: grub fails to update
Post by: pavroo on July 09, 2015, 04:13:02 PM
That's why it's not useable now.
I said to move /boot/grub/grub.cfg.new file only.
Title: Re: grub fails to update
Post by: carlo on July 09, 2015, 04:29:19 PM
hope i can find them when i'm back in office.....



just in case:
if i format is there any way to tell debian "pliiiiis install all the packages i had before i made anything wrong" in a short easy way?
Title: Re: grub fails to update
Post by: carlo on July 09, 2015, 07:15:50 PM
i took the third path:

i've booted from sparky xfce, launched grub-repair:
it made me purge everything, then it reinstalled grub
with the latest debian and liquorix kernel besides linux mint
and boot works now
thank you