oidc-prompt command not found

In this troubleshooting guide we learn how to fix oidc-prompt command not found error message

Introduction

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

oidc-prompt: command not found

or when using sudo you get the following error message

sudo: oidc-prompt: command not found

Solutions to oidc-prompt: command not found

How To Fix oidc-prompt: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu oidc-prompt is provided by oidc-agent-desktop package.

oidc-agent-desktop is:

Desktop integration files for oidc-gen and oidc-agent and for creating the user dialog.

This package adds two ways for supporting the usage of oidc-agent in a graphical environment. The .desktop file to leverage browser integration to support the authorization code flow in oidc-gen. The Xsession file to consistently set the environment variables necessary to for client tools to connect to the oidc-agent daemon.

This package also provides a bash script as an interface to create different dialog windows. It uses yad to create windows.

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

sudo apt-get -y install oidc-agent-desktop

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

You can also use apt command to install oidc-agent-desktop.

sudo apt -y install oidc-agent-desktop

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

sudo aptitude install oidc-agent-desktop

Summary

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