J’ai tenté de mettre à jour mon yunohost (v.2.7.14.5 (stable) ) et j’obtiens cette erreur:
Migration 3 migrate_to_stretch has failed with exception Your system is not fully up to date. Please perform a regular upgrade before running the migration to stretch., aborting
Autant que je sache, tout est à jour, je ne vois pas ‘upgrader’ de plus.
Je suis sous Raspbian Jessie, avec un pi (B il me semble):
root@YunoHost:~# uname -a
Linux YunoHost 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
root@YunoHost:~# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie
root@YunoHost:~# lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Model name: ARMv7 Processor rev 4 (v7l)
CPU max MHz: 1200.0000
CPU min MHz: 600.0000
root@YunoHost:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
metronome
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
A priori mon OS est 32b (armv7l), je ne sais pas si c’est un problème.
J’ai 4 apps d’installées: nextcloud, kanboard, freshrss et wallabag.
J’ai rebooté mon serveur et depuis j’ai ce bandeau:
The version of YunoHost running on this server is obsolete and should be upgraded to YunoHost 3.x / Stretch. Please contact your administrator about this.
merci pour la réponse. Malheureusement, il s’arrête trop tôt:
root@YunoHost:~# apt update && apt dist-upgrade
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Get:1 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Hit http://repo.yunohost.org jessie InRelease
Get:2 http://mirrordirector.raspbian.org jessie/main armhf Packages [9,538 kB]
Hit http://repo.yunohost.org jessie/stable armhf Packages
Ign http://repo.yunohost.org jessie/stable Translation-en_GB
Ign http://repo.yunohost.org jessie/stable Translation-en
Get:3 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [43.3 kB]
Get:4 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [88.1 kB]
Get:5 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,686 kB in 17s (547 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
metronome
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Si je tente:
root@YunoHost:~# apt list --upgradable
Listing... Done
metronome/stable 3.7.9+33b7572-1 armhf [upgradable from: 3.7.9+33b7572-1]
N: There is 1 additional version. Please use the '-a' switch to see it
root@YunoHost:~# apt list -a --upgradable
Listing... Done
metronome/stable 3.7.9+33b7572-1 armhf [upgradable from: 3.7.9+33b7572-1]
metronome/now 3.7.9+33b7572-1 armhf [installed,upgradable to: 3.7.9+33b7572-1]
Effectivement. Tu as raison car il semble que ce paquet soit déjà positionné en hold.
Sinon mon idée était en fait de s’assurer que ce paquet soit bien positionné en hold afin de revérifier si la mise à jour pouvait être faite.
Si elle ne peut se faire, alors appliquer ta remarque en passant celui-ci sur unhold comme tu le proposes
En dernier recours, installer ce paquet à la main avec dpkg comme dans mon second post.
J’ai lancé sudo yunohost tools migrations migrate et c’est passé comme une lettre à la poste!
Ça a fini par ça:
Warning: Port 587 is already opened for IPv4 connections
Warning: Port 587 is already opened for IPv6 connections
Success! The firewall has been reloaded
Warning: Port 465 is already closed for IPv4 connections
Warning: Port 465 is already closed for IPv6 connections
Success! The firewall has been reloaded
Warning: Starting the yunohost package upgrade ... The migration will end, but the actual upgrade will happen right after. After the operation is complete, you might have to re-log on the webadmin.
Error: Migration 3 migrate_to_stretch has failed with exception [Errno 2] No such file or directory: '/etc/fail2ban/filter.d/yunohost.conf', aborting
j’ai relancé, comme la page me l’indiquait:
Warning: Migration 6 sync_admin_and_root_passwords has to be ran manually. Please go to Tools > Migrations on the webadmin, or run `yunohost tools migrations migrate`.
Restarting YunoHost firewall...
update-rc.d: error: no runlevel symlinks to modify, aborting!
Setting up yunohost-admin (3.3.1) ...
Processing triggers for php7.0-fpm (7.0.33-0+deb9u1) ...
Processing triggers for systemd (232-25+deb9u6) ...
Migration complete!
Puis une dernière fois, pour synchroniser les 2 mots de passe:
Info: Running migration 6 sync_admin_and_root_passwords...
Info: Your root password have been replaced by your admin password.
Success! Successfully ran migration 6 sync_admin_and_root_passwords!
Et tout a l’air de fonctionner. Je suis sous Yunohost 3.3.3