I was trying to install Code::Blocks on my Lucid install. The version in the repos is old and I wanted to get the latest version I did some Googling with no success.
After messing around I was able to get the 10.05 version of Code::Blocks installed.
Apparently you need at least 2.8.10 of libwxgtk2.8-0. Lucid and Karmic have these packages.
First install the package:
Then grab the binary of Code::Blocks from the website. These are pre-compiled .deb packages for Code::Blocks.Code:sudo apt-get install libwxgtk2.8-0
Unpack the archive, navigate to the folder where the .deb packages reside, and then from the terminal do the following:
You now have the latest version of Code::Blocks for Lucid or Karmic.Code:sudo dpkg -i *.deb
Hope this helps.