无法安装 php8.2-curl

问题描述 投票:0回答:1
apt install php8.2-curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php8.2-curl
E: Couldn't find any package by glob 'php8.2-curl'
E: Couldn't find any package by regex 'php8.2-curl'

然后尝试:

apt install php-curl
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:
 php-curl : Depends: php7.2-curl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有什么想法吗?

php curl
1个回答
0
投票

首先添加Add Ondrej的PPA

sudo add-apt-repository ppa:ondrej/php # Press enter
sudo apt update

然后尝试

sudo apt install php8.2-curl
.

© www.soinside.com 2019 - 2024. All rights reserved.