Cli occ upgrade: remaining on version 25.0.13. updater.phar

with sudo -u www-data php --define apc.enable_cli=1 /var/www/nextcloud/updater/updater.phar start updater
install updates 25.0.13.
update of code successful

re-run with sudo -u www-data php --define apc.enable_cli=1 /var/www/nextcloud/updater/updater.phar start updater

"Current version is 25.0.13.

Update to Nextcloud 25.0.13 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-25.0.13.zip"

expected behaviour: next update and not the current update be suggested.

Continue update? [y/N] y
Should the “occ upgrade” command be executed? [Y/n] y
This version of Nextcloud is not compatible with PHP>=8.2.
You are currently running 8.2.7.
Keep maintenance mode active? [y/N] n
This version of Nextcloud is not compatible with PHP>=8.2.
You are currently running 8.2.7.
Maintenance mode is disabled

the problem here is not the php version (that’s another topic … i wonder how such things can even happen …) but that i cannot update the next version. I get the current version suggested

Can i somehow enforce the next file to be taken? (without doing all manually)

what happens wenn running sudo -u www-data php /var/www/nextcloud/occ upgrade
And you could try to run explicitly php8.1 by sudo -u www-data php8.1 /var/www/nextcloud/occ upgrade