Author Topic: Won't install on ubuntu lucid  (Read 5820 times)

Offline Datajunkie

  • Single posting newcomer
  • *
  • Posts: 3
Won't install on ubuntu lucid
« on: July 28, 2010, 11:01:52 pm »
Ok here is the issue I am having... I had codeblocks running in ubuntu hardy and have a huge program setup in codeblocks. I am needing to continue the program and currently having issues installing codeblocks again. I have tried src, deb file, binary and aptitude to get it to install and everyone has failed the apt error is:

Need to get 0B/4,195kB of archives.
After this operation, 10.9MB of additional disk space will be used.
(Reading database ... 225537 files and directories currently installed.)
Unpacking codeblocks (from .../codeblocks_8.02-0ubuntu4_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/codeblocks_8.02-0ubuntu4_i386.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/codesnippets.1.gz', which is also in package codeblocks-contrib-common 0:10.05-1
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for gnome-icon-theme ...
Processing triggers for man-db ...
Processing triggers for menu ...
Processing triggers for python-support ...
Errors were encountered while processing:
 /var/cache/apt/archives/codeblocks_8.02-0ubuntu4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Won't install on ubuntu lucid
« Reply #1 on: July 29, 2010, 07:04:40 am »
You try to install 8.02 over 10.05, this does not work.
You can use 10.05 from our download-site, but have to use wxwidgets from apt.wxwidgets.org in this case (not the one provided by ubuntu). Read the notes on the download-site.
Or use pasgui's repo.

If you really want to use 8.02, you can uninstall 10.05 before.
The user settings are below the users home-dir and will not be deleted.

Nevertheless to be sure that nothing wents wrong with your setup you should backup ~/.codeblocks/ in this case.

Offline Datajunkie

  • Single posting newcomer
  • *
  • Posts: 3
Re: Won't install on ubuntu lucid
« Reply #2 on: July 29, 2010, 06:50:43 pm »
I am using 10.4 I did a reinstall/upgrade and I am trying to get codeblocks to build in Lucid... I have tried every option so far on the site.

This is what I get from that repo:

E: Broken packages
abadon@Raptor:~$ sudo apt-get install codeblocks-contrib
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-contrib: Depends: libwxsmithlib0 (= 10.05-0ubuntu1~lucid) but 10.05-1 is to be installed
                      Depends: codeblocks-contrib-common (= 10.05-0ubuntu1~lucid) but it is not going to be installed
                      Depends: codeblocks (= 10.05-0ubuntu1~lucid) but it is not going to be installed
E: Broken packages

It has says:

codeblocks-contrib: Depends: libwxsmithlib0 (= 10.05-0ubuntu1~lucid) but 10.05-1 is to be installed
                      Depends: codeblocks-contrib-common (= 10.05-0ubuntu1~lucid) but it is not going to be installed
                      Depends: codeblocks (= 10.05-0ubuntu1~lucid) but it is not going to be installed
E: Broken packages
abadon@Raptor:~$ 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.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  codeblocks: Depends: libcodeblocks0 (= 10.05-0ubuntu1~lucid) but 10.05-1 is to be installed
              Recommends: codeblocks-contrib (= 10.05-0ubuntu1~lucid) but it is not going to be installed
E: Broken packages

And I get this for trying to get libcodeblocks0:

E: Broken packages
abadon@Raptor:~$ sudo apt-get install libcodeblocks0
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libcodeblocks0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


All the dependacies seem to have been placed properly from my attempt at a binary install...

« Last Edit: July 29, 2010, 07:03:38 pm by Datajunkie »

Offline Datajunkie

  • Single posting newcomer
  • *
  • Posts: 3
Re: Won't install on ubuntu lucid
« Reply #3 on: July 29, 2010, 07:33:19 pm »
Ok I figured it out finally.. There is an error in the repo where it tells you that you need GTK 2.0. However this has been default in all gnome builds since GTK 2 was released... What it should say is that it needs GTK Development Libraries... Now it is building like a dream...

Thanks

Nevermind I will just set the program up in Ajunta... After a successful build I get this error now and I have spent way too much time dealing with this IDE....

 codeblocks
codeblocks: relocation error: /usr/lib/libcodeblocks.so.0: symbol _ZN13wxAuiNotebook7SetFontERK6wxFont, version WXU_2.8.5 not defined in file libwx_gtk2u_aui-2.8.so.0 with link time reference

I really liked codeblocks it was a great IDE but now it is a just a time liability...
 
« Last Edit: July 29, 2010, 07:38:50 pm by Datajunkie »