Use the automatica Systerm Update function yet failed

Hi, I did not find any related issue in these two years.

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.2.4
I have access to my server : All of bleow: Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

As I mentioned earlier, my YunoHost version is: 11.2.4 (stable). And I wish to update peertube from 5.2.1~ynh1 to 6.2.0~ynh1, so I need to upgrade the system from yunohost (from 11.2.4 to 11.2.22)

Here is the list of the required updates:


libmemcached11 (from 1.0.18-4.2 to 1.1.4-1+0~20240206.2+debian11~1.gbp5328f7)
libmpdec3 (from 2.5.1-1 to 2.5.1-2+0~20240210.5+debian11~1.gbp216c03)
moulinette (from 11.2 to 11.2.1)
openssl (from 1.1.1n-0+deb11u5 to 1.1.1w-0+deb11u1)
php-common (from 2:93+0~20230409.46+debian11~1.gbpdb4dcc to 2:94+0~20240205.51+debian11~1.gbp6faa2e)
php8.2-cli (from 8.2.12-1+0~20231027.35+debian11~1.gbp517c79 to 8.2.15-1+0~20240120.39+debian11~1.gbp56f296)
php8.2-common (from 8.2.12-1+0~20231027.35+debian11~1.gbp517c79 to 8.2.15-1+0~20240120.39+debian11~1.gbp56f296)
php8.2-mbstring (from 8.2.12-1+0~20231027.35+debian11~1.gbp517c79 to 8.2.15-1+0~20240120.39+debian11~1.gbp56f296)
php8.2-opcache (from 8.2.12-1+0~20231027.35+debian11~1.gbp517c79 to 8.2.15-1+0~20240120.39+debian11~1.gbp56f296)
php8.2-readline (from 8.2.12-1+0~20231027.35+debian11~1.gbp517c79 to 8.2.15-1+0~20240120.39+debian11~1.gbp56f296)
php8.2-xml (from 8.2.12-1+0~20231027.35+debian11~1.gbp517c79 to 8.2.15-1+0~20240120.39+debian11~1.gbp56f296)
ssowat (from 11.2 to 11.2.1.1)
yunohost-admin (from 11.2.2 to 11.2.7)
yunohost (from 11.2.4 to 11.2.22)

after I click the “upgrade all the packages” button, then I went to the system upgrade page. It show:

