dh_xul-ext command not found

In this troubleshooting guide we learn how to fix dh_xul-ext command not found error message

Introduction

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

dh_xul-ext: command not found

or when using sudo you get the following error message

sudo: dh_xul-ext: command not found

Solutions to dh_xul-ext: command not found

How To Fix dh_xul-ext: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dh_xul-ext is provided by mozilla-devscripts package.

mozilla-devscripts is:

This package contains mozilla-devscripts, a collection of scripts based on Makefile inheritance meant for packaging Firefox’s and Icedove’s extensions. These tools will help maintainers to build link and install all XUL extensions properly following the policies outlined by the Debian Mozilla Extension Maintainers team.

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

sudo apt-get -y install mozilla-devscripts

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

You can also use apt command to install mozilla-devscripts.

sudo apt -y install mozilla-devscripts

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

sudo aptitude install mozilla-devscripts

Summary

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