distro or package error?

Am new to Linux on Mint Cinnamon 20.2 (Based on Ubuntu 20.04) and just installed the stable version of darktable for Ubuntu, from the opensuse site, using the method ‘add repository and install manually’ following the 20.04 instructions.
: Install package graphics:darktable:stable / darktable

Two things immediately stand out:
First, when I turn all modules off and set demosaic to ‘photosite color’, instead of getting a green looking image, I get a monochrome.
Second, my lens ‘Nikon AF-P DX Nikkor 18-55mm f/3.5-5.6G VR’ is not found in lens correction. It was always available in 3.6.1 and earlier versions using my old macbook.

Are these quirks of the package for Ubuntu 20.04, bugs, or do I need to install something else to make it work?

The lens database isn’t part of the darktable package, but a separate package and it might not be up-to-date (look for slr-nikon.xml, your lens should be present, it is on mine). Maybe lensfun isn’t even installed (not sure if it is by default on Mint).

Mint is based on Ubuntu, which in turn is based on Debian. If I look at Debian’s lensfun package on my box it comes with lensfun-update-data. This needs to be run to update your lensfun database.

Open Mint’s package manager and look for lensfun. If it is at all like Debian it can also tell you what it installed.

I don’t know why the demosaic thing happens.

1 Like

A monochrome image would correspond to the result of “passthrough (monochrome)”, the option just above the ‘photosite color’ option. Could you check which is actually used?

@Jade_NL
Thanks very much, installing lensfun solved the issue.

@rvietor
Yes ‘photosite color’ is selected. It is green in preview top left, but monochrome in centre. Selecting ‘monochrome’ gives a result visually the same, but alters the histogram.

3.6.1~git7.60226c6f5f-1

As a follow up, figuring the opensuse packages didn’t come with all the dependencies, I ran these Ubuntu instructions from the darktable github page:

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

And was met with this message:

E: You must put some ‘deb-src’ URIs in your sources.list

What to do?

EDIT: I installed dependencies from here: https://github.com/darktable-org/darktable/wiki/Building-darktable#ubuntu-20041-and-2010

Correct? Seemed to work except for openjdk

what is missing in the OBS package? we build against the distro and use any local packages. so everything should be in the distro repositories.

I think it was just lensfun. I don’t know if anything else is missing, but it seems to be working fine.

EDIT: Actually when I ran darktable-cltest for the first time ‘libOpenCL’ was missing too, I had to install it independently.