[![YunoHost logo](https://159.223.42.38/yunohost/admin/assets/logo_light-aca68e33.png)](https://159.223.42.38/yunohost/admin/#)

1. [Home](https://159.223.42.38/yunohost/admin/#/)
2. System update

**Check for updates**

1 3

#### The server is processing the action...

Fetching available upgrades for system packages...

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php bullseye InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key

W: Failed to fetch https://packages.sury.org/php/dists/bullseye/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key

W: Some index files failed to download. They have been ignored, or old ones used instead.

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://deb.debian.org/debian bullseye main
sources.list:deb-src http://deb.debian.org/debian bullseye main
sources.list:deb http://security.debian.org/debian-security bullseye-security main
sources.list:deb-src http://security.debian.org/debian-security bullseye-security main
sources.list:deb http://deb.debian.org/debian bullseye-updates main
sources.list:deb-src http://deb.debian.org/debian bullseye-updates main
sources.list:deb http://deb.debian.org/debian bullseye-backports main
sources.list:deb-src http://deb.debian.org/debian bullseye-backports main
sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-archive-keyring.gpg] http://forge.yunohost.org/debian/ bullseye stable
sources.list.d/droplet-agent.list:deb [signed-by=/usr/share/keyrings/droplet-agent-keyring.gpg] https://repos-droplet.digitalocean.com/apt/droplet-agent main main
sources.list.d/digitalocean-agent.list:deb [signed-by=/usr/share/keyrings/digitalocean-agent-keyring.gpg] https://repos.insights.digitalocean.com/apt/do-agent main main
sources.list.d/extra_php_version.list:deb https://packages.sury.org/php/ bullseye main

Updating application catalog...

The application catalog has been updated!

##### History

**Check for updates**

1 3

* [ Documentation ](https://yunohost.org/docs)
* [ Need help? ](https://yunohost.org/help)
* [ Donate ](https://donate.yunohost.org/)
* Powered by [YunoHost](https://yunohost.org) 11.2.4 (stable).

Then the same list of packages were listed for upgrade. and the system still shows 11.2.4 (stable).

Thanks in advance for your help.

cf https://forum.yunohost.org/t/something-went-wrong-while-updating-the-cache-of-apt-due-to-sury-version-2024/28570

Thanks. It’s a private post. I could not see it.

Hi, I am not sure if I make myself clear. the link you posted is no longer exits, or it’s a private post. I cannot see it. Could you please check? Thanks.

Ugh you said “I could not” so I thought you meant that you could now …

Anyway, I’m not sure why the post is marked as deleted (as staff we can still see it)

but tl;dr this command should fix the situation:

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

Aherm sorry, it looks like I somehow deleted that post (butter fingers on my phone?), I have just restored it.

3 Likes

Thanks. Yes. With this:

It returns:

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

OK

2024-07-25 02:31:40 URL:https://packages.sury.org/php/apt.gpg [1769/1769] -> "-" [1]

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

OK

The System updates then

However, it return with this:


YunoHost API is not responding

Really sorry about that.

You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker.
The following information might be useful for the person helping you:

Error: "502"

Action: "GET" /yunohost/api/versions?locale=en

Error message:

The YunoHost API is not responding. Maybe ‘yunohost-api’ is down or got restarted?

Here is full log:

https://paste.yunohost.org/ciharonuqu


Then I used the Peertube upgrade button, then it says:


Really sorry about that.
You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker.
The following information might be useful for the person helping you:
Error: “500”
Action: “PUT” /yunohost/api/apps/peertube/upgrade
Error message:
Could not complete the operation ‘Upgrade the ‘peertube’ app’. Please provide the full log of this operation by clicking here to get help


Below is the full log.

https://paste.yunohost.org/raw/ozimaqofoy

When i run:

apt show yunohost -a

Here is the result:


Package: yunohost

Version: 11.2.23

Priority: extra

Essential: yes

Section: utils

Maintainer: YunoHost Contributors

Installed-Size: 4,724 kB

Depends: python3:any, moulinette (>= 11.1), ssowat (>= 11.1), python3-psutil, python3-requests, python3-dnspython, pyt

hon3-openssl, python3-miniupnpc, python3-dbus, python3-jinja2, python3-toml, python3-packaging, python3-publicsuffix2,

python3-ldap, python3-zeroconf (>= 0.36), python3-lexicon, python-is-python3, nginx, nginx-extras (>= 1.18), apt, apt

-transport-https, apt-utils, aptitude, dirmngr, openssh-server, iptables, fail2ban, bind9-dnsutils, openssl, ca-certif

icates, netcat-openbsd, iproute2, slapd, ldap-utils, sudo-ldap, libnss-ldapd, unscd, libpam-ldapd, dnsmasq, resolvconf

, libnss-myhostname, postfix, postfix-ldap, postfix-policyd-spf-perl, postfix-pcre, dovecot-core, dovecot-ldap, doveco

t-lmtpd, dovecot-managesieved, dovecot-antispam, rspamd, opendkim-tools, postsrsd, procmail, mailutils, redis-server,

acl, git, curl, wget, cron, unzip, jq, bc, at, procps, j2cli, lsb-release, haveged, fake-hwclock, lsof, whois

Recommends: yunohost-admin, ntp, inetutils-ping | iputils-ping, bash-completion, rsyslog, php7.4-common, php7.4-fpm, p

hp7.4-ldap, php7.4-intl, mariadb-server, php7.4-mysql, php7.4-gd, php7.4-curl, php-php-gettext, python3-pip, unattende

d-upgrades, libdbd-ldap-perl, libnet-dns-perl, metronome (>= 3.14.0)

Conflicts: apache2, bind9, dovecot-core (>= 1:2.3.14), fail2ban (>= 0.11.3), iptables (>= 1.8.8), iptables-persistent,

nginx-extras (>= 1.19), openssl (>= 3.0), redis-server (>= 5:6.1), slapd (>= 2.4.58)

Homepage: https://yunohost.org/

Download-Size: 1,239 kB

APT-Manual-Installed: yes

APT-Sources: Index of /debian/ bullseye/stable amd64 Packages

Description: manageable and configured self-hosting server

YunoHost aims to make self-hosting accessible to everyone. It configures

an email, Web and IM server alongside a LDAP base. It also provides

facilities to manage users, domains, apps and so.

.

This package contains YunoHost scripts and binaries to be used by the

moulinette. It allows one to manage the server with a command-line tool

and an API.


I checked on the forum that the similar issue were related to Yunohost 4.X. But mine is for sure, 11.2.23 (stable), as it list in the right bottom corner of the admin page.

Can anyone please help?

You should probably a different thread about the peertube issue because nobody is going to bother reading a thread that’s already solved and then discuss a totally different issue

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