Try using the alternate repository. See the wiki page http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu
Alternate wxWidgets repository. Some users of Code::Blocks have received critical errors related to libwxgtk when using the above repository packages.
They were able to solve their problems by installing newer packages available from an alternate repository from wxWidgets.org.
To use these packages make the following changes to the above directions:
Add deb http://apt.wxwidgets.org/ edgy-wx main or deb http://apt.wxwidgets.org/ feisty-wx main to your sources.list.
Download the gpg key using wget http://apt.wxwidgets.org/key.asc and install the same as above.