I use the [LGP] (pasgui) repository for code::blocks on ubuntu 7.10 and the official wxwidgets repository.
Check this page for more information: http://lgp203.free.fr/spip/spip.php?article1
Very easy (just add two repositories) and install code::blocks. Now updates will come without having to check it manually etc.
[edit]
Ah Jens already mentioned this repository.. well let me explain it as simple as it can get
1) Add the repositories to /etc/apt/sources.list:
Open the file with a graphical editor as root. Paste the following line in a terminal.
gksu gedit /etc/apt/sources.list
Paste this at the end:
# codeblocks
deb http://lgp203.free.fr/ubuntu/ gutsy universe
# wx widgets
deb http://apt.wxwidgets.org/ gutsy-wx main
2) To make sure your package system trusts these sources add their keys.
Enter these two lines at the terminal
wget -q http://lgp203.free.fr/public.key -O- | sudo apt-key add -
wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -
And update the packages by entering the following lines on the terminal:
sudo apt-get update
sudo apt-get upgrade
3) Install code::blocks
Enter the following line in the terminal
sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib
Now that was not hard was it? It's just a bit different than the windows/osx install but remember that now you automaticly receive the new nightly builds!
Enjoy!