Play DVDs With Ubuntu 9.10:Karmic
I decided to upgrade my Ubuntu from 9.04 to the most recent release. The most recent being 9.10 Karmic Koala. Usually I tend to wait for a month or so to give the developers some time to fix stability, bugs and any other issues that arise. But all the reviews I was reading about and hearing from friends that it was a really good release, I just couldn’t wait.
So on Thursday night I started the process of backing up my personal stuff and anything else I could think of. Just in case something went horribly wrong. And at 1:28am on Friday morning I started the process. I ended up mostly working while it did its thing and I assume that due to the popularity the download process was very very slow.
On Friday morning at 7:30 (after I had gone to bed) it was almost finished. Just another 20 mins of things wrapping up and cleaning up. But at 9:00 the power went out. Luckily enough though the process was far enough that it was not relying on the Internet any more. So if wrapped up and I was able to check things out until power came back on at 10:30.
At this time I decided I would watch a movie and work at the same time. So I placed a horror film into the DVD Rom (28 Days Later, it is Halloween you know). The DVD never mounted. No matter what I did I could not find the DVD I put into the Rom. It was not in Nautilis, nothing mounted and displayed on the desktop. And now I couldn’t eject the Rom.
No matter what I did it would not eject so I went into my drawer can got my handy dandy “Disfigured Clippy”
(for those who don’t know “Clippy” is a Microsoft Mascot. Even though I use Linux I still call it “Clippy”). Any way so my clippy has been bent so that I can shove one end into the Rom hole to eject it.
So I shut it again with the DVD thinking it might have not registered the first time. Nope, same issue and I could hear the Rom spin and then stop. So now thinking that maybe for some reason my Rom is broken I used “Clippy” once again to eject the disk and placed a music CD into the Rom. Worked like a charm. Mounted and asked me what to play the music with.
So then with much frustration I figured I would try to get my movie playing. I mean I was in the mood to watch a movie and work so I had to have my movie now. It would be like telling a kid there is no Santa Clause. It had to work, it used to work until I upgraded.
I went to ask my friend what the heck and what can I do. He had the answer he always does. He is a great friend. I am sure you know him and probably ask him questions too. His name is Google. I take no credit for having the answer. Google lead me to many other friends that did have the answer. Some thought they did but did not (for instance it is just common knowledge to install libdvdcss2), and others did have the answers but only parts. So I am writing this so that if you find this post you will have all the answers from all those people in one place. I found the answers out there in the world but it took a lot of time and many trials and errors.
On to why you are here now. How to play DVDs within Ubuntu 9.10: Karmic Koala. You will need to open up a terminal and paste the following information into the terminal window. You will need to be connected to the Internet and depending on your Internet connection speed the process will take anywhere between 5 – 15 mins. Mine took 12 mins and I connect at 7MB down.
Paste this into your terminal window:
sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list; sudo apt-get -q update; sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring; sudo apt-get -q update && sudo apt-get install -y ubuntu-restricted-extras non-free-codecs w32codecs totem-mozilla libdvdcss2 totem-xine xine-ui libxine1 libxinerama1 libxine1-all-plugins libxine1 libxine1-ffmpeg libdvdnav4 libdmx1 libdvdread4 gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly vlc smplayer smplayer-themes smplayer-translations && sudo /usr/share/doc/libdvdread4/install-css.sh
This is the magic. Once this is finished you are done. You can now watch your DVDs (and work happily).
Thanks for looking and if you know of any other tips and tricks for 9.10 please leave a comment so we all can be informed.
Related posts:
Fantastic!!!!!
Worked Great!
Thank you very much!
I just tried this and encountered a problem with it not finding “w32codecs”. If you get this problem use “non-free-codecs” instead. It looks like there is now a 64 and 32 bit version and this will select the correct one for you.
Thank you! This is exactly what the doctor ordered. Blessings to you and your Linux enlighten guru.
The commands with long dashes should be — not a single -. This is creating the errors.
Something on this website formats things incorrectly! The ‘dashdash’ is two consecutive dashes. There should be dashdash in front of yes above, not a single -.
I am working on getting a better way to copy and paste the correct code. Right now all I can do is display it in a code format and it is all on one line. But is formatted better and properly. I will see if I can get it to display on multiple lines though.
Okay I have wrapped the code in the code tags hoping this will help. I don’t like the style that it put around the code but as long as it works that is okay. Let me know if any others are having issues and if you have questions.
Opened up a terminal in Ubuntu 9.10, copied your text and then pasted it into the terminal. Looked like it was doing something but then ended up with the following message.
W: GPG error: http://packages.medibuntu.org karmic Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 2EBC26B60C5A2783
E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
What does this mean? I have just upgraded from 9.04 to 9.10 over the internet and am trying to get the DVD Movies to play on either MPlayer or Totem. Non copy righted movies play, music plays but not commercial movies. This particular machine has been upgraded from 7.4, 7.10, 8.04, 8.10, 9.04 and now to 9.10. I have had Commercial DVD’s playing in Totem under 9.04 and earlier but not in 9.10.
Got any suggestions?
Brian
Brian,
I will put it out there on the table that I am not a Ubuntu Guru as I have only been working with Ubuntu since 8.04. I really like it and have learned a lot and will always try to help where I can and when I can. With that said I hope that future readers may be able to help too.
From what it looks like maybe something else is locking your /var/lib/dpkg. What this means is you might have synaptic, add/remove, or update-manager running while you run that command from a terminal. If this is the case just close them and try again.
If not then you may have a leftover lock file in /var/lib/dpkg. You will need to cd into the directory and remove the lock file.
This is all I can think of and if others have ideas please advise. And Brian if one of these works or solves the issue please let us all know.