LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-30-2014, 01:42 AM   #1
Lord Northern
LQ Newbie
 
Registered: Mar 2013
Posts: 21

Rep: Reputation: Disabled
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

Last edited by Lord Northern; 12-30-2014 at 01:49 AM.
 
Old 12-30-2014, 07:57 AM   #2
fuser312
Member
 
Registered: Nov 2012
Posts: 32

Rep: Reputation: Disabled
Have you tried downloading and installing the binary? http://www.codeblocks.org/downloads/binaries#linux
 
Old 12-30-2014, 08:04 AM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by Lord Northern View Post
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
 
Old 12-30-2014, 08:14 AM   #4
Lord Northern
LQ Newbie
 
Registered: Mar 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
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?
 
Old 12-30-2014, 08:16 AM   #5
Lord Northern
LQ Newbie
 
Registered: Mar 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
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
 
Old 12-30-2014, 08:28 AM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
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.
 
Old 12-30-2014, 08:33 AM   #7
Lord Northern
LQ Newbie
 
Registered: Mar 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-30-2014, 08:42 AM   #8
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
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.
 
Old 12-30-2014, 08:44 AM   #9
Lord Northern
LQ Newbie
 
Registered: Mar 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
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?
 
Old 12-30-2014, 08:48 AM   #10
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by Lord Northern View Post
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...

Last edited by Head_on_a_Stick; 12-30-2014 at 08:56 AM.
 
Old 12-30-2014, 08:59 AM   #11
Lord Northern
LQ Newbie
 
Registered: Mar 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
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!
 
Old 12-30-2014, 09:15 AM   #12
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
You're welcome -- glad you got it sorted
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Install Debian Jessie alongside CentOS 7 on a Sony Vaio Ztcoracat Debian 59 12-12-2014 05:19 PM
[SOLVED] Trying to install Code::Blocks, wxWidgets on Debian Wheezy kathbeau Linux - Software 5 11-19-2014 01:05 PM
How do I install a program skype On debian testing (jessie) DR.PRO Linux - Software 9 10-27-2014 06:40 AM
install code::blocks blackcore Linux - Software 2 05-27-2010 07:32 AM
LXer: How-To: Compile and Install Code::Blocks from Source in Debian Lenny LXer Syndicated Linux News 0 01-12-2009 09:40 PM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration