clean-crl command not found

In this troubleshooting guide we learn how to fix clean-crl command not found error message

Introduction

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

clean-crl: command not found

or when using sudo you get the following error message

sudo: clean-crl: command not found

Solutions to clean-crl: command not found

How To Fix clean-crl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu clean-crl is provided by fetch-crl package.

fetch-crl is:

This tool and associated timer (systemd) or cron (init.d) entry ensure that Certificate Revocation Lists (CRLs) are periodically retrieved from the web sites of the respective Certification Authorities.

The fetch-crl tool finds all *.crl_url files in the configured CRL directory, downloads the CRLs listed in those files and saves them in the same directory. The default configuration uses /etc/grid-security/certificates as the CRL directory.

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

sudo apt-get -y install fetch-crl

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

You can also use apt command to install fetch-crl.

sudo apt -y install fetch-crl

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

sudo aptitude install fetch-crl

Summary

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