安装zip,imagick,gd,xsl这些扩展失败

1Panel 版本:v2.0.12
操作系统(设备): Debian 13
PHP:8.2.29

  • 这个是其中一个服务器安装成功的日志

2025/10/31 12:45:51 ------ install extension: zip ------
2025/10/31 12:45:51 install-php-extensions v.2.9.7
2025/10/31 12:45:53 Updating channel “pecl.php.net
2025/10/31 12:45:54 Update of Channel “pecl.php.net” succeeded
2025/10/31 12:45:54 Hit:1 Index of /debian/ bookworm InRelease
2025/10/31 12:45:54 Get:2 Index of /debian/ bookworm-updates InRelease [55.4 kB]
2025/10/31 12:45:54 Get:3 https://mirrors.ustc.edu.cn/debian-security bookworm-security InRelease [48.0 kB]
2025/10/31 12:45:55 Get:4 https://mirrors.ustc.edu.cn/debian-security bookworm-security/main amd64 Packages [284 kB]
2025/10/31 12:45:55 Fetched 388 kB in 0s (843 kB/s)
2025/10/31 12:45:55 Reading package lists…
2025/10/31 12:45:59 ### INSTALLING REQUIRED PACKAGES ###

– 这个是安装失败的日志

------ install extension: zip ------
install-php-extensions v.2.9.8
Updating channel “pecl.php.net
Channel “pecl.php.net” is up to date
Hit:1 Index of /debian/ trixie InRelease
Hit:2 Index of /debian/ trixie-updates InRelease
Hit:3 https://mirrors.ustc.edu.cn/debian-security trixie-security InRelease
Get:4 Index of /debian/13/prod/ trixie InRelease [3952 B]
Err:4 Index of /debian/13/prod/ trixie InRelease
Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key EE4D7792F748182B, which is needed to verify signature.
Reading package lists…
W: OpenPGP signature verification failed: Index of /debian/13/prod/ trixie InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key EE4D7792F748182B, which is needed to verify signature.
E: The repository ‘Index of /debian/13/prod/ trixie InRelease’ is not signed.
------ install-php-extensions zip failed ------

有好几个扩展都是安装失败的 如:imagick,gd,xsl,日志形式都是一样的。

初步测试8.2.28没有问题8.2.29才出现

我试了一下 没有问题
你是新建的吗?删除重试一下

这个是安装 8.2.29 无任何扩展,然后手动安装扩展pdo_sqlsrv报错

2025/10/31 15:18:54
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 975 100 975 0 0 3497 0 --:–:-- --:–:-- --:–:-- 3507
2025/10/31 15:18:54 - adding the Microsoft APT source list
2025/10/31 15:18:54 Hit:1 Index of /debian/ trixie InRelease
2025/10/31 15:18:54 Hit:2 Index of /debian/ trixie-updates InRelease
2025/10/31 15:18:54 Hit:3 https://mirrors.ustc.edu.cn/debian-security trixie-security InRelease
2025/10/31 15:18:55 Get:4 Index of /debian/13/prod/ trixie InRelease [3952 B]
2025/10/31 15:18:55 Err:4 Index of /debian/13/prod/ trixie InRelease
2025/10/31 15:18:55 Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key EE4D7792F748182B, which is needed to verify signature.
2025/10/31 15:18:56 Reading package lists…
2025/10/31 15:18:56 W: OpenPGP signature verification failed: Index of /debian/13/prod/ trixie InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key EE4D7792F748182B, which is needed to verify signature.
2025/10/31 15:18:56 E: The repository ‘Index of /debian/13/prod/ trixie InRelease’ is not signed.
2025/10/31 15:18:56 ------ install-php-extensions pdo_sqlsrv failed ------
2025/10/31 15:18:56 子任务 失败: handle failed, std: , err: exit status 1
2025/10/31 15:18:57 [TASK-END]

我现在换了个方式,安装环境的还是不选扩展,依次安装了imagick,gd,xsl,zip,pdo_mysql,pdo_pgsql,pdo_sqlsrv。
安装到pdo_sqlsrv时报错:

