Meilleure voie pour migration Yuno 3.8/Stretch/x86_64 vers Yuno 4.x/Buster/R-Pi 4?

Resalut,

Alors voila ce soir j’ai essaye de migrer apres avoir active la migration dans /etc/yunohost/migrations.yaml.

Cela n’a pas fonctionne car il essaie de patcher /etc/apt/sources.list:

$ sudo yunohost tools migrations migrate 0015_migrate_to_buster --accept-disclaimer
Info: Running migration 0015_migrate_to_buster...
Error: Migration 0015_migrate_to_buster did not complete, aborting. Error: File does not exist: '/etc/apt/sources.list'
Info: The operation 'Run migrations' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210401-205215-tools_migrations_migrate_forward --share' to get help

Le log complet:

$ sudo yunohost log display 20210401-205215-tools_migrations_migrate_forward
description: Run migrations
log_path: /var/log/yunohost/categories/operation/20210401-205215-tools_migrations_migrate_forward.log
logs: 
  - 2021-04-01 22:52:15,607: INFO - Running migration 0015_migrate_to_buster...
  - 2021-04-01 22:52:15,663: ERROR - Migration 0015_migrate_to_buster did not complete, aborting. Error: File does not exist: '/etc/apt/sources.list'
  - Traceback (most recent call last):
  -   File "/usr/lib/moulinette/yunohost/tools.py", line 895, in tools_migrations_migrate
  -     migration.run()
  -   File "/usr/lib/moulinette/yunohost/data_migrations/0015_migrate_to_buster.py", line 28, in run
  -     self.check_assertions()
  -   File "/usr/lib/moulinette/yunohost/data_migrations/0015_migrate_to_buster.py", line 145, in check_assertions
  -     if " buster " not in read_file("/etc/apt/sources.list"):
  -   File "/usr/lib/python2.7/dist-packages/moulinette/utils/filesystem.py", line 32, in read_file
  -     raise MoulinetteError("file_not_exist", path=file_path)
  - MoulinetteError: File does not exist: '/etc/apt/sources.list'
metadata: 
  ended_at: 2021-04-01 22:52:15
  error: Migration 0015_migrate_to_buster did not complete, aborting. Error: File does not exist: '/etc/apt/sources.list'
  operation: tools_migrations_migrate_forward
  started_at: 2021-04-01 22:52:15
  success: False
  yunohost_version: 3.8.5.9
metadata_path: /var/log/yunohost/categories/operation/20210401-205215-tools_migrations_migrate_forward.yml
name: 20210401-205215-tools_migrations_migrate_forward

En fait, sur ma machine (image Debian de Gandi), il n’y a pas de fichier /etc/apt/sources.list, tout est contenu dans plusieurs fichiers sous /etc/apt/sources.list.d:

$ tree /etc/apt/sources.list.d/
/etc/apt/sources.list.d/
├── debian-security.list
├── debian-stretch-gandi.list
├── debian-stretch.list
├── debian-update.list
├── extra_php_version.list
└── yunohost.list

0 directories, 6 files

Au vu du contenu de /usr/lib/moulinette/yunohost/data_migrations/0015_migrate_to_buster.py, j’ai donc cree le fichier avec une ligne de commentaire vide:

$ cat /etc/apt/sources.list
#empty file to satisfy yunohost migration

Et j’ai relance la migration mais elle a echoue car certains paquets n’ont pu se mettre a jour. Je pense que c’est du a:

Info: + The following packages will be DOWNGRADED:
Warning: E: Packages were downgraded and -y was used without --allow-downgrades.
Info: +   libssl1.1

J’ai mis le log complet sous https://paste.yunohost.org/raw/ifaleloyej. Il y a l’air d’avoir une mention de libssl1.1 dans YunoHost 4.0 (Buster) release / Sortie de YunoHost 4.0 (Buster) - #188 by Aleks mais cela ne correspond pas a mon probleme…

Est-ce que qqn aurait une idee?

Merci bien!