automount command not found

In this troubleshooting guide we learn how to fix automount command not found error message

Introduction

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

automount: command not found

or when using sudo you get the following error message

sudo: automount: command not found

Solutions to automount: command not found

How To Fix automount: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu automount is provided by autofs package.

autofs is:

Autofs controls the operation of the automount daemons. The automount daemons automatically mount filesystems when they are used and unmount them after a period of inactivity. This is done based on a set of pre-configured maps.

The kernel automounter implements an almost complete SunOS style automounter under Linux. A recent version of the kernel autofs4 module (builtin or separate) is required.

This is the autofs daemon.

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

sudo apt-get -y install autofs

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

You can also use apt command to install autofs.

sudo apt -y install autofs

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

sudo aptitude install autofs

Summary

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