refind-mkdefault command not found

In this troubleshooting guide we learn how to fix refind-mkdefault command not found error message

Introduction

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

refind-mkdefault: command not found

or when using sudo you get the following error message

sudo: refind-mkdefault: command not found

Solutions to refind-mkdefault: command not found

How To Fix refind-mkdefault: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu refind-mkdefault is provided by refind package.

refind is:

A graphical boot manager for EFI- and UEFI-based computers, such as all Intel-based Macs and recent (most 2011 and later) PCs. rEFInd presents a boot menu showing all the EFI boot loaders on the EFI-accessible partitions, and optionally BIOS-bootable partitions on Macs and BIOS boot entries on UEFI PCs with CSMs. EFI-compatible OSes, including Linux, provide boot loaders that rEFInd can detect and launch. rEFInd can launch Linux EFI boot loaders such as ELILO, GRUB Legacy, GRUB 2, and 3.3.0 and later kernels with EFI stub support. EFI filesystem drivers for ext2/3/4fs, ReiserFS, Btrfs, NTFS, HFS+, and ISO-9660 enable rEFInd to read boot loaders from these filesystems, too. rEFInd’s ability to detect boot loaders at runtime makes it very easy to use, particularly when paired with Linux kernels that provide EFI stub support.

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

sudo apt-get -y install refind

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

You can also use apt command to install refind.

sudo apt -y install refind

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

sudo aptitude install refind

Summary

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