nghttp command not found

In this troubleshooting guide we learn how to fix nghttp command not found error message

Introduction

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

nghttp: command not found

or when using sudo you get the following error message

sudo: nghttp: command not found

Solutions to nghttp: command not found

How To Fix nghttp: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nghttp is provided by nghttp2-client package.

nghttp2-client is:

This is a command line client implementing the HTTP/2 protocol. It gives access to many low-level and advanced aspects of the protocol and therefore is useful for debugging.

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

sudo apt-get -y install nghttp2-client

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

You can also use apt command to install nghttp2-client.

sudo apt -y install nghttp2-client

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

sudo aptitude install nghttp2-client

Summary

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