Update problem debian

Been trying to update my system and i am getting the following errors. maybe somone can help. thankyou
Hit:1 Index of /debian-security bookworm-security InRelease
Hit:2 Index of /debian bookworm InRelease
Hit:3 Index of /debian bookworm-updates InRelease
Hit:4 Index of /apache2/ bookworm InRelease
Get:5 Index of /php/ bookworm InRelease [7,539 B]
Hit:6 https://apt.hestiacp.com bookworm InRelease
Hit:7 Index of /packages/mainline/debian/ bookworm InRelease
Err:4 Index of /apache2/ bookworm InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
Err:5 Index of /php/ bookworm InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
Fetched 7,539 B in 1s (12.1 kB/s)
Reading package listsā€¦ Done
Building dependency treeā€¦ Done
Reading state informationā€¦ Done
45 packages can be upgraded. Run ā€˜apt list --upgradableā€™ to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /apache2/ bookworm InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /php/ bookworm InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
W: Failed to fetch https://packages.sury.org/apache2/dists/bookworm/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
W: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package listsā€¦ Done
Building dependency treeā€¦ Done
Reading state informationā€¦ Done
Calculating upgradeā€¦ Done
The following NEW packages will be installed:
linux-image-6.1.0-18-amd64
The following packages will be upgraded:
bind9 bind9-dnsutils bind9-host bind9-libs bind9-utils dnsutils imagemagick imagemagick-6-common imagemagick-6.q16 libcryptsetup12 libde265-0 libgnutls-dane0 libgnutls30 libisl23
libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6 libmariadb3 libpam-systemd libpq5 libsystemd-shared libsystemd0 libudev1 libunbound8 linux-image-amd64
linux-libc-dev mariadb-client mariadb-client-core mariadb-common mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo
mariadb-plugin-provider-snappy mariadb-server mariadb-server-core nginx qemu-guest-agent systemd systemd-sysv systemd-timesyncd tzdata udev usbutils usr-is-merged
45 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 105 MB of archives.
After this operation, 408 MB of additional disk space will be used.
Do you want to continue? [Y/n]

2 Likes

I did what you suggested, I get one last error message:

All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /apache2/ bookworm InRelease: The following signatures couldnā€™t be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
W: Failed to fetch https://packages.sury.org/apache2/dists/bookworm/InRelease The following signatures couldnā€™t be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
W: Some index files failed to download. They have been ignored, or old ones used instead.

Are you sure you executed below command?

curl -sSlo /usr/share/keyrings/apache2-keyring.gpg https://packages.sury.org/apache2/apt.gpg

If you already did, show the output of these commands:

cat /etc/apt/sources.list.d/apache2.list
md5sum /usr/share/keyrings/apache2-keyring.gpg
2 Likes

solved thank you. i must of missed it

1 Like

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