I also have had problems to install Codeblocks on Ubuntu (Karmic).
I have tried to use Jens packets without success. So I switched to "
http://lgp203.free.fr/ubuntu/".
Here are my the steps to fix all the problems:
Remove all 'old' packages:
sudo apt-get remove build-essential gdb
sudo apt-get remove libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx2.8-doc
sudo apt-get remove libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx2.6-doc
sudo apt-get remove wx-common
sudo apt-get autoremove
Use synaptic, search for wx* lib's and remove them.
Insert the "lgp203.free.fr" - Repository into sources.list.
Start an editor:
sudo nano /etc/apt/sources.list
Insert following lines, save and exit.
##CodeBlocks
deb http://lgp203.free.fr/ubuntu karmic universe
deb-src http://lgp203.free.fr/ubuntu karmic universe
deb http://lgp203.free.fr/ubuntu karmic unstable
deb-src http://lgp203.free.fr/ubuntu karmic unstable
Update list.
Import key for the repository.
wget -q http://lgp203.free.fr/public.key -O- | sudo apt-key add -
Again some cleanups.
Install everything.
sudo apt-get install build-essential
sudo apt-get install gdb
sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib
sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common
Now, Codeblocks should start.
After these steps, everything works fine....
Regards
Andreas