nghttpd command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
nghttpd: command not found
or when using sudo you get the following error message
sudo: nghttpd: command not found
Solutions to nghttpd: command not found
How To Fix nghttpd: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu nghttpd is provided by nghttp2-server package.
nghttp2-server is:
This is a standalone server implementing the HTTP/2 protocol with HTTP/1.1 fallback for clients that do not support it. It can be used to serve files from a local directory.
To fix this problem, we can install more using the command below.
sudo apt-get -y install nghttp2-server
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install nghttp2-server.
sudo apt -y install nghttp2-server
Or if you have aptitude installed you can use the following command.
sudo aptitude install nghttp2-server
Summary
In this tutorial we learn how to fix nghttpd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.