Cannot migrate to bullseye

Hello,

My YunoHost server

Hardware: Raspberry Pi 3 Model B Plus Rev 1.3
YunoHost version:

yunohost:
  repo: stable
  version: 4.4.3
yunohost-admin:
  repo: stable
  version: 4.4.1
moulinette:
  repo: stable
  version: 4.4.1
ssowat:
  repo: stable
  version: 4.4.2

I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I am trying to migrate my Yunhost to Bullseye. However when I try to do it using the WebInterface it fails with the following logs.

ended_at: 2023-02-15 08:45:17.958733
error: "La migration 0021_migrate_to_bullseye a \xE9chou\xE9 avec l'exception Votre\
  \ syst\xE8me n'est pas enti\xE8rement \xE0 jour. Veuillez effectuer une mise \xE0\
  \ jour normale avant de lancer la migration vers Bullseye. : annulation"
interface: api
operation: tools_migrations_migrate_forward
parent: null
started_at: 2023-02-15 08:45:00.449769
success: false
yunohost_version: 4.4.3

============

2023-02-15 08:45:00,473: INFO - Exécution de la migration 0021_migrate_to_bullseye...
2023-02-15 08:45:00,492: INFO - Récupération des mises à jour disponibles pour les paquets du système...
2023-02-15 08:45:00,782: DEBUG - Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
2023-02-15 08:45:00,783: DEBUG - Hit:2 http://forge.yunohost.org/debian buster InRelease
2023-02-15 08:45:01,123: DEBUG - Hit:3 https://archive.raspberrypi.org/debian bullseye InRelease
2023-02-15 08:45:06,708: DEBUG - Reading package lists...
2023-02-15 08:45:09,774: DEBUG - Terminé
2023-02-15 08:45:15,089: ERROR - La migration 0021_migrate_to_bullseye a échoué avec l'exception Votre système n'est pas entièrement à jour. Veuillez effectuer une mise à jour normale avant de lancer la migration vers Bullseye. : annulation
Traceback (most recent call last):
  File "/usr/lib/moulinette/yunohost/tools.py", line 944, in tools_migrations_run
    migration.run()
  File "/usr/lib/moulinette/yunohost/data_migrations/0021_migrate_to_bullseye.py", line 80, in run
    self.check_assertions()
  File "/usr/lib/moulinette/yunohost/data_migrations/0021_migrate_to_bullseye.py", line 405, in check_assertions
    raise YunohostError("migration_0021_system_not_fully_up_to_date")
yunohost.utils.error.YunohostError: Votre système n'est pas entièrement à jour. Veuillez effectuer une mise à jour normale avant de lancer la migration vers Bullseye.

When I go to the “Upgrade page” I have the following packages which are waiting to be upgraded.

If I try to update them, I have a message indicating that no package have been upgraded and they disappear from the list of package that must be upgraded.

However, if I try to migrate to Bullseye, I still have the same issue.

Then I try using the command line. First I do

yunohost tools update

and I get

Info: Fetching available upgrades for system packages...
Info: Updating application catalog...
Success! The application catalog has been updated!
apps:
  0:
    current_version: 22.2.3~ynh1
    id: nextcloud
    label: Nextcloud
    new_version: 25.0.3~ynh3
  1:
    current_version: 1.14.5~ynh1
    id: gitea
    label: Gitea
    new_version: 1.17.4~ynh1
system:
  0:
    current_version: 2.28-10+rpi1
    name: libc-bin
    new_version: 2.31-13+rpt2+rpi1+deb11u5
  1:
    current_version: 2.28-10+rpi1
    name: libc-dev-bin
    new_version: 2.31-13+rpt2+rpi1+deb11u5
  2:
    current_version: 2.28-10+rpi1
    name: libc6-dev
    new_version: 2.31-13+rpt2+rpi1+deb11u5
  3:
    current_version: 2.28-10+rpi1
    name: libc6
    new_version: 2.31-13+rpt2+rpi1+deb11u5
  4:
    current_version: 1.3.1-5+rpt2
    name: libpam-chksshpwd
    new_version: 1.4.0-9+deb11u1+rpt2
  5:
    current_version: 1.3.1-5+rpt2
    name: libpam-modules-bin
    new_version: 1.4.0-9+deb11u1+rpt2
  6:
    current_version: 1.3.1-5+rpt2
    name: libpam-modules
    new_version: 1.4.0-9+deb11u1+rpt2
  7:
    current_version: 1:1.20220120-1
    name: vcdbg
    new_version: 1:1.20230106-1

Then I do

yunohost tools upgrade system

and I get

Info: Upgrading packages...
Info: Now upgrading 'regular' (non-yunohost-related) packages...
Info: + Reading package lists...
Info: + Building dependency tree...
Info: + Reading state information...
Info: + Calculating upgrade...
Info: + 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Success! System upgraded

So my packages libc-bin, libc-dev-bin, libc6-dev, … are still not upgraded.

Hence, I try using apt-get :

sudo apt-get upgrade

And I get

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libc-bin libc-dev-bin libc6 libc6-dev libpam-chksshpwd libpam-modules libpam-modules-bin vcdbg
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

Following this link (14.04 - 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded - Ask Ubuntu) I try

sudo apt-get dist-upgrade

And I get

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.

which doesn’t solve my issue.
I also to try to install the package which make the issues (for example)

sudo apt-get install libc6

And I get the following message

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6 : Depends: libgcc-s1 but it is not installable
         Depends: libcrypt1 but it is not installable
         Recommends: libnss-nis but it is not installable
         Recommends: libnss-nisplus but it is not installable
 yunohost : Depends: openssh-server but it is not going to be installed
            Depends: unscd but it is not going to be installed
            Depends: equivs but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Then I try to install the “not installable packages”

sudo apt-get install libgcc-s1

and, as expected, they are not installable :

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libgcc-s1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libgcc-s1' has no installation candidate

I don’t know what to do next in order to migrate to Bullseye.

Does anyone know how I can solve it ?

Thanks in advance for your help.

It sounds like the issue is that your raspberrypi.org source.list is configured to use bullseye while the other ones are still using buster … Could it be that you tweaked this manually ?

Anyway, I think you should instead revert to having “buster” instead of “bullseye” in your sources.list (search for the corresponding file with grep -nr bullseye /etc/apt/sources.list* and edit it with nano)

It works. Thank you for your help.

I probably tweaked this manually (creating a new problem while I was trying to solve another one).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.