Wiki source code of Upgrading from the Debian package
Last modified by Thomas Mortagne on 2025/02/05 14:01
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | * Update packages index:((( | ||
| 2 | {{code language="bash"}} | ||
| 3 | sudo apt update | ||
| 4 | {{/code}} | ||
| 5 | ))) | ||
| 6 | * Package upgrade:((( | ||
| 7 | {{code language="bash"}} | ||
| 8 | sudo apt upgrade | ||
| 9 | {{/code}} | ||
| 10 | |||
| 11 | This will upgrade all packages, not just XWiki. If you want to avoid all the other packages and only update XWiki, you can use {{code}}sudo apt install xwiki-tomcat9-mariadb{{/code}} (change ##xwiki-tomcat9-mariadb## for the top level package you installed if you installed something else). | ||
| 12 | |||
| 13 | ==== Troubleshooting | ||
| 14 | |||
| 15 | ===== apt upgrade won't upgrade xwiki packages | ||
| 16 | |||
| 17 | Sometimes (especially in case of new cycle), apt upgrade might report that it refuse to upgrade some xwiki packages. | ||
| 18 | |||
| 19 | This is generally the sign that either: | ||
| 20 | * a new dependency cannot be found: it generally means that XWiki starts requiring a more recent version of Java and the Debian repository you have don't have any implementation of this Java versions. See [[No package can be found for Java>>Documentation.AdminGuide.Installation.InstallationViaAPT||anchor="HNopackagecanbefoundforJava"]] for more details on how to resolve this situation. | ||
| 21 | * some xwiki package name changed: this generally happen when XWiki stops supporting some version of Tomcat and you need to install a different xwiki-tomcat* package (for example XWiki 17 does not support tomcat9 and requires the tomcat10 package) | ||
| 22 | ))) | ||
| 23 | * Pages upgrade:((( | ||
| 24 | However after upgrading you still need to install the new UI; see next step [[Upgrading the flavor>>.||anchor="HPart2Upgradingtheflavor"]] below. | ||
| 25 | ))) |