Ubuntu 10.04 Lucid : Everything worked as suggested ..
Please do : sudo gedit /etc/apt/sources.list
... and add this line :
deb-src
http://mirrors.nic.funet.fi/ubuntu/ maverick main
sudo apt-get update
sudo apt-get install g++ make autoconf automake libtool
sudo apt-get build-dep boost1.42
I made a folder home/knudfl/tmp/build-boost-1.42/
And : cd tmp/build-boost-1.42/ &&
apt-get -b source boost1.42=1.42.0-3ubuntu1
Wait a long time, the compilation may run for 30 .. 50 minutes.
32 packages were created.
.