Update problem with occ

Hello.
I’m unable to update / upgrade nextcloud as OCC says it’s already at latest version. What’s wrong ?
Regards
Cédric

Nextcloud version : 25.0.2 RC1
Operating system and version: debian 11.6
Apache or nginx version : nginx/1.18.0
PHP version : php-fpm 8.1.15

The issue you are facing:

to replicate it:

sudo -u www-data php occ upgrade
Nextcloud is already latest version

The output of your Nextcloud log in Admin > Logging:

nothing related to issue

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'default_language' => 'fr_FR',
  'defaultapp' => 'files',
  'updatechecker' => false,
  'instanceid' => 'oclrkv9vbjjn',
  'passwordsalt' => 'nBbt0xxxmT',
  'secret' => 'kKVN+igo6fcxxxWTL',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.xxx.fr',
  ),
  'datadirectory' => '/data/nextcloud/',
  'overwrite.cli.url' => 'https://nextcloud.xxx.fr',
  'dbtype' => 'mysql',
  'version' => '25.0.2.0',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'owncloud',
  'dbpassword' => 'xxx',
  'allow_user_to_change_mail_address' => '',
  'logtimezone' => 'Europe/Paris',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/nextcloud/apps-external',
      'url' => '/apps-external',
      'writable' => true,
    ),
  ),
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'mail_domain' => 'xxx.fr',
  'mail_from_address' => 'nextcloud',
  'mail_smtpmode' => 'smtp',
  'default_phone_region' => 'FR',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'mail_smtphost' => 'smtprelay.xxx.fr',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpport' => '25',
);

The output of your Apache/nginx/system log in /var/log/____:

webserver not involved (fpm), no logs in fpm

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

no error logs

do you want to update the version to a higher one, for example from 25.0.2 RC1 to 26.0.0, if that is the goal, run the command
sudo -u www-data php /var/www/nextcloud/updater/updater.phar

Hello,
thank yopu, seems to work now.
Regards