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
thank you
thank you
Thank you
Useful, thanks
Clear and easy. thank you
Thank you
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 v
20.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
It returned an error code for me
Thank you :)
??? that installs v.16.01 for me, not v20.x
Doesn’t work for Ubuntu 20.04 focal. No packages available.
Version 20.03 is available in main repository of Ubuntu 20.04, simply run commands in step 2 should work.
I’ve done this twice. Still not getting an updated 20.03 version but instead version 16.01
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 ??