Package php7 0 curl has no installation candidate

I have a problem for installing php7.0-curl on my homestead.

On my Laravel homestead:

sudo apt-get install php7.0-curl

It returns :

E: Could not find package php7.0-curl

E: Could not find package matching the regex « php7.0-curl »

Note: if I run in my terminal just : curl --help it's working.

For info, my computer runs on:

Distributor ID: Ubuntu
Description:Ubuntu 15.04
Release: 15.04
Codename: vivid

asked Feb 22, 2016 at 10:41

Package php7 0 curl has no installation candidate

4

Try this :

sudo add-apt-repository ppa:ondrej/php-7.0
sudo apt-get install software-properties-common -y
sudo apt-get update
sudo apt-cache search php7.0-curl 

If you find it in php7.0-curl then install it using

sudo apt-get install php7.0-curl

Hope it helps.

Package php7 0 curl has no installation candidate

HMD

2,1276 gold badges25 silver badges36 bronze badges

answered Jul 30, 2019 at 13:04

The package php7.0-curl is only available on Ubuntu 16.04 LTS (xenial) and on Ubuntu 16.10 (yakkety, to be released).

Your current version of Ubuntu, 15.04 (vivid) has reached end of life the February 4, 2016

You can try to import the package from one of these distributions and resolve dependencies by hand but it would be much safer to install Ubuntu 16.04 LTS.

By the way, if you want to install php7.0-curl inside Laravel Homestead, you need to insure that the ubuntu version running inside Laravel Homestead is greater or equal to 16.04.

answered May 6, 2016 at 11:54

Ortomala LokniOrtomala Lokni

51.1k17 gold badges168 silver badges214 bronze badges

You can either do:

sudo apt-get install php php-common

or

sudo apt-get -f install

to solve this dependency issue, however, I would opt for the first one, the second is like solving fine details with a sledgehammer.

If this all really doesn't solve your problem, then you might as well check if you have the package repositories enabled

Package php7 0 curl has no installation candidate
Package php7 0 curl has no installation candidate
and run an:

sudo apt-get update
sudo apt-get dist-upgrade

before retrying.


Following procedure retrieved from chat discussion:

wget http://security.ubuntu.com/ubuntu/pool/main/p/php7.0/php7.0-common_7.0.4-7ubuntu2.1_i386.deb
wget http://security.ubuntu.com/ubuntu/pool/main/p/php7.0/php7.0-curl_7.0.4-7ubuntu2.1_i386.deb
sudo dpkg -i php7.0-common_7.0.4-7ubuntu2.1_i386.deb
sudo dpkg -i php7.0-curl_7.0.4-7ubuntu2.1_i386.deb

Solved it. Packages for the 'amd64' architecture can be found at packages.ubuntu.com.

Hi,

When installign teh Growatt php script, executing "sudo apt-get install php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0- php7.0-cli" I get all kinds of errors. See below. Any idea how to overcome this?

I've installed the latest Rasbian and Domoticz (stable) versions.

Pls let me know!

H.

QUOTE

