News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Trouble shoot with codeblocks under Ubuntu 8.10 !

Started by WILL, December 20, 2008, 09:26:40 AM

Previous topic - Next topic

WILL

I just got some automatic updates from Ubuntu 8.10 but then I was unable to use CB anymore. Then I tried to reinstall CB follow this link : http://www.futuredesktop.org/codeblocks_on_ubuntu_8.04.html
Then from the terminal I got these error messages :
Quotesudo apt-get install codeblocks
bash: codeblocks: command not found
Ken@Widget:~$ 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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  codeblocks: Depends: codeblocks-common (= 8.02svn5340-0ubuntu1~feisty) but it is not going to be installed
              Recommends: codeblocks-contrib (= 8.02svn5340-0ubuntu1~feisty) but it is not going to be installed
E: Broken packages

What is the problem that I'm having ? Anyone could help me out ? Thanks in advance !


Jenna

Something seems to be messed up with your configuration or with the package dependencies.

If you install for intrepid ibex, you should not have dependencies against feisty.
After looking in the package pool and the "Packages.gz"-file the packages for intrepid (8.10) seem to be the same like the packages for hardy (8.04).

Make sure you have the correct line in "/etc/apt/sources.list", most likely deb http://lgp203.free.fr/ubuntu/ intrepid universe.

You can also try my repo (see sig), but packages are normaly at the same revision then last "official" nightly of C::B (see http://forums.next.codeblocks.org/index.php/board,20.0.html.
The packages in my repo are build in a debian edge chroot, but are widely used on ubuntu-systems too.

pasgui

I have updated, version 5340 (http://lgp203.free.fr/spip/spip.php?article1) the repo with the last structure provided by Jens into the trunk. To update from the version 5322 or older, you need to uninstall Codeblocks and after try:
sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib-common codeblocks-contrib

Let's me now if you succeed or not !

Best regards, pasgui

mopslik

I also got the auto-update notification in my system tray yesterday evening, and I'm having the same troubles installing Code::Blocks. Worked fine for months, but now is borked. I'm using Ubuntu 7.10. Here's the output doing a plain old apt-get install codeblocks (the old version has been removed):

The following packages have unmet dependencies:
  codeblocks: Depends: codeblocks-common (= 8.02svn5340-0ubuntu1~feisty) but it is not going to be installed
E: Broken packages


And here's the code when trying the above suggestion, after apt-get update:

The following packages have unmet dependencies:
  codeblocks: Depends: codeblocks-common (= 8.02svn5340-0ubuntu1~feisty) but it is not going to be installed
  codeblocks-contrib: Depends: codeblocks-contrib-common (= 8.02svn5340-0ubuntu1~feisty) but 8.02svn5340-0ubuntu1~hardy is to be installed
  codeblocks-contrib-common: Conflicts: codeblocks-contrib (< 8.02svn5340-0ubuntu1~hardy) but 8.02svn5340-0ubuntu1~feisty is to be installed
E: Broken packages

pasgui

It should work now. Sorry for the trouble.

Best regards, pasgui

mopslik

No worries, works like a charm now. Thanks for looking after that.  Cheers!

WILL

Sorry guys for my English, but I couldn't understand how mopslik and pasgui could solve the problem ?
From here :
QuoteI also got the auto-update notification in my system tray yesterday evening, and I'm having the same troubles installing Code::Blocks. Worked fine for months, but now is borked. I'm using Ubuntu 7.10. Here's the output doing a plain old apt-get install codeblocks (the old version has been removed):

Code:

The following packages have unmet dependencies:
  codeblocks: Depends: codeblocks-common (= 8.02svn5340-0ubuntu1~feisty) but it is not going to be installed
E: Broken packages


And here's the code when trying the above suggestion, after apt-get update:

Code:

The following packages have unmet dependencies:
  codeblocks: Depends: codeblocks-common (= 8.02svn5340-0ubuntu1~feisty) but it is not going to be installed
  codeblocks-contrib: Depends: codeblocks-contrib-common (= 8.02svn5340-0ubuntu1~feisty) but 8.02svn5340-0ubuntu1~hardy is to be installed
  codeblocks-contrib-common: Conflicts: codeblocks-contrib (< 8.02svn5340-0ubuntu1~hardy) but 8.02svn5340-0ubuntu1~feisty is to be installed
E: Broken packages
You got the same error messages like I did but then how could you solve it ?
@Jen : Is it your signature ? http://apt.jenslody.de/-the one that you mentioned above ? Since I have to work the whole day, I haven't had time to try it, I will try and reply as soon as I can. Thanks a lot for your help !

Jenna

Quote from: WILL on December 21, 2008, 08:58:11 AM
@Jen : Is it your signature ? http://apt.jenslody.de/-the one that you mentioned above ? Since I have to work the whole day, I haven't had time to try it, I will try and reply as soon as I can. Thanks a lot for your help !

Without th "-the" it's correct (http://apt.jenslody.de/) .

But you should try pasgui's repo first.

If I understand right, there was something wrong with his control-file, that leads to wrong dependencies, you should try an apt-get update and a reinstall of codeblocks first, before you use mine.

Pasgui's repo is build on and for ubuntu, mine is build on and for debian. There should normally be any problem with that, but I cannot guarantee that it works in all cases.

Never change a running system !

WILL

Thanks Jens, got it worked :D ! Just reinstall cb then it work normally ! I'd appreciate that ;) !

WILL

I got a new problem :( ! I've just bought a new PC then I tried to install CB but the same error message occurred :( ! Now I haven't had CB installed so how could I reinstall it to solve the problem ? Any help ?

MortenMacFly

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]

Jenna

If you use my repo and "apt-get update" or any other package-manager (I prefer synaptic) all the dependencies should be set (and fullfilled) automatically.

If you install the .deb-files manually (from pasgui's repo) you have to install everything "dpkg" or "apt-get" wants (most likely some wxWidgets-packages).

I'm on windows at the moment, because I work at home today, so I can't tell you the packages needed for C::B.

WILL

Just work around, I used all the link follow your signature( Jens ) and it worked :D ! Thanks anyways ;) !