Ubuntu does not automatically include certain multimedia codecs and fonts due to licensing and legal restrictions. These include formats such as DVD, MP3, QuickTime, and Windows Media, which require explicit installation. Without these codecs, attempting to play these media files will result in an “Unable to play the file” error.
During the Ubuntu installation process, you can opt to install these codecs by selecting the “Install third-party software for graphics and Wi-Fi hardware and additional media formats” checkbox in the “Updates and other software” panel. This step requires an active internet connection as the packages are not included in the installer disc or ISO image.
If this option is missed during installation, the codecs can be installed using the apt package manager. The apt repository includes a meta-package called ubuntu-restricted-extras, which contains these codecs along with other proprietary software, such as Microsoft fonts. This package ensures you have the necessary codecs and additional software to play various multimedia formats on your Ubuntu system.
Steps to install multimedia media codecs and Microsoft fonts on Ubuntu:
- Launch the terminal.
- Update the package list using apt.
$ sudo apt update [sudo] password for user: Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB] Hit:2 http://jp.archive.ubuntu.com/ubuntu focal InRelease Hit:3 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:4 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease Fetched 107 kB in 2s (61.1 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date.
- Install the ubuntu-restricted-extras package using apt.
$ sudo apt install --assume-yes ubuntu-restricted-extras Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: cabextract chromium-codecs-ffmpeg-extra gstreamer1.0-libav gstreamer1.0-plugins-ugly gstreamer1.0-vaapi i965-va-driver intel-media-va-driver liba52-0.7.4 libaacs0 libaom0 libaribb24-0 libass9 libavcodec-extra libavcodec-extra58 libavfilter7 libavformat58 libavutil56 libbdplus0 libbluray2 libbs2b0 libchromaprint1 libcodec2-0.9 libdvdnav4 libdvdread7 libfftw3-double3 libflite1 libgme0 libgsm1 libgstreamer-plugins-bad1.0-0 libigdgmm11 liblilv-0-0 libmpeg2-4 libmysofa1 libnorm1 libopencore-amrnb0 libopencore-amrwb0 libopenmpt0 libpgm-5.2-0 libpostproc55 librubberband2 libserd-0-0 libshine3 libsidplay1v5 libsnappy1v5 libsord-0-0 libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1 libvo-amrwbenc0 libx264-155 libx265-179 libxvidcore4 libzmq5 libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 ttf-mscorefonts-installer ubuntu-restricted-addons unrar va-driver-all vdpau-driver-all Suggested packages: gstreamer1.0-vaapi-doc i965-va-driver-shaders libbluray-bdj libdvdcss2 libfftw3-bin libfftw3-dev serdi sidplay-base sordi opencl-icd libvdpau-va-gl1 nvidia-vdpau-driver nvidia-legacy-340xx-vdpau-driver nvidia-legacy-304xx-vdpau-driver Recommended packages: gstreamer1.0-fluendo-mp3 The following NEW packages will be installed: cabextract chromium-codecs-ffmpeg-extra gstreamer1.0-libav gstreamer1.0-plugins-ugly gstreamer1.0-vaapi i965-va-driver intel-media-va-driver liba52-0.7.4 libaacs0 libaom0 libaribb24-0 libass9 libavcodec-extra libavcodec-extra58 libavfilter7 libavformat58 libavutil56 libbdplus0 libbluray2 libbs2b0 libchromaprint1 libcodec2-0.9 libdvdnav4 libdvdread7 libfftw3-double3 libflite1 libgme0 libgsm1 libgstreamer-plugins-bad1.0-0 libigdgmm11 liblilv-0-0 libmpeg2-4 libmysofa1 libnorm1 libopencore-amrnb0 libopencore-amrwb0 libopenmpt0 libpgm-5.2-0 libpostproc55 librubberband2 libserd-0-0 libshine3 libsidplay1v5 libsnappy1v5 libsord-0-0 libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1 libvo-amrwbenc0 libx264-155 libx265-179 libxvidcore4 libzmq5 libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 ttf-mscorefonts-installer ubuntu-restricted-addons ubuntu-restricted-extras unrar va-driver-all vdpau-driver-all 0 upgraded, 71 newly installed, 0 to remove and 0 not upgraded. Need to get 44.0 MB of archives. After this operation, 186 MB of additional disk space will be used. Do you want to continue? [Y/n] ##### snipped
Replace ubuntu-restricted-extras with kubuntu-restricted-extras, lubuntu-restricted-extras or xubuntu-restricted-extras accordingly if you're using the corresponding Ubuntu derivatives.
- Read the End User License Agreement (EULA) for Microsoft TTF and click Ok.
- Click Yes to accept the license agreement and proceed with installation.
- Relaunch your media application to start using the newly installed codecs and fonts.
![](https://www.simplified.guide/_media/page/author/shakir/mohd-shakir-zakaria.jpg?w=200&tok=d15487)
Mohd Shakir Zakaria is an experienced cloud architect with a strong development and open-source advocacy background. He boasts multiple certifications in AWS, Red Hat, VMware, ITIL, and Linux, underscoring his expertise in cloud architecture and system administration.
Comment anonymously. Login not required.