pi@raspberrypi:~ $ sudo apt-get install php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0- php7.0-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php7.0-thrift' for regex 'php7.0'
Note, selecting 'php7.0-remctl' for regex 'php7.0'
Note, selecting 'php7.0-common' for regex 'php7.0'
Note, selecting 'php7.0-curl' for regex 'php7.0'
Note, selecting 'php-remctl' instead of 'php7.0-remctl'
Note, selecting 'php7.0-thrift' for regex 'php7.0'
Note, selecting 'php7.0-remctl' for regex 'php7.0'
Note, selecting 'php7.0-common' for regex 'php7.0'
Note, selecting 'php7.0-curl' for regex 'php7.0'
Package 'php7.0-common' is not installed, so not removed
Note, selecting 'php-remctl' instead of 'php7.0-remctl'
Package 'php7.0-thrift' is not installed, so not removed
Package 'php7.0-curl' is not installed, so not removed
Package php7.0-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 'php7.0-curl' has no installation candidate
E: Unable to locate package php7.0-gd
E: Couldn't find any package by glob 'php7.0-gd'
E: Couldn't find any package by regex 'php7.0-gd'
E: Unable to locate package php7.0-imap
E: Couldn't find any package by glob 'php7.0-imap'
E: Couldn't find any package by regex 'php7.0-imap'
E: Unable to locate package php7.0-json
E: Couldn't find any package by glob 'php7.0-json'
E: Couldn't find any package by regex 'php7.0-json'
E: Unable to locate package php7.0-mcrypt
E: Couldn't find any package by glob 'php7.0-mcrypt'
E: Couldn't find any package by regex 'php7.0-mcrypt'
E: Unable to locate package php7.0-cli
E: Couldn't find any package by glob 'php7.0-cli'
E: Couldn't find any package by regex 'php7.0-cli'
pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ sudo apt-get install php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0- php7.0-cli
Note, selecting 'php7.0-common' for regex 'php7.0'
Note, selecting 'php7.0-curl' for regex 'php7.0'
Note, selecting 'php-remctl' instead of 'php7.0-remctl'
Note, selecting 'php7.0-thrift' for regex 'php7.0'
Note, selecting 'php7.0-remctl' for regex 'php7.0'
Note, selecting 'php7.0-common' for regex 'php7.0'
Note, selecting 'php7.0-curl' for regex 'php7.0'
Package 'php7.0-common' is not installed, so not removed
Note, selecting 'php-remctl' instead of 'php7.0-remctl'
Package 'php7.0-thrift' is not installed, so not removed
Package 'php7.0-curl' is not installed, so not removed
Package php7.0-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 'php7.0-curl' has no installation candidate
E: Unable to locate package php7.0-gd
E: Couldn't find any package by glob 'php7.0-gd'
E: Couldn't find any package by regex 'php7.0-gd'
E: Unable to locate package php7.0-imap
E: Couldn't find any package by glob 'php7.0-imap'
E: Couldn't find any package by regex 'php7.0-imap'
E: Unable to locate package php7.0-json
E: Couldn't find any package by glob 'php7.0-json'
E: Couldn't find any package by regex 'php7.0-json'
E: Unable to locate package php7.0-mcrypt
E: Couldn't find any package by glob 'php7.0-mcrypt'
E: Couldn't find any package by regex 'php7.0-mcrypt'
E: Unable to locate package php7.0-cli
E: Couldn't find any package by glob 'php7.0-cli'
Reading package lists... Doneby regex 'php7.0-cli'
Building dependency tree
Reading state information... Done
Note, selecting 'php7.0-thrift' for regex 'php7.0'
Note, selecting 'php7.0-remctl' for regex 'php7.0'
Note, selecting 'php7.0-common' for regex 'php7.0'
Note, selecting 'php7.0-curl' for regex 'php7.0'
Note, selecting 'php-remctl' instead of 'php7.0-remctl'
Note, selecting 'php7.0-thrift' for regex 'php7.0'
Note, selecting 'php7.0-remctl' for regex 'php7.0'
Note, selecting 'php7.0-common' for regex 'php7.0'
Note, selecting 'php7.0-curl' for regex 'php7.0'
Package 'php7.0-common' is not installed, so not removed
Note, selecting 'php-remctl' instead of 'php7.0-remctl'
Package 'php7.0-thrift' is not installed, so not removed
Package 'php7.0-curl' is not installed, so not removed
Package php7.0-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 'php7.0-curl' has no installation candidate
E: Unable to locate package php7.0-gd
E: Couldn't find any package by glob 'php7.0-gd'
E: Couldn't find any package by regex 'php7.0-gd'
E: Unable to locate package php7.0-imap
E: Couldn't find any package by glob 'php7.0-imap'
E: Couldn't find any package by regex 'php7.0-imap'
E: Unable to locate package php7.0-json
E: Couldn't find any package by glob 'php7.0-json'
E: Couldn't find any package by regex 'php7.0-json'
E: Unable to locate package php7.0-mcrypt
E: Couldn't find any package by glob 'php7.0-mcrypt'
E: Couldn't find any package by regex 'php7.0-mcrypt'
E: Unable to locate package php7.0-cli
E: Couldn't find any package by glob 'php7.0-cli'
E: Couldn't find any package by regex 'php7.0-cli'

UNQUOTE