无法在 Ubuntu 上安装 php8-dev

无法在 Ubuntu 上安装 php8-dev

我安装了 Ubuntu 20.04 系统,我想安装 mcrypt php 扩展。安装 xampp 服务器后,我尝试安装 mcrypt,因此我需要先安装 php-dev 包,但出现此错误。

sajad@ubuntu-latitude-e7450:~$  **sudo apt install php8.0-dev**
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:
 php8.0-dev : Depends: libpcre2-dev (>= 10.30) but it is not going to be installed
              Depends: libtool (>= 2.4.6-0.1~) but it is not going to be installed
              Recommends: pkg-php-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.**

相关内容