Update from 4.0.8.3 to 4.1.7.4 stops with error message

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]"

The problem seems to be

404 Not Found [IP: 172.67.182.150 443]

Could this be a cloudfare issue? I read that somewhere…

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:

$ sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg

Or try this

$ sudo apt-key del 95BD4743; wget -nv -O - https://packages.sury.org/php/apt.gpg | sudo apt-key add -

2 Likes

Thanks I tried but with both commands I get the error message “gpg: no valid OpenPGP data found.”

-    -2021-04-04 21:09:35--  https://packages.sury.org/php/apt.gpg
    Resolving packages.sury.org (packages.sury.org)... 172.67.182.150, 104.21.18.148, 2606:4700:3030::ac43:b696, ...
    Connecting to packages.sury.org (packages.sury.org)|172.67.182.150|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1769 (1.7K) [application/octet-stream]
    Saving to: ‘/etc/apt/trusted.gpg.d/php.gpg’

    /etc/apt/trusted.gp 100%[===================>]   1.73K  --.-KB/s    in 0s      

    2021-04-04 21:09:36 (14.0 MB/s) - ‘/etc/apt/trusted.gpg.d/php.gpg’ saved [1769/1769]

    gpg: no valid OpenPGP data found.

UPDATE: The second command works if I don’t use the quotes “” Thanks!

1 Like

Great
I changed the syntax errors of the commands thanks to your observations. It may help other users

Bonjour, j’en profite pour te remercier aussi. c’est la première ligne de commande qui dans mon cas a régler le problème.
merci

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

Apt reconfigure
Test root
$ dpkg --configure -a

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…

1 Like

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...

Mokay I guess the “issue” is :

You can safely run:

rm /etc/apt/sources.list.d/php7.list

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!

c.f. Recurring issues during system updates these days, and how to fix them

1 Like

Thanks a lot, this worked! You made my day.

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