I recently built and installed the on-chip debugger OpenOCD. Ubuntu already ships with an OpenOCD package, so you can skip the build process if you prefer. See the Ubuntu Community OpenOCD document for instructions.
I downloaded the OpenOCD source via “git”.
git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd