mplayer command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mplayer: command not found
or when using sudo you get the following error message
sudo: mplayer: command not found
Solutions to mplayer: command not found
How To Fix mplayer: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mplayer is provided by mplayer package.
mplayer is:
MPlayer plays most MPEG, VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, FLI, RM, NuppelVideo, yuv4mpeg, FILM, RoQ, PVA files, supported by many native, XAnim, RealPlayer, and Win32 DLL codecs. It can also play VideoCD, SVCD, DVD, 3ivx, RealMedia, and DivX movies.
Another big feature of MPlayer is the wide range of supported output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, but also SDL.
Not all of the upstream code is distributed in the source tarball. See the README.Debian and copyright files for details.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mplayer
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mplayer.
sudo apt -y install mplayer
Or if you have aptitude installed you can use the following command.
sudo aptitude install mplayer
Summary
In this tutorial we learn how to fix mplayer command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.