I already did a piece on medibuntu here, but in this post I’ll explain how to install the audio and video codecs for ubuntu.
For Ubuntu 9.04 “Jaunty Jackalope”:
Open up a terminal (applications -> accessories -> terminal) and copy/paste this code:
sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/medibuntu.list && wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add – && sudo apt-get update && sudo apt-get install -y ubuntu-restricted-extras non-free-codecs w32codecs totem-mozilla libdvdcss2
(if you use 64bit, replace w32codecs with w64codecs)
For Ubuntu 8.04 “Hardy Heron”:
Open up a terminal (applications -> accessories -> terminal) and copy/paste this code:
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list && wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add – && sudo apt-get update && sudo apt-get install -y ubuntu-restricted-extras non-free-codecs w32codecs totem-mozilla libdvdcss2
(if you use 64bit, replace w32codecs with w64codecs)
For Ubuntu 8.10 “Intrepid Ibex”:
sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/medibuntu.list && wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add – && sudo apt-get update && sudo apt-get install -y ubuntu-restricted-extras non-free-codecs w32codecs totem-mozilla libdvdcss2
(if you use 64bit, replace w32codecs with w64codecs)
————–
Install a different media player (optional)
The default media player (totem) is good, but I like vlc media player better, especially for watching a dvd.
In a terminal
sudo apt-get install vlc
If you are looking for a better audio player, I suggest either exaile or bmpx.
You now have 99% of the codecs in the world installed on your system.
Looking for real player? click me.






25 Comments
June 23, 2008 at 5:42 pm
[...] carmashantanu: [...]
June 24, 2008 at 7:08 pm
Very helpful, thanks
June 25, 2008 at 12:42 am
ThanX U 4 The Help
June 30, 2008 at 5:10 pm
I get this when message at every step.
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 it mean.
Please clarify.
June 30, 2008 at 7:13 pm
This most likely means you have another package manager running or still open (synaptic, add remove, update manager, …).
Close it and the error will disappear.
July 1, 2008 at 2:15 am
Thanks so much, This was Extremely helpful.
Peace Y
July 8, 2008 at 7:04 am
great help thanks
August 21, 2008 at 6:42 pm
Thanks for the guidance. Unfortunately I still can’t get audio with the video. I’ve loaded VLC via Vine and this is the only way I cam currently play a video and hear the soundtrack. Any further suggestions?
Andy
August 21, 2008 at 10:07 pm
No, sorry.
September 11, 2008 at 1:11 pm
[...] Codec Support [...]
October 7, 2008 at 10:01 pm
[...] you will need to have the neccesary codecs installed on your pc. If you follow instructions here you should be [...]
November 19, 2008 at 11:08 am
Well, that worked beautifully for me! Thanks
January 1, 2009 at 6:52 pm
At the end of step 1, it asks if I want to install x-ttcidfont-conf. Do I? I use the Gnome desktop and never directly go into X.
————message——————
Msttcorefonts uses defoma Msttcorefonts uses the DEbian FOnt MAnager (defoma). If you wish to use the fonts provided by this package under the X Window System, you must configure it to use defoma fonts.
The easiest way to do so is to use the x-ttcidfont-conf package. For more information, install the x-ttcidfont-conf package and consult its documentation under /usr/share/doc/x-ttcidfont-conf.
For uses of msttcorefonts not related to the X Window System (e.g. printing) this is not required.
January 7, 2009 at 3:16 pm
I followed the instructions but i get a screen which says package configuration (some sort of license agreement and terms).
How can i get past the screen and how i can make sure that the codecs are installed?
Please help as i am new to ubuntu
January 8, 2009 at 2:26 am
is almost imposible for me to make the dvd player work i only get sound but no image,a+nd i have tryied everything and by the way you never put the codecs for the 64 bit version
January 12, 2009 at 1:24 am
sri!
Press the “tab” key to get past the java license agreement and use the arrow keys agreeto the terms… had the same problem, hope this helps.
February 22, 2009 at 11:42 am
Um…How many codecs, I’m up to 327 now?
March 21, 2009 at 2:42 am
i manage to install all the codecs but the problem i’m having now is the audio is not working. did i miss anything? what can i do to make sure the audio is working?
April 4, 2009 at 1:50 pm
thanks very much, worked great!
April 24, 2009 at 9:09 am
Hi,
I am also using a 64 bit machine and it doesn’t work:
E: couldn’t find package w64codecs
April 26, 2009 at 7:59 pm
I followed the instructions but i get a screen which says package configuration (some sort of license agreement and terms). But i closed it out. and now i have all these errors and i saw if you pressed tab and what not to fix it it will be fine but i cant get back to that point.
June 25, 2009 at 7:14 pm
Unfortunately, in Jaunty I am seeing
gpg: can’t open `–’: No such file or directory
?
June 25, 2009 at 11:19 pm
Unfortunately, in Jaunty I am seeing too
gpg: can’t open `–’: No such file or directory
why?
I am noob
June 30, 2009 at 12:19 am
You should be aware that they’ve changed the syntax in which you would normaly add keys etc.
June 30, 2009 at 12:20 am
just go to the medibuntu page to do it the newer proper way.