dh_vim-addon command not found

In this troubleshooting guide we learn how to fix dh_vim-addon command not found error message

Introduction

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

dh_vim-addon: command not found

or when using sudo you get the following error message

sudo: dh_vim-addon: command not found

Solutions to dh_vim-addon: command not found

How To Fix dh_vim-addon: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dh_vim-addon is provided by dh-vim-addon package.

dh-vim-addon is:

This package provides a helper for packaging Vim/Neovim addons in a standard way, compatible with Vim’s “package” feature. dh_vim-addon sets links to the respective “packpath” for the supported editors as well as building help tags for the addon’s documentation, if any exists.

A debhelper sequencer, vim_addon, is also provided for use with dh rules files.

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

sudo apt-get -y install dh-vim-addon

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

You can also use apt command to install dh-vim-addon.

sudo apt -y install dh-vim-addon

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

sudo aptitude install dh-vim-addon

Summary

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