I just set up CodeBlocks on Ubuntu myself a few days ago.
I couldn't get the nightly builds to work on my 7.04 install, but had no problems with it on 7.10 (test release).
Grabbing the latest version from the svn and compiling it myself got it to run on 7.04 (didn't really try to figure out why...