netconsole-setup command not found

In this troubleshooting guide we learn how to fix netconsole-setup command not found error message

Introduction

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

netconsole-setup: command not found

or when using sudo you get the following error message

sudo: netconsole-setup: command not found

Solutions to netconsole-setup: command not found

How To Fix netconsole-setup: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu netconsole-setup is provided by netconsole package.

netconsole is:

Netconsole is a Linux kernel module that sends all kernel log messages over the network to another computer. It was designed to be as instantaneous as possible, to enable the logging of even the most critical kernel bugs. It works from IRQ contexts as well, and does not enable interrupts while sending packets. Due to these unique needs, only IP networks, UDP packets and Ethernet devices are supported.

This package contains a netconsole service that dynamically configures netconsole by configuring one or more hosts by their names or IP addresses.

Documentation is available in the Linux kernel tree under https://www.kernel.org/doc/Documentation/networking/netconsole.txt

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

sudo apt-get -y install netconsole

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

You can also use apt command to install netconsole.

sudo apt -y install netconsole

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

sudo aptitude install netconsole

Summary

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