News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)

Started by tool46and2, January 29, 2016, 07:41:13 AM

Previous topic - Next topic

camilocc

Quote from: MortenMacFly on February 02, 2016, 11:01:43 AM
...can you try this PPA and provide feedback, please?

https://code.launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable

Perfect!!

I used the following commands at Ubuntu 15.10 64-bit:

su root
add-apt-repository ppa:damien-moore/codeblocks-stable
apt-get update
apt-get install codeblocks


Perfect!!
[url="https://ca2.software/"]https://ca2.software/[/url]

[url="https://twitch.tv/ca2software"]https://twitch.tv/ca2software[/url]
[url="https://mixer.com/ca2software"]https://mixer.com/ca2software[/url]
[url="https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw"]https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw[/url]

tool46and2

Yeah, it works well, but it still doesn't include some features that are present in the Windows version.

Like automatically adding a newline and auto-indenting into a newly created block.
(pressing enter after a function definition auto indents, then pressing a left bracket completes the block)

That's the only reason I wanted to upgrade. It's a very convenient feature that is unfortunately missing.

I've checked my Windows C::B editor config, and compared that with the linux C::B config and there are absolutely no differences.

Why isn't this feature present in the linux release?
DAAAAAAAAAAAAAAAYYYYYYYUUUUUUMMMMMM!!!!!

MortenMacFly

Quote from: tool46and2 on February 03, 2016, 05:53:54 AM
Why isn't this feature present in the linux release?
There is no functional difference between the Linux and Windows version except the Widows-only plugins (that make no sense under Linux anyways). Please have a look at the editor properties. So not the settings file but really the editor config (UI). It is not recommended to work directly on config files as it may corrupt them and make them unusable. Settings should only be changed through C::B itself.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dmoore

Quote from: tool46and2 on February 03, 2016, 05:53:54 AM
Yeah, it works well, but it still doesn't include some features that are present in the Windows version.

Like automatically adding a newline and auto-indenting into a newly created block.
(pressing enter after a function definition auto indents, then pressing a left bracket completes the block)

That's the only reason I wanted to upgrade. It's a very convenient feature that is unfortunately missing.

I've checked my Windows C::B editor config, and compared that with the linux C::B config and there are absolutely no differences.

Why isn't this feature present in the linux release?

Did you install the codeblocks-contrib package? Do you have all the same plugins enabled (particularly smart indent, I think)?
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

jimistephen

I was having the same problem with 14.04. Got a hold of Damien and he helped me work out the ppa (was saying I was imputing more than one repository) have it working fine now.

tool46and2

Quote from: dmoore on February 03, 2016, 08:08:02 AM
Did you install the codeblocks-contrib package? Do you have all the same plugins enabled (particularly smart indent, I think)?

Nope, I didn't even know that a codeblocks-contrib package existed nor is it mentioned anywhere that I should install it.

But yeah, installing the contrib package fixed it. Thanks.

If anyone else wants auto indent run:

    sudo apt-get install codeblocks-contrib

(you probably do want this, it speeds up coding if you're a slow typer)
DAAAAAAAAAAAAAAAYYYYYYYUUUUUUMMMMMM!!!!!

beauxq

Using that ppa, for me, it still says it can't satisfy the dependencies.

add-apt-repository ppa:damien-moore/codeblocks-stable
apt-get update
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~ubuntu15.10.1) but 16.01 is to be installed
              Depends: codeblocks-common (= 16.01~ubuntu15.10.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Edit:
nevermind, I found the problem. Something I tried to do earlier was messing it up. I had to undo what I tried to do earlier.