Broken package "codeblocks" or "codeblocks-contrib"

Bug #1804294 reported by Cannot Remember
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
codeblocks (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

The package "codeblocks" is partially broken in the repos. Package "libhunspell" has been updated to a newer version after "codeblocks" was build and therefore a dependency for package "codeblocks" (or "codeblocks-contrib") cannot be met. The package "codeblocks" should probably be rebuild in order to fix this.

affects: launchpad → ubuntu
Revision history for this message
Cannot Remember (dinkidonk) wrote :

Just wanted to add further info: Kubuntu 18.04.01, libhunspell-1.4-0 needed by codeblocks-common but only libhunspell-1.6-0 is available. Installing codeblocks-common from *.deb works (without the spell checker plugin, though), but the package is listed as broken in Muon PM.

Paul White (paulw2u)
affects: ubuntu → codeblocks (Ubuntu)
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting.

Could you please detail more where the bug occurs, is this when attempting to install codeblocks or when attempting to run it? Do you get a specific error message?

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. This automatically adds additional debug information such as version numbers. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in codeblocks (Ubuntu):
status: New → Incomplete
tags: added: bionic
removed: broken package
Revision history for this message
Cannot Remember (dinkidonk) wrote :

When I install the "codeblocks" package, the "codeblocks-contrib" package (containing vital plugins for codeblocks) cannot be installed due to a mismatch in versions. codeblocks-contrib dependency: libhunspell-1.4-0, but only libhunspell-1.6-0 is available in repos. Executing "sudo apt install codeblocks-contrib" from a command line will fail due to the mismatch of versions. AFAICT ubuntu-bug produces no useful info because the problematic package is not (and cannot be) installed from the repos.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

>Executing "sudo apt install codeblocks-contrib" from a command line will fail due to the mismatch of versions.

Please include such error messages the next time, that makes it a lot easier to track down the issue. Especially when I couldn't reproduce the problem when installing codeblocks on 18.04

> AFAICT ubuntu-bug produces no useful info

It would be rather limited when the package isn't installed, I'll agree there. But it would have said two interesting things; 1) that you are running 18.04 so you don't have to repeat that, and 2) that your system has been upgraded from an older Ubuntu release.

I've been looking more into it, and as mentioned above I was unable to reproduce the issue since codeblocks installed without any issues. In 18.04 the hunspell version has been updated, so that libhunspell-1.6-0 is available and all relevant packages in the repo has been rebuilt to use this. Your locally installed libhunspell-1.4-0 is presumably a left-over from an upgrade from a previous Ubuntu release.

You can verify this by comparing `apt policy libhunspell-1.6-0` and `apt policy libhunspell-1.4-0`. The first one will show installed and available version along with a repo-URL where it originated, while the latter will show the locally installed version without any remote url.

Unless you know you are using the older libhunspell-1.4-0, for instance for older packages which require that specific version and haven't been upgraded to use 1.6, it should be safe to remove to enable installation of codeblocks. Again, it is most likely hanging around after an Ubuntu release upgrade, since the 1.4 package has been removed in favor of 1.6 in the 18.04 repo.

tags: added: unmetdeps
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

>it should be safe to remove to enable installation of codeblocks.

If you are unsure, see which other packages will be marked for removal. There might be older packages which haven't been updated for 1.6 and still require 1.4. If this is the case, you may need to choose between running these packages and running codeblocks, since it seems the two cannot coexist.

Revision history for this message
Cannot Remember (dinkidonk) wrote :

I have a fresh install of Kubuntu 18.04.01 - not an upgrade, thus no leftovers. I can install "codeblocks" from the repos, but the "codeblocks-common" package is not being installed along with it, nor can it be installed from repos. Vital plugins such as wxSmith, Autoversioning, DoxyBlocks and so on does not work without the "codeblocks-common" package. The "codeblocks-common" package in the repos has been built against libhunspell-1.4 but only version 1.6 of that package is available, so that is what I would call a broken package.

I have built codeblocks (with plugins) against the libhunspell-dev package (v1.6, from repos), and now everything works as it was supposed to do from the repos! :)

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

>I have a fresh install of Kubuntu 18.04.01 - not an upgrade, thus no leftovers.

Hm, strange. From what I can see I was able to succesfully install codeblocks-common without any issues on my 18.04 system:
$ apt policy codeblocks-common
codeblocks-common:
  Installed: 16.01+dfsg-2.1
  Candidate: 16.01+dfsg-2.1
  Version table:
 *** 16.01+dfsg-2.1 500
        500 http://no.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://no.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
        100 /var/lib/dpkg/status

and the libhunspell-1.4-0 package doesn't seem to exist in the repositories, so I'm really curious where it might be coming from.

$ apt policy libhunspell-1.4-0
N: Unable to locate package libhunspell-1.4-0
N: Couldn't find any package by glob 'libhunspell-1.4-0'
N: Couldn't find any package by regex 'libhunspell-1.4-0'

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for codeblocks (Ubuntu) because there has been no activity for 60 days.]

Changed in codeblocks (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.