![](/img/trans.png)
[英]Can't install PHP 7.3 on macOS Catalina due to weird version error
[英]Can't install PHP 7.3: “release not found”
我想安裝php7.3。 我使用以下腳本。
apt-get update && apt-get upgrade && \
apt-get -y install software-properties-common && \
add-apt-repository ppa:ondrej/php && \
apt-get update && \
apt-get -y install php7.3 \
php7.3-mbstring
錯誤提示:
W: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu eoan Release' does not have a Release file.
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/eoan/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
我在用:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
我遵循的指南是如何在Ubuntu上安裝PHP(7、7.2或7.3) 。
看來您的系統正在嘗試使用eoan
發布的Ubuntu的eoan
發行版,因此也難怪該PPA上不存在用於該發行版的軟件包。
您可以在/etc/apt/sources.list.d/
中的相關文件中將eoan
手動更改為bionic
,然后再次運行apt-get update && apt-get -y install php7.3 php7.3-mbstring
。
為什么您的系統為什么使用eoan
而不是bionic
,我無法回答。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.