Author Topic: install ppa:damien-moore/codeblocks failed under ubuntu 14.04 LTS  (Read 7678 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
I'm quite new to ubuntu, and I originally have the ubuntu supplied codeblocks 13.12 version install by apt-get install

Now, I think I need to use a nightly build version, so I choose this one:

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

after adding the ppa, and I just install it. (Note I do not uninstall the old official 13.12 version)

Code
zyh@zyh-desktop:~$ sudo apt-get install codeblocks
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  codeblocks-common codeblocks-contrib codeblocks-contrib-common
  codeblocks-libwxcontrib0 libcodeblocks0 libwxsmithlib0
Suggested packages:
  libwxgtk2.8-dev libwxgtk3.0-dev wx-common
Recommended packages:
  cppcheck cscope cccc
The following NEW packages will be installed:
  codeblocks-contrib-common codeblocks-libwxcontrib0
The following packages will be upgraded:
  codeblocks codeblocks-common codeblocks-contrib libcodeblocks0
  libwxsmithlib0
5 upgraded, 2 newly installed, 0 to remove and 42 not upgraded.
Need to get 11.7 MB of archives.
After this operation, 1,506 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/damien-moore/codeblocks/ubuntu/ trusty/main codeblocks-libwxcontrib0 amd64 16.01p~launchpadrev8944~ubuntu14.04.1 [546 kB]
Get:2 http://ppa.launchpad.net/damien-moore/codeblocks/ubuntu/ trusty/main codeblocks-contrib amd64 16.01p~launchpadrev8944~ubuntu14.04.1 [2,594 kB]
Get:3 http://ppa.launchpad.net/damien-moore/codeblocks/ubuntu/ trusty/main libwxsmithlib0 amd64 16.01p~launchpadrev8944~ubuntu14.04.1 [941 kB]
Get:4 http://ppa.launchpad.net/damien-moore/codeblocks/ubuntu/ trusty/main libcodeblocks0 amd64 16.01p~launchpadrev8944~ubuntu14.04.1 [2,147 kB]
Get:5 http://ppa.launchpad.net/damien-moore/codeblocks/ubuntu/ trusty/main codeblocks-contrib-common all 16.01p~launchpadrev8944~ubuntu14.04.1 [463 kB]
Get:6 http://ppa.launchpad.net/damien-moore/codeblocks/ubuntu/ trusty/main codeblocks amd64 16.01p~launchpadrev8944~ubuntu14.04.1 [1,672 kB]
Get:7 http://ppa.launchpad.net/damien-moore/codeblocks/ubuntu/ trusty/main codeblocks-common all 16.01p~launchpadrev8944~ubuntu14.04.1 [3,333 kB]
Fetched 11.7 MB in 1min 41s (115 kB/s)                                         
Selecting previously unselected package codeblocks-libwxcontrib0.
(Reading database ... 293793 files and directories currently installed.)
Preparing to unpack .../codeblocks-libwxcontrib0_16.01p~launchpadrev8944~ubuntu14.04.1_amd64.deb ...
Unpacking codeblocks-libwxcontrib0 (16.01p~launchpadrev8944~ubuntu14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/codeblocks-libwxcontrib0_16.01p~launchpadrev8944~ubuntu14.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/codeblocks/wxContribItems/libwxcustombutton.so.0.0.1', which is also in package codeblocks-contrib 13.12-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../codeblocks-contrib_16.01p~launchpadrev8944~ubuntu14.04.1_amd64.deb ...
Unpacking codeblocks-contrib (16.01p~launchpadrev8944~ubuntu14.04.1) over (13.12-3) ...
Preparing to unpack .../libwxsmithlib0_16.01p~launchpadrev8944~ubuntu14.04.1_amd64.deb ...
Unpacking libwxsmithlib0 (16.01p~launchpadrev8944~ubuntu14.04.1) over (13.12-3) ...
Preparing to unpack .../libcodeblocks0_16.01p~launchpadrev8944~ubuntu14.04.1_amd64.deb ...
Unpacking libcodeblocks0 (16.01p~launchpadrev8944~ubuntu14.04.1) over (13.12-3) ...
Selecting previously unselected package codeblocks-contrib-common.
Preparing to unpack .../codeblocks-contrib-common_16.01p~launchpadrev8944~ubuntu14.04.1_all.deb ...
Unpacking codeblocks-contrib-common (16.01p~launchpadrev8944~ubuntu14.04.1) ...
Preparing to unpack .../codeblocks_16.01p~launchpadrev8944~ubuntu14.04.1_amd64.deb ...
Unpacking codeblocks (16.01p~launchpadrev8944~ubuntu14.04.1) over (13.12-3) ...
Preparing to unpack .../codeblocks-common_16.01p~launchpadrev8944~ubuntu14.04.1_all.deb ...
Unpacking codeblocks-common (16.01p~launchpadrev8944~ubuntu14.04.1) over (13.12-3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)

The result C::B can run, but failed to load some plugins.
The conflicts comes from an old 13.12 library? Any one knows how to fix it? Thanks.

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: install ppa:damien-moore/codeblocks failed under ubuntu 14.04 LTS
« Reply #1 on: February 18, 2016, 06:16:51 am »
Try to remove the old codeblocks-contrib

Code
zyh@zyh-desktop:~$ sudo apt-get remove codeblocks-contrib
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  codeblocks-contrib
0 upgraded, 0 newly installed, 1 to remove and 42 not upgraded.
6 not fully installed or removed.
After this operation, 12.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 293905 files and directories currently installed.)
Removing codeblocks-contrib (16.01p~launchpadrev8944~ubuntu14.04.1) ...
Setting up codeblocks-common (16.01p~launchpadrev8944~ubuntu14.04.1) ...
Setting up libcodeblocks0 (16.01p~launchpadrev8944~ubuntu14.04.1) ...
Setting up codeblocks (16.01p~launchpadrev8944~ubuntu14.04.1) ...
Setting up codeblocks-contrib-common (16.01p~launchpadrev8944~ubuntu14.04.1) ...
Setting up libwxsmithlib0 (16.01p~launchpadrev8944~ubuntu14.04.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
zyh@zyh-desktop:~$ sudo apt-get install codeblocks
Reading package lists... Done
Building dependency tree       
Reading state information... Done
codeblocks is already the newest version.
The following packages were automatically installed and are no longer required:
  codeblocks-contrib-common libwxsmithlib0 valgrind
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
zyh@zyh-desktop:~$ codeblocks
...

Now, the started codeblocks only have core plugins. :(
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: install ppa:damien-moore/codeblocks failed under ubuntu 14.04 LTS
« Reply #2 on: February 18, 2016, 06:40:38 am »
OK, problem solved:
I just run:

Code
sudo apt-get autoremove
sudo apt-get install codeblocks-contrib
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

CHAOS-THEORY

  • Guest
Re: install ppa:damien-moore/codeblocks failed under ubuntu 14.04 LTS
« Reply #3 on: February 18, 2016, 11:40:11 am »
You might also be able to get the dependencies from the code::blocks's main website for Debian since Ubuntu is based on Debian they both share the same package format.
http://www.ubuntu.com/about/about-ubuntu/ubuntu-and-debian

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: install ppa:damien-moore/codeblocks failed under ubuntu 14.04 LTS
« Reply #4 on: February 18, 2016, 02:01:39 pm »
You might also be able to get the dependencies from the code::blocks's main website for Debian since Ubuntu is based on Debian they both share the same package format.
http://www.ubuntu.com/about/about-ubuntu/ubuntu-and-debian

Thanks for the hint, but sorry I don't quite understand. Where is the dependencies I can found from C::B's main site?
« Last Edit: February 18, 2016, 02:50:03 pm by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

CHAOS-THEORY

  • Guest

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: install ppa:damien-moore/codeblocks failed under ubuntu 14.04 LTS
« Reply #6 on: February 18, 2016, 07:26:49 pm »
Exactly
http://codeblocks.org/downloads/26#linux


Debian and Ubuntu packages aren't always compatible. For a while you couldn't install Jens' debian packages on Ubuntu.

CHAOS-THEORY

  • Guest
Re: install ppa:damien-moore/codeblocks failed under ubuntu 14.04 LTS
« Reply #7 on: February 18, 2016, 07:45:00 pm »
That is why i use the word might, but thanks for pointing that out
Quote
You might also be able to get...