j4-dmenu-desktop command not found

In this troubleshooting guide we learn how to fix j4-dmenu-desktop command not found error message

Introduction

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

j4-dmenu-desktop: command not found

or when using sudo you get the following error message

sudo: j4-dmenu-desktop: command not found

Solutions to j4-dmenu-desktop: command not found

How To Fix j4-dmenu-desktop: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu j4-dmenu-desktop is provided by j4-dmenu-desktop package.

j4-dmenu-desktop is:

j4-dmenu-desktop is a replacement for i3-dmenu-desktop. It’s purpose is to find .desktop files and offer you a menu to start an application using dmenu.

It is much faster than the default i3-dmenu-desktop method to obtain a list of programs parsed from .desktop files.

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

sudo apt-get -y install j4-dmenu-desktop

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

You can also use apt command to install j4-dmenu-desktop.

sudo apt -y install j4-dmenu-desktop

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

sudo aptitude install j4-dmenu-desktop

Summary

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