sure command not found

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

Introduction

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

sure: command not found

or when using sudo you get the following error message

sudo: sure: command not found

Solutions to sure: command not found

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

In Ubuntu sure is provided by python3-sure package.

python3-sure is:

Sure is a library for Python that leverages a DSL for writing assertions. In CPython it monkey-patches the object type, adding some methods and properties purely for test purposes. Any Python code written after “import sure” gains testing superpowers.

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

sudo apt-get -y install python3-sure

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

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

sudo apt -y install python3-sure

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

sudo aptitude install python3-sure

Summary

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