I’m trying to run composer but face one problem after another.
the first problem is see is
Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled
When i try to install that using
sudo apt install php-curl
I get the following:
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.
so far I have been unable to fix the issue. I have also downloaded the following packages:
php8.3-common_8.3.6-0maysync1_arm64.deb
and tried nstalling it but it gives
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.
How can I fix the issue?
I think this occurs because nodejs gets installed from deb.nodesource.com while npm comes from ubuntu. Usually mixing sources should be OK, but for some reason the nodesource versions don’t get marked as fulfilling the npm dependancy. You can see this by comparing apt-cache policy npm with apt-cache policy nodejs. The aptitude answer worked for me, but it makes me nervous to mix apt and aptitude.
Mahajan Kapil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.