无法安装任何php包(有未满足的依赖关系)

问题描述 投票:0回答:1

我正在尝试运行作曲家,但面临一个又一个问题。

第一个问题是 Composer 的运行速度明显慢于正常速度,因为您没有启用 PHP curl 扩展

当我尝试使用安装它时 sudo apt install php-curl

我得到以下信息: sudo apt-get install php-curl

Reading package lists... Done
Building dependency tree... Done
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.3-curl : Depends: php8.3-common (= 8.3.6-0ubuntu0.24.04.1) but 8.3.6-1+ubuntu22.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.

到目前为止我还无法解决这个问题。我还下载了以下软件包: php8.3-common_8.3.6-0maysync1_arm64.deb 并尝试安装它,但它给出了

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'php8.3-common:arm64' instead of './php8.3-common_8.3.6-0ubuntu0.24.04.1_arm64.deb'
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.3-common:arm64 : Depends: libc6:arm64 (>= 2.38) but it is not installable
                       Depends: libffi8:arm64 (>= 3.4) but it is not installable
                       Depends: libssl3t64:arm64 (>= 3.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

我该如何解决这个问题?

composer-php php-8.3
1个回答
0
投票

我认为发生这种情况是因为nodejs是从deb.nodesource.com安装的,而npm来自ubuntu。通常混合源应该没问题,但由于某种原因,nodesource 版本没有被标记为满足 npm 依赖关系。您可以通过比较 apt-cache 策略 npm 和 apt-cache 策略 nodejs 来看到这一点。 aptitude 的答案对我有用,但混合 apt 和 aptitude 让我感到紧张。

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