【问题标题】:Can't install PHP 7.3: "release not found"无法安装 PHP 7.3:“找不到发布”
【发布时间】:2019-09-28 01:35:51
【问题描述】:

我想安装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

我遵循的指南是How to install PHP (7, 7.2 or 7.3) on Ubuntu

【问题讨论】:

    标签: php composer-php


    【解决方案1】:

    您的系统似乎正在尝试使用尚未发布的 Ubuntu 的 eoan 发行版,因此该 PPA 上不存在该发行版的软件包也就不足为奇了。

    您可以在/etc/apt/sources.list.d/的相关文件中手动将eoan更改为bionic,然后再次运行apt-get update && apt-get -y install php7.3 php7.3-mbstring

    为什么你的系统使用eoan而不是bionic,我无法回答。

    【讨论】:

      猜你喜欢
      • 2021-01-03
      • 1970-01-01
      • 2021-05-24
      • 2020-10-01
      • 2021-01-18
      • 2021-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多