LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to install Code::Blocks on Debian Jessie (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-install-code-blocks-on-debian-jessie-4175529533/)

Lord Northern 12-30-2014 01:42 AM

Trying to install Code::Blocks on Debian Jessie
 
Hey.
I'm trying to install Code::Blocks on Debian Jessie by doing apt-get install codeblocks and it keeps failing:

Code:


The following information may help to resolve the situation:

The following packages have unmet dependencies:
 codeblocks : Depends: libcodeblocks0 (= 13.12svn10050-1) but it is not going to be installed
              Depends: libwxbase2.8-0 (>= 2.8.12.1) but it is not installable
              Depends: libwxgtk2.8-0 (>= 2.8.12.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
root@debian:/home/northern#

It installs fine on Debian Wheezy, but this is what I'm faced with on jessie. Is there anyway to solve it?

Thanks

fuser312 12-30-2014 07:57 AM

Have you tried downloading and installing the binary? http://www.codeblocks.org/downloads/binaries#linux

Head_on_a_Stick 12-30-2014 08:04 AM

Quote:

Originally Posted by Lord Northern (Post 5292396)
Code:

E: Unable to correct problems, you have held broken packages.

That's not good...

What is the output of:
Code:

cat /etc/apt/sources.list
ls /etc/apt/sources.list.d/

Just to note, codeblocks is not available in the jessie repositories:
https://packages.debian.org/search?k...ng&section=all

Lord Northern 12-30-2014 08:14 AM

Yes.
I downloaded the testing version, unpacked it, and then did dpkg -i *.deb and got lots of these:

Quote:

dpkg: error processing package codeblocks (--install):
dependency problems - leaving unconfigured
Setting up codeblocks-common (13.12-1) ...
dpkg: dependency problems prevent configuration of codeblocks-contrib:
codeblocks-contrib depends on libwxbase2.8-0 (>= 2.8.12.1); however:
Package libwxbase2.8-0 is not installed.
codeblocks-contrib depends on libwxgtk2.8-0 (>= 2.8.12.1); however:
Package libwxgtk2.8-0 is not installed.
codeblocks-contrib depends on codeblocks (= 13.12-1); however:
Package codeblocks is not configured yet.
I must be doing something completely wrong because I very much fit the title of this forum :), so are there any ideas as to how to do it?

Lord Northern 12-30-2014 08:16 AM

here's the output from these commands:

Quote:

root@debian:/# cat /etc/apt/sources.list
deb http://ftp.de.debian.org/debian testing main contrib non-free
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free

deb http://repos.codelite.org/wx3.0.2/debian/ wheezy libs
Quote:

root@debian:/# ls /etc/apt/sources.list.d/
google-chrome.list

Head_on_a_Stick 12-30-2014 08:28 AM

Take the "wheezy" source out and change "testing" to "jessie" (jessie moves to Stable soon, that entry will break your system).

Then run:
Code:

# apt-get update
# aptitude -s safe-upgrade

And post the output of the second command here plz.

The associated libraries required for codeblocks are also not in the jessie repositories...

You can only install that package (and it's libraries) from source in a jessie system.

Lord Northern 12-30-2014 08:33 AM

Did as instructed, and so here's what I got:

Quote:

root@debian:/# aptitude -s safe-upgrade
The following packages will be REMOVED:
libjpeg8{u} libmusicbrainz5-0{u} libtorque2{u}
0 packages upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 1,149 kB will be freed.
Do you want to continue? [Y/n/?] y
Would download/install/remove packages.

Head_on_a_Stick 12-30-2014 08:42 AM

Does that codelite.org site offer any jessie repositories?

If you really need whatever you got from there, use those instead.

However, you really shouldn't be using external repositories.

I say again: you cannot install codeblocks using the jessie repositories.
You will have to build the program and it's dependency chain from source.

Or use Debian sid, of course.
Do not attempt to add sid repositories to your jessie system -- borkage is highly likely in such a scenario.

Lord Northern 12-30-2014 08:44 AM

Ok, this sounds interesting.
Could you give me a little more info on how to do it? Like, how can I first diagnose which packages exactly I'm missing?

Head_on_a_Stick 12-30-2014 08:48 AM

Quote:

Originally Posted by Lord Northern (Post 5292612)
Like, how can I first diagnose which packages exactly I'm missing?

APT has already told you -- see your first post.

With your sources.list the way it is now, an `apt-get upgrade` will remove whatever you installed from codelite.org (the last 2 libraries listed in the `aptitude` output are not in jessie either).

What did you install from there?

EDIT: Typo...

Lord Northern 12-30-2014 08:59 AM

yay! I actually downloaded the source code from Code::Blocks, did ./configure/make/make install, then it wouldn't start, so I went to the package manager, and removed broken packages.

Then, it worked.

Thanks!

Head_on_a_Stick 12-30-2014 09:15 AM

You're welcome -- glad you got it sorted :)


All times are GMT -5. The time now is 05:09 PM.