Upgrade to Debian 12 Bookworm

I had the same problem. for me the easiest solution was:

  • first update to debian bookworm
  • then in the nextcloud directory change the file lib/versioncheck.php
    There should be a line similar to:

if (PHP_VERSION_ID >= 80100) {

change it to

if (PHP_VERSION_ID >= 80300) {

then use the cli updater (maybe also the web one would work)

2 Likes