Backporting packages – bandwidthd on Precise

bandwidthd is a great tool to graph traffic on your network interfaces, especially when you’re acting as an ISP for the better part of the city. Unfortunately, bandwidthd on Ubuntu Precise Pangolin (12.04) stopped getting updated at 2.0.1+cvs20090917-4.1. This package contains a pretty serious bug that causes bandwidthd to lose all data every 6 hours or so. Fortunately, there’s a more recent package (2.0.1+cvs20090917-5) with the fix committed, but it’s only available for Ubuntu 12.10+. (NB: 2.0.1+cvs20090917-7 has a dependency on a higher version of Apache than 12.04 has, so we’re ignoring it.) Solution: backport! (Here’s a dpkg that you can just dpkg -i if you don’t want to do it yourself.)

It’s actually not very difficult to do a backport, but it’s not trivial the find the correct instructions.

  • Grab all sources from LaunchPad: .orig.tar.gz, .debian.tar.gz, .dsc
  • dpkg-source -x *.dsc
    cd bandwidthd-2.0.1+cvs20090917
    dpkg-buildpackage -rfakeroot -uc -b
    cd ..
    dpkg -i bandwidthd_2.0.1+cvs20090917-5_amd64.deb
  • Done!

You will probably also need to install build dependencies, but just apt-get whatever you need.

This could potentially all be automated with backportpackage, but I haven’t investigated yet.

This entry was posted in Pub. Bookmark the permalink.

One Response to Backporting packages – bandwidthd on Precise

  1. Andrew Fox says:

    Seems strange that in 2014 you have to backport packages from 2009 lol

Leave a Reply

Your email address will not be published.