Code::Blocks Forums

User forums => Help => Topic started by: Giovanni62 on April 21, 2016, 10:17:01 pm

Title: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: Giovanni62 on April 21, 2016, 10:17:01 pm
There are dependency issues if you try to install codeblocks 16.01 on ubuntu 16.04 through ppa:damien-moore/codeblocks-stable. :-[
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: camilocc on April 21, 2016, 10:53:34 pm
I think I have the same problem with clean 16.04 install of Ubuntu (in VM).

The following packages have unmet dependencies:
 codeblocks : Depends: libcodeblocks0 (= 16.01~ubuntu16.04.1) but it is not going to be installed
              Depends: libwxbase2.8-0 (>= 2.8.12.1+dfsg2) but it is not installable
              Depends: libwxgtk2.8-0 (>= 2.8.12.1+dfsg2) but it is not installable
E: Unable to correct problems, you have held broken packages.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: Giovanni62 on April 21, 2016, 11:56:24 pm
Exactly!
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: stahta01 on April 22, 2016, 01:11:50 am
I think I have the same problem with clean 16.04 install of Ubuntu (in VM).

The following packages have unmet dependencies:
 codeblocks : Depends: libcodeblocks0 (= 16.01~ubuntu16.04.1) but it is not going to be installed
              Depends: libwxbase2.8-0 (>= 2.8.12.1+dfsg2) but it is not installable
              Depends: libwxgtk2.8-0 (>= 2.8.12.1+dfsg2) but it is not installable
E: Unable to correct problems, you have held broken packages.


What version of wxgtk exists on Ubuntu 16.04?

Tim S.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: camilocc on April 22, 2016, 01:23:04 am
libwxgtk3.0-0v5

Should I try to find some repository which install older version of gtk ( 2.8 )?

If so, do you indicate some?
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: stahta01 on April 22, 2016, 02:16:33 am
libwxgtk3.0-0v5

Should I try to find some repository which install older version of gtk ( 2.8 )?

If so, do you indicate some?

You likely need to wait or self build Code::Blocks.
You could try the Debian stretch (Testing) deb files and see if that works.

NOTE: Code::Blocks built using wxWidgets 3.0 is NOT a stable as using wxWidgets 2.8.12.

Tim S.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: dmoore on April 22, 2016, 04:37:47 pm
There are dependency issues if you try to install codeblocks 16.01 on ubuntu 16.04 through ppa:damien-moore/codeblocks-stable. :-[

Given these packages are autobuilt on launchpad, presumably using a 16.04 VM, I'm not even sure how this is possible. I guess they recently took a bunch of packages out of their repos. Surely code::blocks isn't the only package with a 2.8 dependency?

Worst case, I can add wx2.8 packages to the PPA. I will investigate the options in the next few days, but I will keep an eye on this thread in case anyone else has a simple solution.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: camilocc on April 22, 2016, 05:40:29 pm
Cool! PPA had built against gtk 3.0 automatically.

But, in fact, it is not as stable as the previous one I was using at 15.10 (Code::Blocks 16.01 at Ubuntu 15.10, that I suppose to be linked against gtk 2.8 ).

For example, the version appears as subversion revision 10835 (and not 16.01).
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: dmoore on April 23, 2016, 03:07:20 am
Cool! PPA had built against gtk 3.0 automatically.

Which PPA are you talking about? It's not my codeblocks-stable one. This daily one based on current trunk (in my sig) IS working, however: https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: oBFusCATed on April 23, 2016, 09:11:02 am
But, in fact, it is not as stable as the previous one I was using at 15.10 (Code::Blocks 16.01 at Ubuntu 15.10, that I suppose to be linked against gtk 2.8 ).
In wx3.0 builds you have to disable the class browser in the code completion settings to prevent random crashes.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: dipodo on April 23, 2016, 11:48:39 am
Hello, newbie here...

Just passed by to tell you, that in Ubuntu Mate 16.04, I installed code::blocks from https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks and works like a charm!

Thanks and keep up the good work!
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: dmoore on April 26, 2016, 10:58:20 pm
Small update to say that I am in the process of adding wxwidgets2.8 into ppa:damien-moore/codeblocks-stable so the wx2.8 dependency can be resolved on 16.04. The build should be done in about an hour. If it succeeds, it would be great if someone can test it out:

https://code.launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: urGadfly on April 27, 2016, 12:21:11 pm
Hello don't know why but I'm still getting ascendancies issue... I'm supposing you already added wxwidgets2.8 into ppa:damien-moore/codeblocks-stable so the wx2.8 dependency can be resolved on 16.04.

The following packages have unmet dependencies:
 codeblocks : Depends: libcodeblocks0 (= 16.01~ubuntu16.04.1) but it is not going to be installed
              Depends: libwxbase2.8-0 (>= 2.8.12.1+dfsg2) but it is not going to be installed
              Depends: libwxgtk2.8-0 (>= 2.8.12.1+dfsg2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Do you currently have a solution for  this?
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: dmoore on April 27, 2016, 02:37:39 pm
Hello don't know why but I'm still getting ascendancies issue... I'm supposing you already added wxwidgets2.8 into ppa:damien-moore/codeblocks-stable so the wx2.8 dependency can be resolved on 16.04.

The following packages have unmet dependencies:
 codeblocks : Depends: libcodeblocks0 (= 16.01~ubuntu16.04.1) but it is not going to be installed
              Depends: libwxbase2.8-0 (>= 2.8.12.1+dfsg2) but it is not going to be installed
              Depends: libwxgtk2.8-0 (>= 2.8.12.1+dfsg2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Do you currently have a solution for  this?

Thanks for testing. I'm forcing a rebuild and hopefully that will do the trick. You can see the progress here (https://code.launchpad.net/~damien-moore/+recipe/codeblocks-16.01-release).

EDIT: It failed. I'm investigating...
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: Gabriel.LP.Abreu on April 28, 2016, 02:29:56 am

I have the same problem, I can not even install the library individually, and this is considering that my installation of Ubuntu 16.04 is fresh.
Ubuntu has dropped libwxbase2.8-0??
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: dmoore on April 28, 2016, 02:34:20 am

I have the same problem, I can not even install the library individually, and this is considering that my installation of Ubuntu 16.04 is fresh.
Ubuntu has dropped libwxbase2.8-0??

Yup. I'm going to upgrade to 16.04 and see if I can fix the problem with the PPA.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: Gabriel.LP.Abreu on April 28, 2016, 04:02:13 am

Yup. I'm going to upgrade to 16.04 and see if I can fix the problem with the PPA.

thank you Damien, i appreciate the help.
I do not know if this information helps, but the site "packages.ubuntu.com" does not list libwxbase2.8-0 as available in Xenial, as you can see here (http://packages.ubuntu.com/search?keywords=libwxbase)
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: dmoore on April 28, 2016, 04:30:43 am
Try again.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: Gabriel.LP.Abreu on April 28, 2016, 05:43:22 am
Try again.

is alive!! It is working hahahaha, Successfully installed and tested, perhaps the topic may already be marked as solved.
Now I go back to the studies, thank you! How do you fixed it?
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: dmoore on April 28, 2016, 06:41:01 am
I had the wrong version string for the wxWidgets build that I put in the PPA. Longer version here: http://askubuntu.com/questions/763754/launchpad-build-recipes-how-do-i-correctly-specify-build-dependencies-for-packa
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: Gabriel.LP.Abreu on April 28, 2016, 06:58:49 am
I had the wrong version string for the wxWidgets build that I put in the PPA. Longer version here: http://askubuntu.com/questions/763754/launchpad-build-recipes-how-do-i-correctly-specify-build-dependencies-for-packa

I was just reading this post and the bug report few seconds before returning to the forum and read your answer. Although I do not have much knowledge about it I could understand the problem. Probably this will help others who depend on the same package to resolve the dependency problems in 16.04.

and again thanks a lot! And sorry for bad english.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: Gabriele74 on April 30, 2016, 06:43:16 pm
Still not working for me on Ubuntu 64 bit 16.04:

$ sudo apt-get install codeblocks
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 codeblocks : Depends: libcodeblocks0 (= 16.01~ubuntu16.04.1) but 16.01 is to be installed
              Depends: codeblocks-common (= 16.01~ubuntu16.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Could it be something with my configuration? What can I do to help debug the problem?
Thanks in advance.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: dmoore on April 30, 2016, 10:41:43 pm
Still not working for me on Ubuntu 64 bit 16.04:

$ sudo apt-get install codeblocks
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 codeblocks : Depends: libcodeblocks0 (= 16.01~ubuntu16.04.1) but 16.01 is to be installed
              Depends: codeblocks-common (= 16.01~ubuntu16.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Could it be something with my configuration? What can I do to help debug the problem?
Thanks in advance.

Try apt-get removing codeblocks and wxwidgets and try again.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: Gabriele74 on May 02, 2016, 10:24:33 am
Quote
Try apt-get removing codeblocks and wxwidgets and try again.

Thanks a lot, that was it: I had some old codeblocks libraries which were not remove by apt-get --purge autoremove
Manually removing all codeblocks related libraries and doing apt-get install codeblocks solved the issue.

Thanks again  ;D
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: LETARTARE on October 29, 2017, 11:18:00 am
Hello,
I started with Linux; I chose 'Kubuntu-16.04-LTS-amd64 (xenial)' because you offer a package for 'wxwidgets2.8'.
Could you provide the gcc version to compile me 'wxwidgets2.8' because I used gcc-4.7 (with CodeBlocks-svn11210)  and is inconsistent?.

Thank you for this excellent work : this is the only version for ubuntu.
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: LETARTARE on October 30, 2017, 01:29:29 pm
@dmoore
I finally found the version -> g ++ - 5.4.0
Construction of CB-svn-11210 is correct and the contrib plugins.

Are you planning to provide 'wxWidgets-2.8' for 'Ubuntu-17.04 (zesty) and 17.10 (artful) ?
Title: Re: dependency problems - installation codeblocks 16:01 - ubuntu 16.04
Post by: oBFusCATed on October 30, 2017, 08:37:02 pm
I don't think it is a good idea for someone to bother with wx28 builds on ubuntu/debian. We should provide wx3x builds and try to fix as many issues as we can. C::B should be usable already on ubuntu.