所有 PHP 7.4 在 20.04 中均不可用

所有 PHP 7.4 在 20.04 中均不可用

我刚刚完成了发布升级,一切顺利,但我仍然停留在 PHP 7.3。

$ apt install php7.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.4 : Depends: libapache2-mod-php7.4 but it is not going to be installed or
                   php7.4-fpm but it is not going to be installed or
                   php7.4-cgi but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有趣的是,并非所有 PHP 7.4 都可以在 APT 中使用

dpkg -l | grep php7.4

返回

ii  php7.4-bcmath                         7.4.5-1+ubuntu19.10.1+deb.sury.org+1                  amd64        Bcmath module for PHP
ii  php7.4-common                         7.4.5-1+ubuntu19.10.1+deb.sury.org+1                  amd64        documentation, examples and common module for PHP
ii  php7.4-sqlite3      

尝试删除 Ondrej 的 PPA,apt clean然后更新/升级,apt install -f但没有成功。

知道它可能是什么吗?

答案1

我找到了一个可能的解决方案,我重新激活了 Ondrej 的 PPA,并能够安装 PHP 7.4.5(最新版本)。我不知道为什么我仍然没有从官方存储库看到 PHp 7.4

相关内容