![安装 php 8.1 manjaro](https://linux22.com/image/223230/%E5%AE%89%E8%A3%85%20php%208.1%20manjaro.png)
我正在尝试在 manjaro 中安装 php 8.1 但出现错误。
我正在这样做:
[home_the_archphp_arch]
Server = https://download.opensuse.org/repositories/home:/el:/archphp/Arch/$arch
key=$(curl -fsSL https://download.opensuse.org/repositories/home:el:archphp/Arch/$(uname -m)/home_el_archphp_Arch.key)
fingerprint=$(gpg --quiet --with-colons --import-options show-only --import --fingerprint <<< "${key}" | awk -F: '$1 == "fpr" { print $10 }')
pacman-key --init
pacman-key --add - <<< "${key}"
pacman-key --lsign-key "${fingerprint}"
但跑步时
sudo pacman -S php81-apache
他告诉我:
error: php81: signature of "home:el OBS Project <home:[email protected]>" is invalid
:: The file /var/cache/pacman/pkg/php81-8.1.21-1-x86_64.pkg.tar.zst is corrupt (invalid or corrupt package (PGP signature)).
Do you want to delete it? [Y/n]
我一直在寻找,但没有找到任何东西。
有谁知道如何修理它?
谢谢。
答案1
添加存储库后,您可能应该使用可用的包更新包管理器。