oidc-agent-service command not found

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

Introduction

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

oidc-agent-service: command not found

or when using sudo you get the following error message

sudo: oidc-agent-service: command not found

Solutions to oidc-agent-service: command not found

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

In Ubuntu oidc-agent-service is provided by oidc-agent-cli package.

oidc-agent-cli is:

oidc-agent is a set of tools to manage OpenID Connect tokens and make them easily usable from the command line. These tools follow ssh-agent design, so OIDC tokens can be handled in a similar way as ssh keys. The agent stores multiple configurations and their associated refresh tokens securely. This tool consists of five programs:

  • oidc-agent that handles communication with the OIDC provider
  • oidc-gen that generates config files
  • oidc-add that loads (and unloads) configuration into the agent
  • oidc-token that can be used to get access token on the command line
  • oidc-keychain that re-uses oidc-agent across logins

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

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

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

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

sudo apt -y install oidc-agent-cli

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

sudo aptitude install oidc-agent-cli

Summary

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