Mgration impossible

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 11.3.0.2
How are you able to access your server: SSH

Describe your issue

after having 500 error with my nextcloud app, I try to migrate as a new install of nextcloud requires yunohost 12***
The web UI tells me there is no migration available, the logs says the last operation was a migration. and when I try to upgrade my apps, they ask for the new os telling I’m still on 11.3

Share relevant logs or error messages

Linux cahkach.ddns.net 5.10.0-42-amd64 #1 SMP Debian 5.10.251-4 (2026-05-08) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Sep 19 08:51:19 2026 from 172.22.21.13
root@cahkach:~# sudo su
root@cahkach:~# yunohost tools migrations run
Info : Aucune migration à lancer
root@cahkach:~#
root@cahkach:~# apt update
Atteint :2 Index of /debian bullseye InRelease
Atteint :3 Index of /debian-security bullseye-security InRelease
Atteint :4 Index of /debian bullseye-updates InRelease
Atteint :5 Index of /php/ bullseye InRelease
Atteint :1 Index of /debian/ bullseye InRelease
Err :5 Index of /php/ bullseye InRelease
Les signatures suivantes ne sont pas valables : EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key deb@sury.org
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances… Fait
Lecture des informations d’état… Fait
Tous les paquets sont à jour.
W: Une erreur s’est produite lors du contrôle de la signature. Le dépôt n’est pas mis à jour et les fichiers d’index précédents seront utilisés. Erreur de GPG : Index of /php/ bullseye InRelease : Les signatures suivantes ne sont pas valables : EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key deb@sury.org
W: Impossible de récupérer https://packages.sury.org/php/dists/bullseye/InRelease Les signatures suivantes ne sont pas valables : EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key deb@sury.org
W: Le téléchargement de quelques fichiers d’index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.
root@cahkach:~# apt upgrade
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances… Fait
Lecture des informations d’état… Fait
Calcul de la mise à jour… Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
root@cahkach:~# sudo yunohost tools migrations run
Info : Aucune migration à lancer
root@cahkach:~# yunohost version
usage: yunohost
{user,domain,app,backup,settings,service,firewall,dyndns,tools,hook,log,diagnosis}

[-h] [–output-as {json,plain,none}] [–debug] [–quiet]
[–version] [–timeout ==SUPPRESS==]
yunohost: error: argument {user,domain,app,backup,settings,service,firewall,dyndns,tools,hook,log,diagnosis}: invalid choice: ‘version’ (choose from ‘user’, ‘domain’, ‘app’, ‘backup’, ‘settings’, ‘service’, ‘firewall’, ‘dyndns’, ‘tools’, ‘hook’, ‘log’, ‘diagnosis’)
root@cahkach:~# yunohost --version
yunohost:
repo: stable
version: 11.3.0.2
yunohost-admin:
repo: stable
version: 11.3.0
moulinette:
repo: stable
version: 11.3.0
ssowat:
repo: stable
version: 11.3.0

See this Yarn and Sury APT keys issues
Then run update before the migration

Hello and thanks very much for your help.

unfortunately the commands advised above didn’t work and I’m lost,. as my knowledge is very limited and I don’t really remember how I managed to make a running server long time ago.

root@172.22.21.55’s password:
Linux cahkach.ddns.net 5.10.0-42-amd64 #1 SMP Debian 5.10.251-4 (2026-05-08) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Sep 19 11:03:06 2026 from 172.22.21.13
root@cahkach:~# sudo su
root@cahkach:~# rm /etc/apt/trusted.gpg.d/{yarn,extra_php_version}.gpg
rm: impossible de supprimer ‘/etc/apt/trusted.gpg.d/yarn.gpg’: Aucun fichier ou dossier de ce type
root@cahkach:~# sudo rm /etc/apt/trusted.gpg.d/{yarn,extra_php_version}.gpg
rm: impossible de supprimer ‘/etc/apt/trusted.gpg.d/yarn.gpg’: Aucun fichier ou dossier de ce type
rm: impossible de supprimer ‘/etc/apt/trusted.gpg.d/extra_php_version.gpg’: Aucun fichier ou dossier de ce type
root@cahkach:~# sudo yunohost tools regen-conf apt
root@cahkach:~# apt update
Atteint :1 Index of /debian bullseye InRelease
Atteint :3 Index of /debian-security bullseye-security InRelease
Atteint :4 Index of /debian bullseye-updates InRelease
Atteint :5 Index of /php/ bullseye InRelease
Atteint :2 Index of /debian/ bullseye InRelease
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances… Fait
Lecture des informations d’état… Fait
Tous les paquets sont à jour.
root@cahkach:~# sudo yunohost tools migration run
usage: yunohost tools
{rootpw,maindomain,postinstall,update,upgrade,shell,basic-space-cleanup,shutdown,reboot,regen-conf,versions,migrations}

[-h]
yunohost tools: error: argument {rootpw,maindomain,postinstall,update,upgrade,shell,basic-space-cleanup,shutdown,reboot,regen-conf,versions,migrations}: invalid choice: ‘migration’ (choose from ‘rootpw’, ‘maindomain’, ‘postinstall’, ‘update’, ‘upgrade’, ‘shell’, ‘basic-space-cleanup’, ‘shutdown’, ‘reboot’, ‘regen-conf’, ‘versions’, ‘migrations’)
root@cahkach:~# yunohost tools migrations run
Info : Aucune migration à lancer
root@cahkach:~# sudo yunohost tools migrations run
Info : Aucune migration à lancer
root@cahkach:~#

I’m asking myself if making a new server on another machine and trying to copy the settings wouldn’t bee easier than trying to repair the old one. If so would it bee possible to restore or reinstall the data USB disks that I have now ? My bigger concern is that, I don’t remember the settings I had to put in place when I made the original server. If I loose the data it wouln’t bee too terrible as they aren’t critical but I would save time as I have some stuff accumulated there with the time.

I didn’t understand what you meant by settings.
But it would be better to start over on another machine.
Make a full backup of the old one, copy it on usb
Install a new one but don’t run the post install
Copy the backup to the new machine and run the restore
What data are you trying to get from the server?

Thanks a lot for your answers

sorry for the launch too early above, by settings, I think at all the things I had to alter in order to have a working system. DNS, Disk management security etc. I was thinking about installing the new machine with an up to date version of yunohost and manually set the personal stuff by copying the old one. I’m not sure if I could backup the old and restore if the version isn’t the same. For the data, I had some nextcloud files and directories on an external USB HD and I’d appreciate to restore them if possible.

A lot of users have reported success in restoring a yunohost 11 backup on a new yunohost 12