Untitled conversation
- User
[~/Downloads/grub/minimal-grub-theme-master] > make install INFO: Saving config as /etc/default/grub.backup INFO: Copying 'minimal' to '/boot/grub/themes' INFO: Setting 'GRUB_GFXMODE' to '1920x1080,auto' INFO: Setting 'GRUB_THEME' to '/boot/grub/themes/minimal/theme.txt' INFO: Updating grub sudo: update-grub: command not found make: *** [Makefile:33: install] Error 1
- Assistant
The error message indicates that the
update-grubcommand is not found, which typically means that it's either not installed or not in your system's PATH. Here are some steps to resolve the issue:-
Check if GRUB is installed: Ensure that the GRUB package is installed on your system. You can do this by running:
dpkg -l | grep grubIf GRUB is not listed, you may need to install it. For Debian-based distributions, you can use:
-
- User
[~/Downloads/grub/minimal-grub-theme-master] > make install INFO: Saving config as /etc/default/grub.backup INFO: Copying 'minimal' to '/boot/grub/themes' INFO: Setting 'GRUB_GFXMODE' to '1920x1080,auto' INFO: Setting 'GRUB_THEME' to '/boot/grub/themes/minimal/theme.txt' INFO: Updating grub sudo: update-grub: command not found make: *** [Makefile:33: install] Error 1
on archlinux
- Assistant
On Arch Linux, the command to update GRUB may be a little different. The
update-grubcommand is typically not available; instead, you would usegrub-mkconfig. Here are the steps you can take to fix the issue:-
Install GRUB (if not already installed): Ensure that GRUB is installed:
sudo pacman -S grub -
Modify the Makefile: If the installation script is using
update-grub, you can modify theMakefileof your theme to usegrub-mkconfiginstead. Open theMakefilewith a text editor and look for the line that callsupdate-grub. Replace it with:sudo grub-mkconfig -o /boot/grub/grub.cfg -
: After modifying the , re-run the command:
-
- User
nvim command to replace update-grub to grub-mkconfig
- Assistant
To replace the
update-grubcommand withgrub-mkconfigin a file usingnvim, you can use the following steps:-
Open the Makefile with
nvim:nvim Makefile -
Enter Normal Mode (if you're not already there) by pressing
Esc. -
Search and replace: You can use the following command to search for
update-gruband replace it withgrub-mkconfig::%s/update-grub/grub-mkconfig/gHere’s a breakdown of the command:
:%smeans "search and replace in the entire file."update-grubis the text you want to find.grub-mkconfigis the text you want to replace it with.- The
gat the end means "replace all occurrences in each line."
-
Save and exit: After you've made the replacement, you can save the file and exit by typing:
-