Installation stoppée: Your system is not fully up to date. Please perform a regular upgrade before running the migration to stretch

Bonjour,

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.

Une idée?

Merci d’avance

Est-ce que tu peux tenter un apt update && apt dist-upgrade ?

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]

Bonjour,

Dans un premier temps, s’assurer que metronome ne sera pas mis à jour et relancer les commandes d’Aleks :

sudo apt-mark hold metronome && sudo apt-get update && sudo apt-get dist-upgrade

ppr

Si ça ne fonctionne pas, alors essayer de démarquer le paquet metronome et le réinstaller pour finalement le remarquer et procéder à la mise à jour :

sudo apt-mark unhold metronome
wget https://github.com/YunoHost/metronome/archive/debian/3.7.9+33b7572-1.zip
unzip 3.7.9+33b7572-1.zip
cd metronome-debian-3.7.9-33b7572-1
sudo dpkg-buildpackage -rfakeroot -uc -b -d
cd …
sudo dpkg -i metronome_3.7.9+33b7572-1_armhf.deb
sudo apt-mark hold metronome
sudo apt-get update && sudo apt-get dist-upgrade

ppr

Ici il faut plutot mettre “unhold” non ?

sudo apt-mark unhold metronome && sudo apt-get update && sudo apt-get dist-upgrade
2 Likes

Bonjour Aleks,

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 :slight_smile:
En dernier recours, installer ce paquet à la main avec dpkg comme dans mon second post.

ppr

Merci à vous deux. Metronome est bien mis à jour maintenant je crois mais le pi ne veut toujours pas passer à stretch:

root@YunoHost:~# sudo apt-mark unhold metronome && sudo apt-get update && sudo apt-get dist-upgrade
Canceled hold on metronome.
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                    
Hit http://repo.yunohost.org jessie InRelease                                  
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                      
Hit http://mirrordirector.raspbian.org jessie InRelease                        
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages              
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages           
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages          
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages               
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               
Reading package lists... Done                                                  
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  metronome
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 346 kB of archives.
After this operation, 4,096 B disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://repo.yunohost.org/debian/ jessie/stable metronome armhf 3.7.9+33b7572-1 [346 kB]
Fetched 346 kB in 0s (1,234 kB/s) 
Reading changelogs... Done
(Reading database ... 47835 files and directories currently installed.)
Preparing to unpack .../metronome_3.7.9+33b7572-1_armhf.deb ...
Unpacking metronome (3.7.9+33b7572-1) over (3.7.9+33b7572-1) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Processing triggers for systemd (215-17+deb8u8) ...
Setting up metronome (3.7.9+33b7572-1) ...

root@YunoHost:~# sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Bonsoir,

Alors maintenant il va te falloir lire un peu de doc’ avant de poursuivre :

https://yunohost.org/#/jessie_stretch_migration

ppr

1 Like

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

Merci pour votre aide!

2 Likes