I had some warnings from apt complaining that some sources were listed multiple times, so I fixed it before anything else.
The culprit was a sury sources file that must have had been installed by a previous Nextcloud update.
Anyway it was now useless so I ditched it.
Another source file had the same line listed twice, I just deleted one of them.
The next step was updating the system and YNH applications.
yunohost tools update --system
yunohost tools upgrade --system
yunohost tools update --apps
yunohost tools upgrade --apps
That last step was a bit tedious as some applications required yunohost 4 to be updated, those would error out and block the update process for the remaining applications.
I had to proceed by trial and error and specify the applications I wanted to update:
yunohost tools upgrade --apps <app1> <app2> …
Once this was done I had to run a last
apt update && apt upgrade -y
Everything was set for the upgrade, it was the perfect time for me to make a snapshot of my virtual machine.
I proceeded with
yunohost tools migrations migrate, read the disclaimer then
yunohost tools migrations migrate --accept-disclaimer
Everything went right, the process took about three or four hours I think, didn’t pay too much attention.
After the migration everything was working but lufi and lutim.
A quick look at the status of both services made me think that something had to be recompiled following the upgrade:
ListUtil.c: loadable library and perl binaries are mismatched
I chose the easiest path by reinstalling both applications since I do not store anything permanent in those.
There must have been some cleaner way to handle this but I wasn’t feeling like looking for it.
The last thing I had to do was to upgrade those applications requiring Yunohost 4 with a new
yunohost tools update --apps && yunohost tools upgrade --apps