I try to update my self hosted yunohost from 4.0.8.3 to 4.1.7.4, but it stops with an error:
"2021-04-02 18:10:50,266: WARNING - E: Failed to fetch [https://packages.sury.org/php/pool/main/p/php-redis/php7.3-redis_5.3.2+4.3.0-7+0~20210228.34+debian1...](https://packages.sury.org/php/pool/main/p/php-redis/php7.3-redis_5.3.2+4.3.0-7+0~20210228.34+debian10~1.gbp893bd4_amd64.deb) 404 Not Found [IP: 104.21.18.148 443]"
This is because the DPA has a new signing key.
To resolve this problem you have to update the APT signing key, downloading the new key from the repositories:
And upps, there is a new error: Yunohost updated php and all that stuff but it still cannot update moulinette, ssowat, yunohost-admin, and yunohost from 4.0.8.3 to 4.1.7.4
The error is:
Something went wrong while updating the cache of APT (Debian's package manager). Here is a dump of the sources.list lines, which might help identify problematic lines:
sources.list:deb http://ftp.de.debian.org/debian/ buster main
sources.list:deb-src http://ftp.de.debian.org/debian/ buster main
sources.list:deb http://security.debian.org/debian-security buster/updates main
sources.list:deb-src http://security.debian.org/debian-security buster/updates main
sources.list:deb http://ftp.de.debian.org/debian/ buster-updates main
sources.list:deb-src http://ftp.de.debian.org/debian/ buster-updates main
sources.list.d/yunohost.list:deb http://forge.yunohost.org/debian/ buster stable
sources.list.d/extra_php_version.list:deb https://packages.sury.org/php/ buster main
sources.list.d/php7.list:deb https://packages.sury.org/php/ buster main
Unfortunately this is not the error. This is some information that can help debugging the error - but the actual error is before the message you copypastedā¦
Itās the only error message I could find, the whole log is here (could the german translation be a problem?):
2021-04-06 11:19:04,545: WARNING - The special upgrade will continue in the background. Please don't start any other actions on your server for the next ~10 minutes (depending on hardware speed). After this, you may have to re-log in to the webadmin. The upgrade log will be available in Tools ā Log (in the webadmin) or using 'yunohost log list' (from the command-line).
2021-04-06 11:19:04,577: DEBUG - Running command :
((while [ -f /var/run/moulinette_yunohost.lock ]; do sleep 2; done) && DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none apt-get --fix-broken --show-upgraded --assume-yes --quiet -o=Dpkg::Use-Pty=0 -o Dpkg::Options::="--force-confold" -o Dpkg::Options::="--force-confmiss" -o Dpkg::Options::="--force-confdef" dist-upgrade 2>&1 | tee -a /var/log/yunohost/categories/operation/20210406-091904-tools_upgrade.log) && (echo 'Done!' | tee -a /var/log/yunohost/categories/operation/20210406-091904-tools_upgrade.log && echo 'success: true' >> /var/log/yunohost/categories/operation/20210406-091904-tools_upgrade.yml) || (echo 'Failed :(' | tee -a /var/log/yunohost/categories/operation/20210406-091904-tools_upgrade.log && echo 'success: false' >> /var/log/yunohost/categories/operation/20210406-091904-tools_upgrade.yml); sed -i "s/ended_at: .*$/ended_at: $(date -u +'%Y-%m-%d %H:%M:%S.%N')/" /var/log/yunohost/categories/operation/20210406-091904-tools_upgrade.yml; echo '
YunoHost package upgrade completed.
Press [Enter] to get the command line back'
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
moulinette ssowat yunohost yunohost-admin
The following packages will be DOWNGRADED:
libssl-dev libssl1.1
4 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
Done!
2021-04-06 11:31:23,090: INFO - Die Liste der verfĆ¼gbaren Pakete wird aktualisiertā¦
2021-04-06 11:31:23,444: DEBUG - Hit:1 http://security.debian.org/debian-security buster/updates InRelease
2021-04-06 11:31:23,446: DEBUG - Hit:2 http://forge.yunohost.org/debian buster InRelease
2021-04-06 11:31:23,483: DEBUG - Hit:3 https://packages.sury.org/php buster InRelease
2021-04-06 11:31:23,584: DEBUG - Hit:4 http://ftp.de.debian.org/debian buster InRelease
2021-04-06 11:31:23,584: DEBUG - Hit:5 http://ftp.de.debian.org/debian buster-updates InRelease
2021-04-06 11:31:27,296: DEBUG - Reading package lists...
2021-04-06 11:31:27,398: WARNING - W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
2021-04-06 11:31:27,401: WARNING - W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
2021-04-06 11:31:27,401: WARNING - W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
2021-04-06 11:31:27,402: WARNING - W: Target Translations (main/i18n/Translation-de_DE) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
2021-04-06 11:31:27,403: WARNING - W: Target Translations (main/i18n/Translation-de) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
2021-04-06 11:31:27,404: WARNING - W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
2021-04-06 11:31:27,404: WARNING - W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
2021-04-06 11:31:27,405: WARNING - W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
2021-04-06 11:31:27,405: WARNING - W: Target Translations (main/i18n/Translation-de_DE) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
2021-04-06 11:31:27,406: WARNING - W: Target Translations (main/i18n/Translation-de) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
2021-04-06 11:31:27,409: ERROR - Something went wrong while updating the cache of APT (Debian's package manager). Here is a dump of the sources.list lines, which might help identify problematic lines:
sources.list:deb http://ftp.de.debian.org/debian/ buster main
sources.list:deb-src http://ftp.de.debian.org/debian/ buster main
sources.list:deb http://security.debian.org/debian-security buster/updates main
sources.list:deb-src http://security.debian.org/debian-security buster/updates main
sources.list:deb http://ftp.de.debian.org/debian/ buster-updates main
sources.list:deb-src http://ftp.de.debian.org/debian/ buster-updates main
sources.list.d/yunohost.list:deb http://forge.yunohost.org/debian/ buster stable
sources.list.d/extra_php_version.list:deb https://packages.sury.org/php/ buster main
sources.list.d/php7.list:deb https://packages.sury.org/php/ buster main
2021-04-06 11:31:27,926: DEBUG - Erledigt
2021-04-06 11:31:27,929: INFO - Aktualisierung des Applikationskatalogsā¦
2021-04-06 11:31:28,429: SUCCESS - Der Apps-Katalog wurde aktualisiert!
2021-04-06 11:31:29,164: DEBUG - Loading migration 0017_postgresql_9p6_to_11...
2021-04-06 11:31:29,164: DEBUG - Loading migration 0018_xtable_to_nftable...
2021-04-06 11:31:29,165: DEBUG - Loading migration 0015_migrate_to_buster...
2021-04-06 11:31:29,165: DEBUG - Loading migration 0016_php70_to_php73_pools...
Thanks for your help. I get no error message now when updating after removing the file, but moulinette, yunohost, ssowat and yunohost-admin are still not updated, although the log says ādone!ā. Strange.
2021-04-06 17:05:50,320: INFO - Now upgrading 'special' (yunohost-related) packagesā¦
2021-04-06 17:05:50,800: WARNING - The special upgrade will continue in the background. Please don't start any other actions on your server for the next ~10 minutes (depending on hardware speed). After this, you may have to re-log in to the webadmin. The upgrade log will be available in Tools ā Log (in the webadmin) or using 'yunohost log list' (from the command-line).
2021-04-06 17:05:50,802: DEBUG - Running command :
((while [ -f /var/run/moulinette_yunohost.lock ]; do sleep 2; done) && DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none apt-get --fix-broken --show-upgraded --assume-yes --quiet -o=Dpkg::Use-Pty=0 -o Dpkg::Options::="--force-confold" -o Dpkg::Options::="--force-confmiss" -o Dpkg::Options::="--force-confdef" dist-upgrade 2>&1 | tee -a /var/log/yunohost/categories/operation/20210406-150550-tools_upgrade.log) && (echo 'Done!' | tee -a /var/log/yunohost/categories/operation/20210406-150550-tools_upgrade.log && echo 'success: true' >> /var/log/yunohost/categories/operation/20210406-150550-tools_upgrade.yml) || (echo 'Failed :(' | tee -a /var/log/yunohost/categories/operation/20210406-150550-tools_upgrade.log && echo 'success: false' >> /var/log/yunohost/categories/operation/20210406-150550-tools_upgrade.yml); sed -i "s/ended_at: .*$/ended_at: $(date -u +'%Y-%m-%d %H:%M:%S.%N')/" /var/log/yunohost/categories/operation/20210406-150550-tools_upgrade.yml; echo '
YunoHost package upgrade completed.
Press [Enter] to get the command line back'
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
moulinette ssowat yunohost yunohost-admin
The following packages will be DOWNGRADED:
libssl-dev libssl1.1
4 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
Done!