Unmet dependencies xwiki-xjetty-pgsql 16.10.3

Hi there,

I already tested xwiki using docker and want to switch to a apt-install of the LTS version 16.10.3

At first I tried the documented way (added the stable sources list + apt-get install xwiki-xjetty-psql.
I realized that version 17 was installed, so I removed the software and performed apt autoremove.

I added the lts-sources list and tried to specify the version:
sudo apt-get install xwiki-xjetty-pgsql=16.10.3

I got this errormessage:

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:
 xwiki-xjetty-pgsql : Depends: xwiki-pgsql-common (= 16.10.3) but 17.0.0 is to be installed
                      Depends: xwiki-xjetty-common (= 16.10.3) but 17.0.0 is to be installed
E: Unable to correct problems, you have held broken packages.

I may not got the correct apt-syntax? I never installed a specific older version of a package, but in this case I want to use an LTS Verions.

Thank you
Bizarro

A simpler approach would be to use the lts repository instead of the stable one. See https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationViaAPT/#HAPTConfiguration.

That’s because you need to indicate the version of each package when you don’t want the last one with apt, unfortunately (even if the package declares that it require exactly 16.10.3, apt is not very clever). Anyway, in your case the best is to use the right repository.

Hi tmortagne,

thanks a lot, I think that will help, I’ll test it today.

best regards
Bizarro