what-repo command not found

In this troubleshooting guide we learn how to fix what-repo command not found error message

Introduction

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

what-repo: command not found

or when using sudo you get the following error message

sudo: what-repo: command not found

Solutions to what-repo: command not found

How To Fix what-repo: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu what-repo is provided by what-utils package.

what-utils is:

  • what-provides - what package provides some file or executable
  • what-repo - what repository provides some package
  • what-source - what source package provides some binary package

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

sudo apt-get -y install what-utils

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

You can also use apt command to install what-utils.

sudo apt -y install what-utils

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

sudo aptitude install what-utils

Summary

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