Quick Tip: Install Media Codecs in Ubuntu 17.10

October 20, 2017

If you didn’t check the ‘Enable Restricted Formats’ box while installing Ubuntu 17.10 on your machine, you’ll have to manually install multimedia codecs to make the default Rhythmbox music player and Totem video player play audio / video files.

Due to legal reasons Ubuntu can not play MP3, MP4, and other media files out of the box. You can manually install commonly used media codecs via a single package called ubuntu-restricted-extras.

Simply open terminal via Ctrl+Alt+T keyboard shortcuts, or by searching “terminal” from application launcher. When it opens, run command:

sudo apt update && sudo apt install ubuntu-restricted-extras

Type your password (no visual feedback while typing) when it prompts and hit Enter

The commands automatically install all required multimedia codecs for use in Rhythmbox and Totem, along with some fonts for Ubuntu.


I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected]

23 responses to Quick Tip: Install Media Codecs in Ubuntu 17.10

  1. wow !! its working very well………….thanks jim

  2. Thanks, great work!!!

  3. hi it’s not work on 17.10

  4. Thanks man. I couldn’t do without my music and movies.

  5. Well done Jim

  6. When I try to sudo the restricted extras package I get an error saying it cannot locate such package.

    • You need to run “sudo apt-get update” before it will work.

      • I still dont understand,
        its say “E: Unable to locate package ubuntu-restricted-extras”

        what should i do, when i want try instal from Ubuntu Software Center its stuck at installing but never done

        my Internet connection very fast

        • 1. Search for and launch “Software & Updates” from app launcher. In first tab, make sure the top 4 check-boxes (main, universe, restricted, multiverse) are enabled.

          2. Reload your system repositories when close “Software & Updates”, or run command:

          sudo apt-get update

          Try the 2 steps and it should work

  7. please i just finish installing but it stock with the license
    i can click on okay to continue

  8. Mee too it won’t let me click ok

  9. You need to press TAB to activate the “OK” button. Not immediately obvious!

  10. i’m rewrite this article on my blog

  11. please help me

  12. Thank you so much ! I was lost without music and movies.

  13. Worked 100%. Thankss alot…

  14. Hi it’s not work in ubuntu 17.10

  15. sanjay yadav May 5, 2018 at 7:56 am

    Thank you..

    That worked like butter..

  16. I want to install media files on my laptop which has Ubuntu OS. Can you explain in laymens terms how i do that please.