How to Install Code::Blocks 20.03 in Ubuntu 18.04, 19.10

Code Blocks IDE

Code::Blocks, open-source C, C++, and Fortran IDE, released version 20.03 a few days ago. Here’s how to install it in Ubuntu 16.04, Ubuntu 18.04, Ubuntu 19.10, and derivatives.

Code::Blocks 20.03 was available for a few days, though it’s not officially announced in its website. The Code::Blocks Developers Team PPA has made the packages for all current Ubuntu releases.

To install the new IDE version, open terminal either by pressing Ctrl+Alt+T on keyboard or by searching for ‘terminal’ from application menu. When it opens, do following steps one by one.

1.) Run command to add the PPA repository:

sudo add-apt-repository ppa:codeblocks-devs/release

Type user password (no asterisk feedback) when it prompts and hit Enter to continue.

2.) If an old version was installed on your system, upgrade it via Software Updater:

or run commands one by one in terminal to install the IDE:

sudo apt update

sudo apt install codeblocks codeblocks-contrib

Once installed, launch it from your system application menu and enjoy!

Uninstall Code::Blocks

To remove the PPA repository, either go to Software & Updates -> Other Software, or run command in terminal:

sudo add-apt-repository --remove ppa:codeblocks-devs/release

And remove Code::Blocks if you want via command:

sudo apt remove --autoremove codeblocks codeblocks-contrib

By Ji m

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to remind me outdated tutorial! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

15 comments

  1. help
    i cant neither install nor unistall codeblocks
    sudo apt remove –autoremove codeblocks codeblocks-contrib
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    You might want to run ‘apt –fix-broken install’ to correct these.
    The following packages have unmet dependencies:
    codeblocks-dev : Depends: libcodeblocks0 (= 20.03) but 20.03-3 is to be installed
    E: Unmet dependencies. Try ‘apt –fix-broken install’ with no packages (or specify a solution).

    1. While Ubuntu 20.04 main repository contains v20.03-3 and the PPA contains v20.03-1~ubuntu1x.xx, there’s no package version v20.03. Did you add another source for code::blocks, or which Linux distro are you running?

      Try the command as it suggested:

      sudo apt –fix-broken install

  2. hello, i am getting error when try to compile program,

    g++ -c /home/nightsec/Documents/Kuliah/KP/praktikum_1/main.cpp -o /home/nightsec/Documents/Kuliah/KP/praktikum_1/main.o
    g++ -o /home/nightsec/Documents/Kuliah/KP/praktikum_1/main /home/nightsec/Documents/Kuliah/KP/praktikum_1/main.o -lbgi-lgdi32-lcomdlg32-luuid-loleaut32-lole32 /usr/lib/graph/libbgi.a
    g++: error: /usr/lib/graph/libbgi.a: No such file or directory

    any suggestion to fix it ??

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version