1

I'm trying to install Code::Blocks without having success. It seems that the PPA I'm trying to use has problems, because after I run

sudo add-apt-repository ppa:damien-moore/codeblocks-stable

I get a lot of errors in the apt-get update output.

Zanna
  • 72,312

1 Answers1

1

Currently the PPA doesn't have a package for 17.04, but the official Ubuntu repositories for 17.04 currently have the latest version, so you can just use that.

The PPA you are using is the generally recommended PPA for getting the current stable version of Code::Blocks. However, currently that PPA does not support Ubuntu 17.04.

If you go to the PPA page and scroll down to Overview of published packages, there is a Published in: drop-down menu, which shows that the PPA currently provides packages for Precise (i.e., 12.04 LTS Precise Pangolin), Trusty (i.e., 14.04 LTS Trusty Tahr), Vivid (i.e., 15.04 Vivid Vervet), Wily (i.e., 15.10 Wily Werewolf), and Xenial (i.e., 16.04 LTS Xenial Xerus).

"Published in" drop-down menu on the PPA page showing what releases the PPA provides packages for

Currently your release--17.04 Zesty Zapus--is not listed there. In the future, if Zesty appears, that means the PPA provides packages for 17.04. (It will not guaranteee that it provides all the necessary packages, though likely it will.)

Right now the PPA provides Code::Blocks 16.01, which the Code::Blocks website confirms is currently the latest stable release. The name of the package the PPA provides is codeblocks. Searching for this package on the Ubuntu project page on Launchpad yields a search result for the versions packaged officially for Ubuntu. Clicking through brings up the source package page for codeblocks in Ubuntu, which shows the currently available versions.

Screenshot of the codeblocks in Ubuntu source package page on Launchpad showing the versions available in recent Ubuntu releases.

This reveals that 17.04 Zesty Zapus already has Code::Blocks 16.01. Eventually this will no longer be the latest stable release of Code::Blocks, and when that happens hopefully the PPA will support Zesty. However, until then, you should expect that installing from the official Ubuntu repositories for 17.04 is just as good as installing from the PPA on an earlier release.

To fix your problem, remove the PPA. Then just install the codeblocks package.

Upgrading the Package Later

If the PPA later supports your Ubuntu release and provides a later version of Code::Blocks, and you decide you want to upgrade to that version, then it will be sufficient to enable the PPA again and upgrade the packages on your system (such as with the Software Updater or by running sudo apt update && sudo apt upgrade).

This works because both Ubuntu's official repositories and the PPA provide Code::Blocks as the codeblocks package. If the PPA is enabled, has a package for your system, and the package has a newer version than your currently have installed, then you upgrade to it automatically.

Eliah Kagan
  • 119,640