chris7
March 2, 2026, 3:07pm
1
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 .
chris7
March 2, 2026, 3:34pm
3
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.
chris7
March 4, 2026, 7:35pm
5
Thanks again, Thomas. So I will upgrade the server to Debian 13 on Friday.
chris7
March 6, 2026, 3:49pm
6
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.
JoyceM
March 7, 2026, 8:44pm
7
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.