无法在 Ubuntu 18.04 上安装 php7.4-dev

无法在 Ubuntu 18.04 上安装 php7.4-dev

尝试安装php7.4-dev扩展程序,但我收到

E: Unable to locate package php7.4-dev
E: Couldn't find any package by glob 'php7.4-dev'
E: Couldn't find any package by regex 'php7.4-dev'

当我运行时apt show php它显示以下内容:

Package: php
Version: 1:7.2+60ubuntu1
Priority: optional
Section: php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian PHP Maintainers <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12.3 kB
Depends: php7.2
Supported: 5y
Download-Size: 3,084 B
APT-Sources: http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Description: server-side, HTML-embedded scripting language (default)
 PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
 open source general-purpose scripting language that is especially suited
 for web development and can be embedded into HTML.
 .
 This package is a dependency package, which depends on Ubuntu's default
 PHP version (currently 7.2).

我使用以下命令来更新存储库。

sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.4-dev

然而,我每次都会遇到同样的结果,不幸的是,我无法安装php7.4-dev

相关内容