grub-bios-setup command not found

In this troubleshooting guide we learn how to fix grub-bios-setup command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

grub-bios-setup: command not found

or when using sudo you get the following error message

sudo: grub-bios-setup: command not found

Solutions to grub-bios-setup: command not found

How To Fix grub-bios-setup: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu grub-bios-setup is provided by grub-pc package.

grub-pc is:

GRUB is a portable, powerful bootloader. This version of GRUB is based on a cleaner design than its predecessors, and provides the following new features:

  • Scripting in grub.cfg using BASH-like syntax.
  • Support for modern partition maps such as GPT.
  • Modular generation of grub.cfg via update-grub. Packages providing GRUB add-ons can plug in their own script rules and trigger updates by invoking update-grub.
  • VESA-based graphical mode with background image support and complete 24-bit color set.
  • Support for extended charsets. Users can write UTF-8 text to their menu entries.

This is a dependency package for a version of GRUB that has been built for use with the traditional PC/BIOS architecture. Installing this package indicates that this version of GRUB should be the active boot loader.

To fix this problem, we can install more using the command below.

sudo apt-get -y install grub-pc

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install grub-pc.

sudo apt -y install grub-pc

Or if you have aptitude installed you can use the following command.

sudo aptitude install grub-pc

Summary

In this tutorial we learn how to fix grub-bios-setup command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.