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

March 25, 2020 — 15 Comments

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

I'm a freelance blogger who started using Ubuntu in 2007 and wish to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected]

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

  1. Hendra Setiyawan March 30, 2020 at 6:30 am

    thank you

  2. Mayssa Mathlouthi April 23, 2020 at 12:03 pm

    thank you

  3. Thank you

  4. Wayne Beckett May 16, 2020 at 12:39 pm

    Useful, thanks

  5. Clear and easy. thank you

  6. Thank you

  7. 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).

    • 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

  8. Thank you :)

  9. ??? that installs v.16.01 for me, not v20.x

  10. Doesn’t work for Ubuntu 20.04 focal. No packages available.

  11. I’ve done this twice. Still not getting an updated 20.03 version but instead version 16.01

  12. Defri Indra Mahardika September 8, 2020 at 11:10 am

    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 Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*