Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install all basic media codecs in Ubuntu

2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly describes how to install all the basic media codecs in Ubuntu, the article is very detailed, has a certain reference value, interested friends must read it!

If you've just installed Ubuntu or other Ubuntu featured versions like Kubuntu, Lubuntu, etc., you'll notice that the system won't be able to play certain audio or video files.

For video files, you can install VLC on Ubuntu. VLC is one of the best video players on Linux, it can play almost any video file format. But you'll still have trouble playing audio and flash.

The good news is that Ubuntu provides a package to install all the basic media codecs: ubuntu-restricted-extras.

What is Ubuntu Restricted Extras?

ubuntu-restricted-extras is a package containing various basic software such as Flash plug-ins, unrar, gstreamer, mp4, Chromium browser codec in Ubuntu, etc.

Since these software are not open source software and some of them involve software patents, Ubuntu does not install them by default. You have to use the multiverse repository, which Ubuntu created specifically to provide users with non-open source software.

Read this article to learn more about the various Ubuntu repositories.

How to install Ubuntu Restricted Extras?

To my surprise, I found that Ubuntu Restricted Extras is not listed in the Software Center. Either way, you can install the package using the command line, which is pretty simple.

Search in the menu or use the terminal keyboard shortcut Ctrl+Alt+T to open the terminal.

Since the ubuntu-restructured-extras package is in the multiverse repository, you should verify that the multiverse repository is enabled on your system:

sudo add-apt-repository multiverse

Then you can install it using the following command:

sudo apt install ubuntu-restricted-extras

After entering Enter, you will be asked to enter your password. When you enter your password, the screen will not display it. This is normal. Enter your password and press Enter.

It will display a large number of packages to install. Press Enter to confirm selection.

You will see an EULA (End User License Agreement), which looks like this:

Press Tab key to select OK and press Enter key

Browsing this page can be a hassle, but rest assured. Just press Tab and it will highlight the option. When highlighted on the correct option, press Enter to confirm your selection.

Press Tab key to highlight Yes and press Enter key

After installation, thanks to the newly installed media codec, you should be able to play MP3 and other media formats again.

Install restricted additional packages on Kubuntu, Lubuntu, Xubuntu

Keep in mind that Kubuntu, Lubuntu and Xubuntu all have this package and have different names for each. They should have used the same name, but unfortunately they didn't.

On Kubuntu, use the following command:

sudo apt install kubuntu-restricted-extras

On Lubuntu, use:

sudo apt install lubuntu-restricted-extras

On Xubuntu, you should use:

sudo apt install xubuntu-restricted-extras

I always recommend ubuntu-restricted-extras as one of the basic things to do after installing Ubuntu. Install multiple codecs in Ubuntu with one command.

That's all for "How to install all the basic media codecs in Ubuntu", thanks for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report