XWiki upgrade from 17.9.0 to 18.1.0 fails (packages have ben kept back)

Hi,

I cannot upgrade from XWiki 17.9.0 to 18.1.0 on Debian 12. I just get:

The following packages have been kept back
xwiki-common xwiki-mariadb-common xwiki-tomcat10-common xwiki-tomcat10-mariadb

apt list -upgradable gives me

xwiki-common/stable 18.1.0+1 all [upgradable from: 17.9.0]
xwiki-mariadb-common/stable 18.1.0+1 all [upgradable from: 17.9.0]
xwiki-tomcat10-common/stable 18.1.0+1 all [upgradable from: 17.9.0]
xwiki-tomcat10-mariadb/stable 18.1.0+1 all [upgradable from: 17.9.0]


I am already running on tomcat10.

Does anyone have a clue?

Thanks, Chris

It’s most probably because XWiki 18+ requires Java 21 and there is no openjdk-21 package on Debian 12 standard repositories.

As a workaround you could use Adoptium packages. See the warning box in https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationViaAPT/#HUpgradethepackages.

Thanks Thomas for your quick answer!

Could I as well upgrade to Debian 13? Would openjdk-21 be available then?

That’s probably even better (since Debian 13 is the current stable), yes.

Thanks again, Thomas. So I will upgrade the server to Debian 13 on Friday.

I upgraded Debian to 13 Trixie and could upgrade XWiki to 18.1.0 thereafter.

However I got a problem now with the menu disappearing. I will open a new post for that.

Beware not to perform a removal of the old java 17 packages later, without checking what it pulls with it. I had to mark manual (apt-mark manual) a large set of packages to ensure to keep them, among which some very critical ones.
I also went through the switch from Debian 12 to Debian 13 recently, and fortunately I didn’t meet with any hickup afterwards.