shortuuid command not found

In this troubleshooting guide we learn how to fix shortuuid command not found error message

Introduction

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

shortuuid: command not found

or when using sudo you get the following error message

sudo: shortuuid: command not found

Solutions to shortuuid: command not found

How To Fix shortuuid: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu shortuuid is provided by python3-shortuuid package.

python3-shortuuid is:

Often, one needs to use non-sequential IDs in places where users will see them, but the IDs must be as concise and easy to use as possible. shortuuid solves this problem by generating uuids using Python’s built-in uuid module and then translating them to base57 using lowercase and uppercase letters and digits, and removing similar-looking characters such as l, 1, I, O and 0.

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

sudo apt-get -y install python3-shortuuid

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

You can also use apt command to install python3-shortuuid.

sudo apt -y install python3-shortuuid

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

sudo aptitude install python3-shortuuid

Summary

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