4.2 obs install problem on ubuntu 22.04

I guess I need help: I installed the last ubuntu 2.04 this summer (I’m a sucker for the LTS versions) and that came with dt 4.0.0. All good. then I fond the OBS repos, added the ppa, installed 4.2 and … when I open dt I still have 4.0.

Do I by any chance have BOTH now and the path leads to the old one, so I can’t open the new one? How can I find out about that or - even better - how can I just run 4.2?

@beachbum you should only be able to have one. Are you sure you installed the obs apt repo properly?

I just repeated the steps on

https://software.opensuse.org/download.html?project=graphics:darktable&package=darktable

chose xUbuntu 22.04 and I get the information that I already have the newest version darktable 4.0.0. So it looks like there is no 4.2 installation available yet there. That must have been my error.

I am very sure that I went for the 22.04 repos and installation

why did you add a PPA to get OBS repositories?

To show installed version and available candidates use
apt-cache policy darktable

This is what I get on Ubuntu 22.04 (pure Ubunutu, no binary from ubunut repository installed, no ppa installed):

darktable:
  Installiert:           (keine)
  Installationskandidat: 3.8.1-2
  Versionstabelle:
     3.8.1-2 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

If you correcly added a repository via ppa you should get two entries in “Versionstabelle:” one for the ubuntu repository (jammy/universe) and one for the ppa.

To list all locations where darktable related files are saved in your system you can use
locate darktable (longer list)

Also useful may be
whereis darktable

here I get the location of the darktable binary build from source:
darktable: /opt/darktable/bin/darktable

you should get the path to youractive” darktable version installed from repository, possibly
/usr/bin/darktable

Another possibility:
dpkg-query -L darktable

If you installed the darktable ppa repository via apt and everything worked correctly, only one version of darktable can be installed.

looks like I got a lot of paths

That’s just show you darktable filenames, not binaries. Man is a sort of documentation for example. Here you only have on darktable that could be launched, on /usr/bin folder.

To show what you have, better test what @pehar suggested to you above.

This tells you, that if you type darktable in your terminal and press ENTER the application /usr/bin/darktable will be launched. This does not tell you from which source (repository) your darktable application has been installed and which version it is. To get this information you have to execute

apt-cache policy darktable

I give another example (for libreoffice) :

apt-cache policy libreoffice
libreoffice:
  Installiert:           1:7.4.4~rc2-0ubuntu0.22.04.1~lo1
  Installationskandidat: 1:7.4.4~rc2-0ubuntu0.22.04.1~lo1
  Versionstabelle:
 *** 1:7.4.4~rc2-0ubuntu0.22.04.1~lo1 500
        500 https://ppa.launchpadcontent.net/libreoffice/ppa/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     1:7.3.7-0ubuntu0.22.04.1 500
        500 http://de.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
     1:7.3.6-0ubuntu0.22.04.2 500
        500 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
     1:7.3.2-0ubuntu2 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

Here we have 4 sources (repositories) from which different versions of libreoffice could be installed, one of them, the top of the list, a ppa. Actually installed is the most recent version from the ppa.

If we are to help you, we need the relevant information from your system regarding darktable.

1 Like

which darktable tells you from what path darktable is loaded.
dpkg -S /usr/bin/darktable searches for the package that provides /usr/bin/darktable.
dpkg -l | grep -i darktable will list you what packages are related to darktable; those whose lines start with ii are installed.
apt search darktable will search for darktable among all packages in all repos.

1 Like

I really seems to be “bordelique” as we say in French ;o)

looks like I only got 4.0.0 installed and links to more (3.8.1 and 4.2.0) on the outside

Have you already tried apt upgrade?

1 Like

The output suggests that the ppa was installed correctly, but the subsequent update of darktable was not performed or failed. Further, version 4.0 does not seem to have been installed from a repository, but from a local source (.deb-file ?). Please follow the recommendation of @kofa.

sudo apt update

should be sufficient. If this is not the case, I would remove version 4.0.

sudo apt purge darktable

and then reinstall

sudo apt install darktable

1 Like

Thanks a lot for all the help. In the end I had to remove/purge and reinstall dt. Now I am on 4.2, too

Nice to hear. Could you please execute another
apt-cache policy darktable
to check if everything is ok now?

apt update updates the list of packages (polls the repos). It does not change what is installed. (A bit like git fetch :slight_smile: )
apt upgrade upgrades the packages based on the latest available version (git merge).

Of course you are right, thank you for the correction!

Here you go

This is exactly how it should look… :ok_hand:

1 Like