Here is how I did it.
To install Code::Blocks on Ubuntu 7.10 64bit OS.
Create a temp folder and copy downloaded file to a temp folder.
Unzip the downloaded zipped file and expand Code::Blocks to *.deb files with a mouse double-click.
Install each of the *.deb files, install with a mouse double-click..
Enter terminal mode. Copy all the *.deb files to /var/cache/apt/archives.
sudo cp /home/MyName/temp/*.deb /var/cache/apt/archives
Exit terminal mode.
Using System -> Administraton -> Synaptic Package Manager, search for “codeblocks”.
Highlight “codeblocks”, right mouse click and drop down to “Mark Suggested for installation”.
The libraries for installation will be “libwxgtk2.8-dev” and “wxcommon”.
Apply the installation. Close the package manager.
Run Code::Blocks.