By default Ubuntu and its flavour like Kubuntu, Xubuntu and Lubuntu don’t come with all default media codecs due to legal issue. But we can easily install it via terminal . This post is all about how to install default multimedia codecs. After installing these codecs we will able to play populer format like .mp3, .mp4, .mkv and so on ….
Installing Media Codecs in Ubuntu
Open Terminal / Knosole and run
sudo apt-get update
sudo apt-get install ubuntu-restricted-extras
sudo apt-get update && sudo apt-get install ubuntu-restricted-extras
After running commands above it will ask for your root password, provide your root password and hit enter, it will automatically download and install all codecs. Once install you will able to play almost all format and if something missing then try installing universal player VLC by running command below
sudo apt-get install vlc