PHP7.1无法安装扩展GD

旧版本PHP安装扩展失败,换了所有镜像源都不行,PHP7.4以上所有版本都可以正常安装扩展,7.4版本以下无法使用第三方扩展源安装,只能使用官方,否则就会报错。

这是日志:

2025/07/15 15:28:59 安装运行环境扩展 [gd] 任务开始 [START]2025/07/15 15:29:00
2025/07/15 15:29:00 ============================================
2025/07/15 15:29:00 PHP version : 7.1.33
2025/07/15 15:29:00 Install extensions : gd
2025/07/15 15:29:00 ============================================
2025/07/15 15:29:00
2025/07/15 15:29:00 ------ install extension: gd ------
2025/07/15 15:29:00 install-php-extensions v.2.7.33
2025/07/15 15:29:00 #StandWithUkraine
2025/07/15 15:29:00 Updating channel “pecl.php.net
2025/07/15 15:29:06 Channel “pecl.php.net” is up to date
2025/07/15 15:29:07 Ign:1 Index of /debian-security buster/updates InRelease
2025/07/15 15:29:07 Err:2 Index of /debian-security buster/updates Release
2025/07/15 15:29:07 404 Not Found [IP: 151.101.2.132 80]2025/07/15 15:29:09 Ign:3 http://deb.debian.org/debian buster InRelease
2025/07/15 15:29:10 Ign:4 http://deb.debian.org/debian buster-updates InRelease
2025/07/15 15:29:10 Err:5 http://deb.debian.org/debian buster Release
2025/07/15 15:29:10 404 Not Found [IP: 151.101.2.132 80]2025/07/15 15:29:10 Err:6 http://deb.debian.org/debian buster-updates Release
2025/07/15 15:29:10 404 Not Found [IP: 151.101.2.132 80]2025/07/15 15:29:10 Reading package lists…
2025/07/15 15:29:10 E: The repository ‘Index of /debian-security buster/updates Release’ does not have a Release file.
2025/07/15 15:29:10 E: The repository ‘http://deb.debian.org/debian buster Release’ does not have a Release file.
2025/07/15 15:29:10 E: The repository ‘http://deb.debian.org/debian buster-updates Release’ does not have a Release file.
2025/07/15 15:29:10 ------ install-php-extensions gd failed ------
2025/07/15 15:29:10 子任务 失败: handle failed, std: , err: exit status 1
2025/07/15 15:29:11 [TASK-END]

发行版本:debian-12.9
内核版本:6.1.0-31-amd64
系统类型:x86_64
docker:28.3.2

国内机器应该是是网络问题,用默认源超时了

我换了所有源都没用,都装不上去,只有默认源能安装PHP7.1,但无法安装GD,其它安装正常