update-otags command not found

In this troubleshooting guide we learn how to fix update-otags command not found error message

Introduction

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

update-otags: command not found

or when using sudo you get the following error message

sudo: update-otags: command not found

Solutions to update-otags: command not found

How To Fix update-otags: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu update-otags is provided by otags package.

otags is:

Otags generates “tags” files for emacs and vi/vim to give these editors the ability to directly jump to function and value definitions. Otags is based on Camlp4. It can load all Camlp4 syntax extensions and can therefore parse all sources that Camlp4 can parse (including standard and revised syntax).

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

sudo apt-get -y install otags

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

You can also use apt command to install otags.

sudo apt -y install otags

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

sudo aptitude install otags

Summary

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