negroni command not found

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

Introduction

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

negroni: command not found

or when using sudo you get the following error message

sudo: negroni: command not found

Solutions to negroni: command not found

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

In Ubuntu negroni is provided by golang-github-sebest-xff package.

golang-github-sebest-xff is:

Package xff is a net/http middleware/handler to parse Forwarded HTTP Extension in Golang.

Parse function parses the value of the X-Forwarded-For Header and returns the IP address.

Options is a configuration container, provided by this package, to setup the XFF middleware.

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

sudo apt-get -y install golang-github-sebest-xff

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

You can also use apt command to install golang-github-sebest-xff.

sudo apt -y install golang-github-sebest-xff

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

sudo aptitude install golang-github-sebest-xff

Summary

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