ubuntu-distro-info command not found

In this troubleshooting guide we learn how to fix ubuntu-distro-info command not found error message

Introduction

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

ubuntu-distro-info: command not found

or when using sudo you get the following error message

sudo: ubuntu-distro-info: command not found

Solutions to ubuntu-distro-info: command not found

How To Fix ubuntu-distro-info: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ubuntu-distro-info is provided by distro-info package.

distro-info is:

Information about all releases of Debian and Ubuntu. The distro-info script will give you the codename for e.g. the latest stable release of your distribution. To get information about a specific distribution there are the debian-distro-info and the ubuntu-distro-info scripts.

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

sudo apt-get -y install distro-info

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

You can also use apt command to install distro-info.

sudo apt -y install distro-info

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

sudo aptitude install distro-info

Summary

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