2025/10/31 15:15:19 安装运行环境扩展 [pdo_sqlsrv] 任务开始 [START]
2025/10/31 15:15:19
2025/10/31 15:15:19 ============================================
2025/10/31 15:15:19 PHP version : 8.2.29
2025/10/31 15:15:19 Install extensions : pdo_sqlsrv
2025/10/31 15:15:19 ============================================
2025/10/31 15:15:19
2025/10/31 15:15:19 ------ install extension: pdo_sqlsrv ------
2025/10/31 15:15:19 install-php-extensions v.2.9.8
2025/10/31 15:15:20 Updating channel “pecl.php.net
2025/10/31 15:15:22 Channel “pecl.php.net” is up to date
2025/10/31 15:15:23 Hit:1 Index of /debian/ trixie InRelease
2025/10/31 15:15:23 Hit:2 Index of /debian/ trixie-updates InRelease
2025/10/31 15:15:23 Hit:3 https://mirrors.ustc.edu.cn/debian-security trixie-security InRelease
2025/10/31 15:15:23 Get:4 Index of /debian/13/prod/ trixie InRelease [3952 B]
2025/10/31 15:15:23 Err:4 Index of /debian/13/prod/ trixie InRelease
2025/10/31 15:15:23 Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key EE4D7792F748182B, which is needed to verify signature.
2025/10/31 15:15:24 Reading package lists…
2025/10/31 15:15:24 W: OpenPGP signature verification failed: Index of /debian/13/prod/ trixie InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key EE4D7792F748182B, which is needed to verify signature.
2025/10/31 15:15:24 E: The repository ‘Index of /debian/13/prod/ trixie InRelease’ is not signed.
2025/10/31 15:15:24 ------ install-php-extensions pdo_sqlsrv failed ------
2025/10/31 15:15:24 子任务 失败: handle failed, std: , err: exit status 1
2025/10/31 15:15:25 [TASK-END]

所在节点是 Debain13 是吗 是什么设备?是虚拟机吗?

Debain13 和 Debain12 的机器都是这样。都是云服务器,阿里云的,景安,还有其他几家国内的。
试了香港的服务器也是这个报错,刚测试的:

2025/10/31 16:41:50 Get:1 Index of /debian/13/prod/ trixie InRelease [3952 B]

2025/10/31 16:41:50 Err:1 Index of /debian/13/prod/ trixie InRelease

2025/10/31 16:41:50 Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key EE4D7792F748182B, which is needed to verify signature.

2025/10/31 16:41:50 Hit:2 Index of /debian/ trixie InRelease

2025/10/31 16:41:50 Hit:3 Index of /debian/ trixie-updates InRelease

2025/10/31 16:41:50 Hit:4 https://mirrors.ustc.edu.cn/debian-security trixie-security InRelease

2025/10/31 16:41:53 Reading package lists…

2025/10/31 16:41:53 W: OpenPGP signature verification failed: Index of /debian/13/prod/ trixie InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key EE4D7792F748182B, which is needed to verify signature.

2025/10/31 16:41:53 E: The repository ‘Index of /debian/13/prod/ trixie InRelease’ is not signed.

2025/10/31 16:41:53 ------ install-php-extensions pdo_sqlsrv failed ------

2025/10/31 16:41:53 子任务 失败: handle failed, std: , err: exit status 1

2025/10/31 16:41:54 [TASK-END]

image

换个源试试

关键是前几天安装的同样环境没有问题,当时是8.2.28,今天删了重新配置,是8.2.29,就这样了。

换了几个 还是不行。看报错信息是:
https://packages.microsoft.com/debian/13/prod

这个网址,换源这个地址并没有改变。

这个是换了香港源

其他扩展试一下

看了一下 pod_sqlsrv 现在有点问题

应该是由于基础镜像改为了 Debain 13 但是微软还没有发布 pod_sqlsrv 需要的系统库 所以现在暂时无法安装

你可以先使用旧版本试试

我怎么改为旧版本?能否告知下步骤?

在你创建的 /opt/1panel/runtime/php/<php_name>运行环境目录下

找到 .env 文件 修改 PHP_VERSION 这个参数 为 8.2.28

然后执行 docker compose build

感谢提供支持:grinning:

但是,按照步骤操作后,无法新建网站;之前选择这个镜像的,也无法改成其他的。

报错内容为:
服务内部错误: 运行环境 bj 镜像不存在,请重新编辑运行环境。

注:bj为创建镜像的名字。


然后我把env文件改回去,重新编译,也还是不行。在运行环境,点编辑,再点确认,重新编译后,也网站选择这个镜像还是同样的报错。