klogd command not found

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

Introduction

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

klogd: command not found

or when using sudo you get the following error message

sudo: klogd: command not found

Solutions to klogd: command not found

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

In Ubuntu klogd is provided by busybox-syslogd package.

busybox-syslogd is:

The system log daemon is responsible for providing logging of messages received from programs and facilities on the local host as well as from remote hosts.

The kernel log daemon listens to kernel message sources and is responsible for prioritizing and processing operating system messages.

The busybox implementation of the syslogd is particular useful on embedded, diskless (netboot) or flash disk based systems because it can use a fixed size ring buffer for logging instead of saving logs to the disk or sending it to remote logging servers. The ring buffer can be read using the (also busybox based) command logread.

This package provides the glue to the busybox syslogd and klogd to be used in the system by providing the appropriate symbolic links and scripts.

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

sudo apt-get -y install busybox-syslogd

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

You can also use apt command to install busybox-syslogd.

sudo apt -y install busybox-syslogd

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

sudo aptitude install busybox-syslogd

Summary

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