alsa command not found

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

Introduction

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

alsa: command not found

or when using sudo you get the following error message

sudo: alsa: command not found

Solutions to alsa: command not found

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

In Ubuntu alsa is provided by alsa-base package.

alsa-base is:

This package contains various configuration files for the ALSA drivers.

For ALSA to work on a system with a given sound card, there must be an ALSA driver for that card in the kernel. Linux 2.6 as shipped in linux-image packages contains ALSA drivers for all supported sound cards in the form of loadable modules. A custom alsa-modules package can be built from the sources in the alsa-source package using the m-a utility (included in the module-assistant package). Please read the README.Debian file for more information about loading and building modules.

ALSA is the Advanced Linux Sound Architecture.

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

sudo apt-get -y install alsa-base

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

You can also use apt command to install alsa-base.

sudo apt -y install alsa-base

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

sudo aptitude install alsa-base

Summary

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