How to Play DVD in Ubuntu 22.04, 20.04 and 18.04

Not able to play DVD on Ubuntu and Linux Mint? This small package enables DVD support on Ubuntu based Linux distributions.
Warp Terminal

Ubuntu won’t play DVD?

Even after you installed all the codecs from the Ubuntu Restricted Extra package? Welcome to the club. You are not the only one who cannot play DVD in Ubuntu.

In this quick tip, I’ll show you how to fix the issues with playing DVDs or even encrypted DVDs in Ubuntu 22.04, 20.04 and 18.04.

Play DVDs in Ubuntu 22.04, 20.04 and 18.04

How to Play DVD on Ubuntu

Though I am focusing on Ubuntu here, these methods should also work on Linux Mint and other Ubuntu based distributions. What we need to do here is to install the libdvd package that downloads and installs the required dependencies.

This libdvd-pkg is available in the multiverse repository of Ubuntu. Please make sure to enable it using this command:

sudo add-apt-repository multiverse

Open a terminal and run the following command:

sudo apt install libdvd-pkg

It will notify that you need to configure the package using dpkg so that it installs the required dependencies.

Enable DVD support on Ubuntu

Don’t worry, it’s a simple step. Once the libdvd-package installation finishes, use the command below to configure libdvd-package:

sudo dpkg-reconfigure libdvd-pkg

This will download the libdvdcss2 library from VLC repository.

Fix DVD not playing on Ubuntu

In the process, you’ll be asked whether you want automatic updates for libdvdcss2. You can go with the yes option here.

How to Play DVD on Ubuntu

Once the process completes, reboot your system and plugin your DVD and you should find DVD playing in your Ubuntu system.

Troubleshoot: “libdvdread not available” error in Ubuntu 20.04

Ubuntu 20.04 has libdvdread package available as libdvdread7. Install it using this command:

sudo apt install libdvdread7

For Ubuntu 22.04, use this package:

sudo apt install libdvdread8

Alternate Method: Play DVD in Ubuntu (only use if you are using Ubuntu 14.04)

This part of the article was written a few years ago when libdvd-pkg didn’t exist. Basically, it does almost the same thing as the previous section, manually. If the previous steps didn’t work for you, use the steps mentioned here.

We need to install few codecs required specifically to play DVDs comfortably. These are:

  • libdvdcss2: to recognize DVD
  • libdvdread4: to read DVD
  • libdvdnav4: to navigate DVD

Step 1:

First step (actually optional) is to get VLC media player. You can install VLC from Ubuntu Software Center or using the following command in terminal:

sudo apt-get install vlc

Once you have it installed, install libdvdcss2. It used to come by default with Medibuntu repository. But since Medibuntu is no longer available, you will have to install this library from the VLC repository. Use the links bellow to install libdvdcss2:

Double click on the downloaded deb files to install it via Ubuntu Software Center. Alternatively, you can use GDebi to install .deb files more easily.

Step 2:

Once we have it, lets install libdvdread4 and libdvdnav4. Use the following command in the terminal:

sudo apt-get install libdvdread4 libdvdnav4

If the DVD play back does not work, try to set your region code. You can follow the instructions given here to set the region code. It worked for me without it.

That would be it. I hope that after completing all these steps, you would be able to play DVD in Ubuntu as well as in Linux Mint. Let me know if it worked for you or if you still can’t read DVD in Ubuntu.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world


Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.