![无法在 ubuntu 20.04 上安装 php8.2-dev](https://linux22.com/image/1197609/%E6%97%A0%E6%B3%95%E5%9C%A8%20ubuntu%2020.04%20%E4%B8%8A%E5%AE%89%E8%A3%85%20php8.2-dev.png)
我正在尝试在 ubuntu 服务器上安装swool
然后perl
出现以下错误:
ERROR: `phpize' failed
当我搜索时,我发现我应该安装,php-dev
但随后出现以下错误:
The following packages have unmet dependencies:
php8.2-dev : Depends: autoconf (>= 2.63) but it is not installable
Depends: automake (>= 1.11) but it is not installable
Depends: shtool but it is not installable
Depends: libtool (>= 2.4.6-0.1~) but it is not installable
Recommends: pkg-php-tools but it is not installable
E: Unable to correct problems, you have held broken packages.
我找不到任何解决方案https://stackoverflow.com或者https://askubuntu.com如果你能帮助我,那就太好了
答案1
PHP 8.2 不在默认的 Ubuntu 20.04 存储库中,因此您必须使用ppa:ondrej/php
。您没有提到是否正在使用它。
这是我刚刚测试的,它可以在我的 Ubuntu 20.04 机器上运行:
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt upgrade
sudo apt install php8.2-dev