The problem seems to be the php-json
package on line 50 of the lamp.sh
script. See here: NCP Script installiert immer php8.2.0 / Setup schlägt fehl - #2 by bb77
I don’t use NCP, but when I issue apt install php-json
on my Debian 11 instance, on which I have the sury repos enabled, it tries to install multiple PHP8.2 packages:
Die folgenden zusätzlichen Pakete werden installiert:
php8.2-cli php8.2-common php8.2-opcache php8.2-phpdbg php8.2-readline
Vorgeschlagene Pakete:
php-pear
Die folgenden NEUEN Pakete werden installiert:
php-json php8.2-cli php8.2-common php8.2-opcache php8.2-phpdbg
php8.2-readline
So I would suggest someone should open a pull request, in order to remove the php-json
package from the script, because this package is no longer needed for new installations with PHP >8.0, and I’m not sure, but I suspect it could also be the reason that some users suddenly have PHP8.2 installed, after they did an apt full-upgrade
.