flac command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
flac: command not found
or when using sudo you get the following error message
sudo: flac: command not found
Solutions to flac: command not found
How To Fix flac: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu flac is provided by flac package.
flac is:
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is similar to MP3, but lossless. The FLAC project consists of:
- The stream format
- libFLAC, which implements a reference encoder, stream decoder, and file decoder
- flac, which is a command-line wrapper around libFLAC to encode and decode .flac files
- Input plugins for various music players (Winamp, XMMS, and more in the works)
This package contains the command-line tools flac (used for encoding and decoding FLACs) and metaflac (used for manipulating FLAC metadata.)
To fix this problem, we can install more using the command below.
sudo apt-get -y install flac
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install flac.
sudo apt -y install flac
Or if you have aptitude installed you can use the following command.
sudo aptitude install flac
Summary
In this tutorial we learn how to fix flac command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.