kiwix-serve command not found

In this troubleshooting guide we learn how to fix kiwix-serve command not found error message

Introduction

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

kiwix-serve: command not found

or when using sudo you get the following error message

sudo: kiwix-serve: command not found

Solutions to kiwix-serve: command not found

How To Fix kiwix-serve: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu kiwix-serve is provided by kiwix-tools package.

kiwix-tools is:

kiwix-tools is a collection of various command-line tools used to help users interact with and manage ZIM files. It includes:

  • kiwix-serve is a standalone HTTP server for serving ZIM files over the network.
  • kiwix-manage allows one to manage the content of the Kiwix library (an XML file listing available ZIM files).
  • kiwix-read allows for reading ZIM files from the command-line.
  • kiwix-search allows one to find articles in a ZIM file using fulltext search patterns.

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

sudo apt-get -y install kiwix-tools

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

You can also use apt command to install kiwix-tools.

sudo apt -y install kiwix-tools

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

sudo aptitude install kiwix-tools

Summary

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