linux-boot-prober command not found

In this troubleshooting guide we learn how to fix linux-boot-prober command not found error message

Introduction

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

linux-boot-prober: command not found

or when using sudo you get the following error message

sudo: linux-boot-prober: command not found

Solutions to linux-boot-prober: command not found

How To Fix linux-boot-prober: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu linux-boot-prober is provided by os-prober package.

os-prober is:

This package detects other OSes available on a system and outputs the results in a generic machine-readable format.

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

sudo apt-get -y install os-prober

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

You can also use apt command to install os-prober.

sudo apt -y install os-prober

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

sudo aptitude install os-prober

Summary

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