Results 1 to 8 of 8

Thread: sudo update-grub fails

  1. #1
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    sudo update-grub fails

    I have just installed Xubuntu 24.04 LTS "Noble Numbat" - Daily amd64 (20240326) then edited the grub config and run sudo update-grub but it is failing with output
    Code:
    andrew@Xubu26Mar:~$ sudo update-grub
    [sudo] password for andrew: 
    Sourcing file `/etc/default/grub'
    /usr/sbin/grub-mkconfig: 33: /etc/default/grub: want: not found
    I rebooted and tried again but no go!
    Here's the content of /etc/default/grub

    Code:
    andrew@Xubu26Mar:~$ cat /etc/default/grub
    # 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_TIMEOUT_STYLE=menu
    GRUB_TIMEOUT=2
    GRUB_DISTRIBUTOR="Xubuntu26March"`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""
    
    # If your computer has multiple operating systems installed, then you
    # probably want to run os-prober. However, if your computer is a host
    # for guest OSes installed via LVM or raw disk devices, running
    # os-prober can cause damage to those guest OSes as it mounts
    # filesystems to look for things.
    #GRUB_DISABLE_OS_PROBER=false
    
    # 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_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=640x480
    
    # 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"

  2. #2
    Join Date
    May 2014
    Location
    /home
    Beans
    10,943
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: sudo update-grub fails

    What happens if you delete the ` from the end of
    Code:
    GRUB_DISTRIBUTOR="Xubuntu26March"`

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: sudo update-grub fails

    Oh gosh!!!

    I had not even noticed that the ' was left behind after editing the file.
    I'm not on he machine at the moment but will cerainly check tomorrow at some point and report back.

    Thanks for noticing that error; I hope it is the answer!

  4. #4
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: sudo update-grub fails

    I realised after saying I would report back on this that I had already deleted the VM of Xubuntu that had this problem.
    Its successor installed this evening, 28 March from an iso also dated 28 March is working as expected.

    However, when is the "quiet splash" option going to be the default?
    All iso archives of Xubuntu at present don't have that enabled so it shows the scrolling boot text until that /etc/default/grub file is edited and sudo update-grub is run.
    You still end up with the full GUI but it's still unnecessary and a bit annoying!

  5. #5
    Join Date
    Mar 2024
    Beans
    4

    Re: sudo update-grub fails

    Please update the OP title with a [SOLVED] prefix.

    Thanks!

  6. #6
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: sudo update-grub fails

    Please do not attempt to moderate posts or threads on Ububtu Forum; leave it to staff only to do this!

    And no!
    I shall not mark this thread as solved as I still don't know if it has been.

    As I said above, I deleted the VM of that system before I could test it so a solution is not yet possible.
    Having edited that file in another system where the update-grub worked as expected, adding the extra ' after the required " of my DISTRIBUTION edit I did not see the problem repeated so I suspect some other cause yet to be ascertained.

  7. #7
    Join Date
    Mar 2024
    Beans
    4

    Re: sudo update-grub fails

    Fair enough... but I wasn't trying to moderate you...
    I was looking for info about something related to GRUB and your last post reads to me as "oops... now it is working"... a waste of time... and now again.... a waste of my time... take care and have a good one tho...

  8. #8
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: sudo update-grub fails

    "Patience is truly a virtue."

    Do not ask for things to test that, or you may get examples to practice it...

    I do understand. I try to err towards being courteous and empathetic. We all live here together.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •