The AWS Command Line Interface (CLI) is a powerful tool that allows users to interact with various AWS services through the command line. However, sometimes errors can occur, such as the error message Could not find executable named 'groff'. In this blog post, we will explore the causes of this issue and provide step-by-step instructions on how to fix it.

Understanding the error message

The AWS CLI depends on groff, which is a tool that can read plain text input files and produce output to a terminal. This error message occurs because the groff is not installed on your system.

Resolving the issue

To resolve this issue, you need to install groff on your system.


sudo apt-get update -y
sudo apt-get install groff -y


brew install groff

Verifying the fix

We can verify the fix by running any of the AWS CLI commands that rely on groff.

For example:

aws s3 help


In this blog post, we have explored the error message “AWS CLI: Could not find executable named ‘groff’” and provided a step-by-step guide to resolve this issue. By installing groff on your system using the appropriate commands for Linux or Mac, you can ensure that the AWS CLI has the necessary dependencies to function properly.