If you are into HDR photography and use Ubuntu Linux, you may well find yourself wanting to install the catchily-named Qtpfsgui application. This is easy enough:
That gets you a full-featured HDR construction and tone-mapping toolkit. When you first try to build an HDR image from multiple LDR images, you’ll see an option to align images using hugin’s align_image_stack:
This utility is not available in any of the stable releases of hugin at the time of writing. There are instructions on compiling align_image_stack from source, but this does not cover the large number of dependencies that cmake and hugin drive.
Never fear: I have already jumped through all the hoops for you, ensuring that within a couple of hours of writing this, a new version of hugin including align_image_stack will be made available. Here’s what you need to do, for Ubuntu 8.04 (Hardy Heron LTS):
cd ~
mkdir hugin
cd hugin/
svn co https://hugin.svn.sourceforge.net/svnroot/hugin/hugin/trunk hugin
mkdir build
cd build
sudo apt-get install cmake
sudo apt-get install libc6-dev
sudo apt-get install g++
sudo apt-get install wx-common
sudo apt-get install wx2.8-headers
sudo apt-get install libwxgtk2.8-0
sudo apt-get install libwxgtk2.8-dev
sudo apt-get install libtiff4
sudo apt-get install libtiff4-dev
sudo apt-get install libpng-dev
sudo apt-get install openexr
sudo apt-get install libopenexr-dev
sudo apt-get install libboost-dev
sudo apt-get install libboost-thread-dev
sudo apt-get install libboost-graph-dev
sudo apt-get install libgettext-ruby1.8
sudo apt-get install libgettext-ruby-util
sudo apt-get install libpano12-dev
sudo apt-get install libexiv2-dev
cmake -DCMAKE_INSTALL_PREFIX=/usr ../hugin
make align_image_stack
cd src/tools
strip align_image_stack
sudo mv align_image_stack /usr/bin/
This process takes a surprisingly long time: the utility depends on much of the hugin code. Once finished, fire up qtpfsgui once again, and you should be able to use align_image_stack to align those slightly misaligned source images. Anecdotal evidence suggests that you may get more reliable results running it from the command line, then opening the resultant HDR file in qtpfsgui.
If it still doesn’t work for you, you could try hdrprep instead. Please comment on your experiences with either method!

works on gutsy, too :-)
Oh man, exactly what I was trying to do. Thanks so much for documenting it!