update-crypto-policies command not found

In this troubleshooting guide we learn how to fix update-crypto-policies command not found error message

Introduction

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

update-crypto-policies: command not found

or when using sudo you get the following error message

sudo: update-crypto-policies: command not found

Solutions to update-crypto-policies: command not found

How To Fix update-crypto-policies: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu update-crypto-policies is provided by crypto-policies package.

crypto-policies is:

“crypto-policies” is a utility to unify the crypto policies used by different applications and libraries. The current implementations works by setting the desired policy in /etc/crypto-policies/config. After this file is changed the script ‘update-crypto-policies’ should be executed, and the new policies will activate.

The supported back ends are:

  • GnuTLS
  • OpenSSL
  • NSS
  • BIND9
  • libkrb5
  • OpenSSH
  • Java (OpenJDK)
  • libssh
  • libreswan

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

sudo apt-get -y install crypto-policies

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

You can also use apt command to install crypto-policies.

sudo apt -y install crypto-policies

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

sudo aptitude install crypto-policies

Summary

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