当我尝试使用 Remi 存储库安装 PHP 时,出现以下错误
dnf module list php
Remi's Modular repository for Enterprise Linux 8 - aarch64
Errors during downloading metadata for repository 'remi-modular':
- Status code: 403 for http://cdn.remirepo.net/enterprise/8/modular/aarch64/mirror (IP: 176.31.103.194)
- Status code: 403 for http://cdn.remirepo.net/enterprise/8/modular/aarch64/mirror (IP: 195.154.241.117)
Error: Failed to download metadata for repo 'remi-modular':
Cannot prepare internal mirrorlist: Status code: 403 for
http://cdn.remirepo.net/enterprise/8/modular/aarch64/mirror (IP: 176.31.103.194)
如果访问找不到网页我收到一个错误
仅提供镜像列表。使用https://rpms.remirepo.net/内容。
以下是我安装 Remi 的方法
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum update
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
答案1
Remi 存储库包当前仅针对 x86_64 架构构建,不针对 aarch64 架构构建。在 Remi 选择为 aarch64 架构构建包之前,您将无法在 AWS Graviton 实例上使用 remi 包。