3 Steps to Play DVD in Ubuntu Linux (Fix Codecs)
If you are trying to play a DVD on Ubuntu, you might notice it doesn’t work right away. This is because Ubuntu does not come with the tools needed to decode protected movie files by default. To fix this, you need to install-programs-in-ubuntu-linux/" class="sal-link" rel="noopener" target="_blank" data-sal-id="15885">install specific software called codecs.
Why do I need to do this?
Most commercial DVDs use encryption to prevent illegal copying. Ubuntu respects these rules, so it won’t play the movies until you install the right tools to unlock them. Without these “codecs” %%LNK0%%, your computer simply cannot read the data on the disc.
What happens when I finish?
Once you complete these steps, your computer will be able to recognize and play encrypted DVDs and most common video file formats using your favorite media player.
Note: The following steps require admin privileges. You will need to enter your computer password when prompted.
First, we need to enable the multiverse repository and install the main package. Open your terminal and run these commands:
sudo add-apt-repository multiverse
sudo apt install libdvd-pkg
When you see a prompt on your screen, select “Ok” to continue.
┌───────────────────────────────────────────────┤ Configuring libdvd-pkg ├───────────────────────────────────────────────┐
│This package automates the process of launching downloads of the source files for libdvdcss2 from videolan.org,
compiling them, and installing the binary packages (libdvdcss2 libdvdcss-dev). Please run
"sudo dpkg-reconfigure libdvd-pkg" to launch this process for the first time.
Next, you will be asked to confirm the installation. Choose “Yes.”
┌───────────────────────────────────────────────┤ Configuring libdvd-pkg ├───────────────────────────────────────────────┐
│ │
│ If activated, the APT post-invoke hook takes care of future automatic upgrades of libdvdcss2 (which may be triggered │
│ by new versions of libdvd-pkg). When updates are available, the hook will launch the process of downloading the │
│ source, recompiling it, and (if "apt-get check" reports no errors) using "dpkg -i" to install the new versions. │
│ │
│ Alternatively, the process can be launched manually by running "sudo dpkg-reconfigure libdvd-pkg". │
│ │
│ Enable automatic upgrades for libdvdcss2? │
│ │
││
│ │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Depending on your version of Ubuntu, you may need extra tools to ensure everything works correctly. Run these commands to install them:
sudo apt install libdvdread7
sudo apt install libdvdread8
sudo apt install libdvdread4
sudo apt install libdvdnav4
Finally, to make sure your web browser and other apps can handle various video formats, run this command:
sudo apt install gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
sudo apt install ubuntu-restricted-extras
Summary
To watch DVDs on Ubuntu, you must install the libdvd-pkg library. This package provides the necessary codecs to bypass encryption. By enabling the multiverse repository and installing the additional restricted extras, you ensure that your system can play almost any video file or physical DVD disc you insert.
How can I play DVDs on Ubuntu Linux?
Why won't my DVD play on Ubuntu?
What is libdvd-pkg and why do I need it?
How do I enable the multiverse repository in Ubuntu?
What should I do if my DVD has a region code?
Was this guide helpful?
Hi I just installed Ubunto 18.10 and I’ve tried various ways to install the DVD pkg without success qnd could use some guidance how to get my computer to play dvds otherwise this program is useless to me if I can’t manage to get the most simple thing to work plse help me. I am q new user to Linux it was suggested by a friend of mine who’s now deceased qnd can’t help me.