emacs-lucid command not found

In this troubleshooting guide we learn how to fix emacs-lucid command not found error message

Introduction

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

emacs-lucid: command not found

or when using sudo you get the following error message

sudo: emacs-lucid: command not found

Solutions to emacs-lucid: command not found

How To Fix emacs-lucid: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu emacs-lucid is provided by emacs-lucid package.

emacs-lucid is:

GNU Emacs is the extensible self-documenting text editor. This package contains a version of Emacs with support for a graphical user interface based on the Lucid toolkit (instead of the GTK+ interface provided by the emacs-gtk package). Until some known GTK+ problems are fixed, this version may help avoid crashing Emacs during an emacsclient disconnect. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=567934 and https://bugzilla.gnome.org/show_bug.cgi?id=85715 for more information.

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

sudo apt-get -y install emacs-lucid

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

You can also use apt command to install emacs-lucid.

sudo apt -y install emacs-lucid

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

sudo aptitude install emacs-lucid

Summary

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