Kubuntu is a popular Linux distribution that integrates the KDE desktop environment for a user-friendly experience. Many media formats require proprietary multimedia codecs to play files properly, but these are not always included by default. Installing such codecs ensures broad playback support and overall system compatibility.
Non-free packages, such as kubuntu-restricted-extras, contain essential decoders for various audio and video formats. These packages may include licensing agreements or EULA prompts, because they deliver proprietary software components. Installing them from the official repository is recommended for reliability and security.
Adding multimedia codecs involves a simple process in Kubuntu, requiring an internet connection and administrative privileges. Software management is handled through the graphical Discover application, which streamlines installation and updates. Once the codecs are installed, media players will gain broader format compatibility for both music and video files.
Steps to install multimedia codecs on Kubuntu:
- Open a terminal window from the KDE application launcher or by pressing Alt+F2 and typing “konsole”.
- Update the system to ensure all repositories are synchronized using the following command.
$ sudo apt update [sudo] password for user: ... Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [123 kB] Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB] ... Reading package lists... Done
- Install kubuntu-restricted-extras.
$ sudo apt install --assume-yes kubuntu-restricted-extras Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libavcodec-extra libdvd-pkg ... ... Setting up libdvd-pkg (1.4.2-1-1) ...
- Follow any on-screen prompts related to licensing agreements during the installation process.
- Restart any open media applications to load the newly installed multimedia codecs.
- Play an audio or video file to verify that the codecs are working correctly.
Restricted codecs may be subject to patents and licensing fees in certain regions.
Install additional packages like vlc or ffmpeg to handle a broader range of media files.
Tested on Kubuntu:
Version | Code Name |
---|---|
24.04 LTS | Noble Numbat |

Mohd Shakir Zakaria is a cloud architect with deep roots in software development and open-source advocacy. Certified in AWS, Red Hat, VMware, ITIL, and Linux, he specializes in designing and managing robust cloud and on-premises infrastructures.
Comment anonymously. Login not required.