gnudoit.emacs command not found

In this troubleshooting guide we learn how to fix gnudoit.emacs command not found error message

Introduction

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

gnudoit.emacs: command not found

or when using sudo you get the following error message

sudo: gnudoit.emacs: command not found

Solutions to gnudoit.emacs: command not found

How To Fix gnudoit.emacs: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gnudoit.emacs is provided by gnuserv package.

gnuserv is:

gnuserv allows you to attach to an already running Emacs. This allows external programs to make use of Emacs’ editing capabilities. It is similar to GNU Emacs’ emacsclient, but has a slightly different feature set.

You do not need this package if you use XEmacs; it already includes gnuserv and gnuclient. If you want to use gnuserv with both GNU Emacs and XEmacs, you will only be able to use the alternative /usr/bin/gnuclient with one flavor of emacs; you will have to use either gnuclient.xemacs or gnuclient.emacs for the other flavor.

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

sudo apt-get -y install gnuserv

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

You can also use apt command to install gnuserv.

sudo apt -y install gnuserv

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

sudo aptitude install gnuserv

Summary

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