update-grub does'nt go on

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dstc
Level 1
Level 1
Posts: 21
Joined: Fri Aug 02, 2013 4:00 pm

update-grub does'nt go on

Post by dstc »

Good evening

i edit /etc/default/grub and i comment quite splash
GRUB_CMDLINE_LINUX_DEFAULT= # ‘’quite splash’’ commenté le
i enter update-grub.

With linux mint lmde2 betsy mate all is alright a message is displayed saying
/boot/vmlinuz-3,16,0-4-amd64, /boot/initrd… et memtest8+ … ont été trouvés…
etc...
and the os starts not quitely and without splash

but with buntu 14,4 and with linuxmint 18,3 sylvia i get following message :
/usr/sbin/grub-mkconfig : 1 : /etc/default/grub : # : not found
(not with a small n)
the os start quitely and with that stupid splash

why does ubuntu and linuxmint fail to upgrade grub ?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: update-grub does'nt go on

Post by Cosmo. »

Place the # sign at the very left of the line. which you want to comment out.
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: update-grub does'nt go on

Post by all41 »

also you must elevate to root privilege.
sudo update-grub
Everything in life was difficult before it became easy.
dstc
Level 1
Level 1
Posts: 21
Joined: Fri Aug 02, 2013 4:00 pm

Re: update-grub does'nt go on

Post by dstc »

good afternoon
thanks a lot for your replays.
it is of cause with sudo, if not it will warning and not start.
i tried with # in front but it doesn't help.
with mint lmde and earlier distribution of linux mint or ubuntu you are allowed to put # after the equal sign and it worked.
~$ less /etc/default/grub
......
#GRUB_CMDLINE_LINUX_DEFAULT= "quiet splash" commenté le 20180316
.....
~ $ sudo update-grub
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: #: not found
~$
i guess something goes wrong with update-grub with ubuntu and similar upgraded version.
i tried to look in /usr/sbin/grub-mkconfig but it is hard for me to understand how it works.
philippe
kukamuumuka

Re: update-grub does'nt go on

Post by kukamuumuka »

dstc wrote: Fri Mar 16, 2018 1:33 pm
~ $ sudo update-grub
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: #: not found

Code: Select all

locate  /etc/default/grub

Code: Select all

apt show grub-pc
Locked

Return to “Installation & Boot”