Page 1 of 1

Trying to upgrade PHP 7.4 to 8.x after upgrade from Debian 10 to 11

Posted: 2024-09-14 02:31
by NathanWarawa
Here's the output trying to update:

Code: Select all

techonnapkins@deb1-wp-vm:/etc/apt/sources.list.d$ sudo apt update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease                                                        
Hit:3 http://ftp.debian.org/debian bullseye-backports InRelease                                              
Hit:4 http://deb.debian.org/debian bullseye-updates InRelease                                                
Get:5 https://packages.sury.org/php bullseye InRelease [7,551 B]                                             
Hit:6 https://packages.cloud.google.com/apt google-cloud-logging-stretch-all InRelease                       
Hit:7 http://packages.cloud.google.com/apt google-cloud-monitoring-stretch-all InRelease
Hit:8 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease
Hit:9 http://packages.cloud.google.com/apt google-compute-engine-stretch-stable InRelease
Hit:10 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-stretch InRelease
Err:5 https://packages.sury.org/php bullseye InRelease
  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
Reading package lists... Done
W: GPG error: https://packages.sury.org/php bullseye InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
E: The repository 'https://packages.sury.org/php bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Re: Trying to upgrade PHP 7.4 to 8.x after upgrade from Debian 10 to 11

Posted: 2024-09-14 04:53
by sunrat
Looks like you need to update the signing key. Read the README.txt at https://packages.sury.org/php/

Re: Trying to upgrade PHP 7.4 to 8.x after upgrade from Debian 10 to 11

Posted: 2024-09-16 04:28
by NathanWarawa
Thank you. It looked like a batch file... just ran each of the "sudo" lines manually, and apt update no longer throws up an key error.

I then ran the update according to this guide:

https://php.watch/articles/php-8.3-inst ... bian-quick

... and seems to be fine... confirmed 8.3 installed.

Should the 7.4 packages be removed? Does it matter?