The easiest way to install a reasonably up-to-date version of Code::Blocks for Ubuntu Linux is from the Code::Blocks Release Builds PPA. To install Code::Blocks from the aforementioned PPA, execute the following lines in Terminal:
- sudo add-apt-repository ppa:damien-moore/codeblocks-stable
- sudo apt-get update
- sudo apt-get install codeblocks