Darktable Build Dependency Issue on Ubuntu

I’m attempting to install darktable from source to add raw support for my camera and I’m running into some issues getting the linux dependencies installed. I’m using the command listed on the github readme and it gives me an error regarding libexif:

$ sed -e '/^#\sdeb-src /s/^# *//;t;d' "/etc/apt/sources.list" \
  | sudo tee /etc/apt/sources.list.d/darktable-sources-tmp.list > /dev/null \
  && (
    sudo apt-get update
    sudo apt-get build-dep darktable
  )
sudo rm /etc/apt/sources.list.d/darktable-sources-tmp.list
...    
Reading package lists... Done
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
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:
 libexiv2-dev : Depends: libexiv2-27 (= 0.27.5-3ubuntu1) but 0.27.5-3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

If I attempt to just install the libexiv2-dev by itself I get the same error.

Has anyone running into an error like this or have some ideas on how to resolve it? This is on Ubuntu 22.04.

Did a little more digging via apt policy :

$ apt policy libexiv2-dev
libexiv2-dev:
  Installed: (none)
  Candidate: 0.27.5-3ubuntu1
  Version table:
     0.27.5-3ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
$ apt policy libexiv2-27
libexiv2-27:
  Installed: 0.27.5-3.1
  Candidate: 0.27.5-3.1
  Version table:
 *** 0.27.5-3.1 100
        100 /var/lib/dpkg/status
     0.27.5-3ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

Seems that there is a conflict between the “-1” and “ubuntu1” versions of the package?

Btw, for OM System support, you’ll also want to build exiv2 from source (0.27-maintenance branch from github).

1 Like

Thanks, @kmilos. I installed the exiv2 maintenance branch from source as you suggested and then ran the apt install command listed here for installing the minimal dependencies with libexiv2 removed. This avoided the error above and allowed darktable to be built successfully per the instructions here.

Now I’m just having issues using this source darktable install to open the OM-5 raw files, but I’ll continue that discussion in the other thread.