I want to install PHP5-Curl
in my Debian server. But when I run this command:
apt-get install PHP5-Curl
I got an error like:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package PHP5-Curl is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'PHP5-Curl' has no installation candidate
asked Jan 3, 2016 at 9:02
bitcodrbitcodr
1,3254 gold badges20 silver badges41 bronze badges
6
Use sudo apt-get install php5.6-curl
Ferrmolina
2,7372 gold badges27 silver badges45 bronze badges
answered Feb 5, 2017 at 5:46
Benjamin GakamiBenjamin Gakami
1,4502 gold badges16 silver badges20 bronze badges
0
Try searching for the available version that suits for
you with sudo apt-cache search curl | grep php
and then sudo apt-get install php-curl
.
In my case it was php7.0-curl
.
answered Feb 6, 2019 at 13:20
bogtanbogtan
8052 gold badges13 silver badges22 bronze badges
4
First search for your php version using command php -v and then download the respective version of php[version]-curl.
answered Jan 23, 2020 at 20:47
It looks like you have multiple, conflicting versions of PHP installed. First, let's clean up. Back up your configuration files first, as this will remove them.
dpkg --purge --force-all php5-curl
apt-get remove php5-*
apt-get purge php5-*
apt-get autoremove
Now, run dpkg -l | grep php5
again, and make sure that no php5-...
packages are installed.
Then, let's start fresh:
apt-get install php5-cli php5-curl
If you need the Apache module:
apt-get install libapache2-mod-php5
Or if you need the FPM module:
apt-get install php5-fpm
answered Jan 3, 2016 at 9:30
WillWill
23.1k13 gold badges92 silver badges103 bronze badges
11
Questions : PHP5-Curl install error no installation candidate
2022-09-14T09:49:05+00:00 2022-09-14T09:49:05+00:00
936
I want to install PHP5-Curl in my Debian anycodings_ubuntu server. But when I run this command:
apt-get install PHP5-Curl
I got an error like:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package PHP5-Curl is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'PHP5-Curl' has no installation candidate
Total Answers 4
33
Answers 1 : of PHP5-Curl install error no installation candidate
Use sudo apt-get install php5.6-curl
0
2022-09-14T09:49:05+00:00 2022-09-14T09:49:05+00:00Answer Link
mRahman
3
Answers 2 : of PHP5-Curl install error no installation candidate
Try searching for the available version anycodings_ubuntu that suits for you with sudo apt-cache anycodings_ubuntu search curl | grep php and then sudo anycodings_ubuntu apt-get install php-curl.
In my case it was php7.0-curl.
0
2022-09-14T09:49:05+00:00 2022-09-14T09:49:05+00:00Answer Link
miraj
6
Answers 3 : of PHP5-Curl install error no installation candidate
First search for your php version using anycodings_ubuntu command php -v and then download the anycodings_ubuntu respective version of php[version]-curl.
0
2022-09-14T09:49:05+00:00 2022-09-14T09:49:05+00:00Answer Link
joy
2
Answers 4 : of PHP5-Curl install error no installation candidate
It looks like you have multiple, anycodings_ubuntu conflicting versions of PHP installed. anycodings_ubuntu First, let's clean up. Back up your anycodings_ubuntu configuration files first, as this will anycodings_ubuntu remove them.
dpkg --purge --force-all php5-curl
apt-get remove php5-*
apt-get purge php5-*
apt-get autoremove
Now, run dpkg -l | grep php5 again, and anycodings_ubuntu make sure that no php5-... packages are anycodings_ubuntu installed.
Then, let's start fresh:
apt-get install php5-cli php5-curl
If you need the Apache module:
apt-get install libapache2-mod-php5
Or if you need the FPM module:
apt-get install php5-fpm
0
2022-09-14T09:49:05+00:00 2022-09-14T09:49:05+00:00Answer Link
jidam