keyring command not found

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

Introduction

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

keyring: command not found

or when using sudo you get the following error message

sudo: keyring: command not found

Solutions to keyring: command not found

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

In Ubuntu keyring is provided by python3-keyring package.

python3-keyring is:

The Python keyring library provides an easy way to access the system keyring service (e.g Gnome-Keyring, KWallet) from Python. It can be used in any application that needs safe password storage.

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

sudo apt-get -y install python3-keyring

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

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

sudo apt -y install python3-keyring

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

sudo aptitude install python3-keyring

Summary

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