Http://wiki.codeblocks.org/index.php? Title = installing_code: blocks_nightly_build_on_ubuntu
1. Download The tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example.
Tar xvf cb_date-of-build_revision-number_ubuntu6.1020.7.04_wx2.8.4.tar.gz
2. Install all the packages at the same time.
Sudo dpkg-I *. Deb
The packages can be installed individually, if you prefer not to install everything. the first package to install is libcodeblocks0 followed by the codeblocks package. all the other packages are optional. if you want to install the wxsmith and/or contrib packages, you must install the libwxsmithlib0 package first.
-----------------------------------------
Http://wiki.ubuntu.org.cn/Qref/Source
How to Use Ubuntu night
The top mirror feature of ubuntu night (http://ubuntu9.com) continually updates information about the currently available source based on current network conditions and source health conditions, including top fast/near/stable mirror, you can find all the available Ubuntu images (source) on the current network and rank them according to the average download speed and geographical location. In addition, when you find the most suitable source, you can also directly download its sources. list file, and copy it directly to/etc/APT/sources. list or put it in/etc/APT/souces. list. d directory, it is very convenient, you do not have to find the available source.
1. First, back up the source list:
Sudo CP/etc/APT/sources. LIST/etc/APT/sources. list_backup
2 and then open it in gedit or another Editor:
Gksu gedit/etc/APT/sources. List
Kdesudo Kate/etc/APT/sources. List
Gksu mousepad/etc/APT/sources. List
Gksu gedit/etc/APT/sources. List
3. select an appropriate source from the list below, replace all the content in the file, and save the edited file:
Note: Be sure to select the correct version info 10.04 info 9.10 info 9.04 info 8.10 info 8.04
4. Refresh the list:
Sudo apt-Get update
Netease 163 Update Server:
Deb http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ lucid-Updates main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
The Deb-Src http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
The Deb-Src http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
The Deb-Src http://mirrors.163.com/ubuntu/ lucid-Updates main restricted universe multiverse
Deb-Src http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
Deb-Src http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
-----------------------------------------
After codeblocks is installed, you may not be able to compile the program and report the following error: G ++: Not found.
This is because the debugger is not fully installed.
Sudo aptitude install build-essential
The role of the preceding command: That installg ++, GCC, make, etc.
From:
Http://ubuntuforums.org/showthread.php? T = 509997