Friday, May 4, 2012

Achieved Handbrake on Ubuntu 12.04 Precise Pangolin

I upgraded to Ubuntu's newest version 12.04 Precise Pangolin earlier this week and ran into a problem with Handbrake working.  The website offers a ppa repository that unfortunately does not have an updated binary package or repository for the new version of Ubuntu.

Being from old school Debian :) I knew that there was some ~easy way to install Handbrake through the deb-src of the older version of the source repository.  Add this to your /etc/apt/source.list or /etc/apt/source.list.d/stebbins-handbrake-releases-precise.list
deb-src http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu oneiric main
 Then run 'sudo apt-get update' or 'sudo aptitude update' to update the local software database.

Follow these steps that I got from Debian's Manual:

  1. Now, first get the source package:
    1.      apt-get source foo
  2. and change to the source tree:
    1.      cd foo-*
  3. Then install needed build-dependencies (if any):
    1.      sudo apt-get build-dep foo
  4. Then create a dedicated version of your own build (so that you won't get confused later when Debian itself releases a new version)
    1.      dch -l local 'Blah blah blah'
  5. And finally build your package
    1.      debuild -us -uc
  6. If everything worked out fine, you should now be able to install your package by running
    1.      sudo dpkg -i ../*.deb