Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

php 7.3 curl do not want to install

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
User avatar
Soul Singin'
Posts: 1605
Joined: 2008-12-21 07:02

Re: php 7.3 curl do not want to install

#16 Post by Soul Singin' »

oitsuki wrote:

Code: Select all

cd /etc/apt/sources.list.d# ls
ovhkernel.list	php.list
oitsuki wrote:

Code: Select all

deb https://packages.sury.org/php/ stretch main
There's the culprit! . /etc/apt/sources.list.d/php.list

Either delete that file or comment out the "deb" line within the file (by placing a "#" in front of "deb"). Whichever you prefer is fine. I like to keep records, so my choice would be to comment out the line and add a note. For example:

Code: Select all

##  Ondrej Sury's PHP repository -- I used it to install PHP on Debian Stretch
# deb https://packages.sury.org/php/ stretch main
Then run:

Code: Select all

apt-get update
apt-get install php7.3-curl
And have fun with PHP!

Best wishes!
- Soul

oitsuki
Posts: 16
Joined: 2019-08-08 16:53

Re: php 7.3 curl do not want to install

#17 Post by oitsuki »

no it do not want

Code: Select all

nano php.list
#deb https://packages.sury.org/php/ stretch main

 apt-get update
Réception de :1 http://debian.mirrors.ovh.net/debian buster InRelease [122 kB]
Atteint :2 http://security.debian.org/debian-security buster/updates InRelease 
Réception de :3 https://last-public-ovh-kernel.snap.mirrors.ovh.net/debian ovhkernel InRelease [4 930 B]
Réception de :4 http://debian.mirrors.ovh.net/debian buster-updates InRelease [49,3 kB]
176 ko réceptionnés en 1s (212 ko/s)
Lecture des listes de paquets... Fait

apt-get install php7.3-curl
apt-get install php7.3-curl
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation : 

Les paquets suivants contiennent des dépendances non satisfaites :
 php7.3-curl : Dépend: php7.3-common (= 7.3.11-1~deb10u1) mais 7.3.11-1+0~20191026.48+debian9~1.gbpf71ca0 devra être installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état »




User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: php 7.3 curl do not want to install

#18 Post by stevepusser »

Yes, you kept that Stretch sury repo, even after you updated to Buster.

Of course that's going to be the possible source of package problems!

Jeesh--just move the file to your current directory in your home for a backup, then update.


as root or with sudo

Code: Select all

mv /etc/apt/sources.list.d/php.list .
apt update
Then the Buster version should show correct dependencies

Code: Select all

apt show php7.3-curl
MX Linux packager and developer

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 13 times
Been thanked: 66 times

Re: php 7.3 curl do not want to install

#19 Post by dilberts_left_nut »

The already installed dependency has a higher version number so will need to be removed first, or specify the version explicitly, or just let aptitude sort it out for you.
AdrianTM wrote:There's no hacker in my grandma...

oitsuki
Posts: 16
Joined: 2019-08-08 16:53

Re: php 7.3 curl do not want to install

#20 Post by oitsuki »

Could you tell me exactly the command to make. tk

Code: Select all

mv php.list /home
root@xxxxxxx:/etc/apt/sources.list.d# apt update
Réception de :1 http://debian.mirrors.ovh.net/debian buster InRelease [122 kB]
Réception de :2 http://debian.mirrors.ovh.net/debian buster-updates InRelease [49,3 kB]
Réception de :3 https://last-public-ovh-kernel.snap.mirrors.ovh.net/debian ovhkernel InRelease [4 930 B]
Atteint :4 http://security.debian.org/debian-security buster/updates InRelease
176 ko réceptionnés en 1s (208 ko/s)
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Tous les paquets sont à jour.
root@xxxxxx:/etc/apt/sources.list.d# apt show php7.3-curl
Package: php7.3-curl
Version: 7.3.11-1~deb10u1
Priority: optional
Section: php
Source: php7.3
Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
Installed-Size: 135 kB
Provides: php-curl
Depends: php-common (>= 1:35), ucf, php7.3-common (= 7.3.11-1~deb10u1), libc6 (>= 2.14), libcurl4 (>= 7.44.0)
Breaks: php7.0-curl (<< 7.0.33-1~)
Homepage: http://www.php.net/
Download-Size: 30,8 kB
APT-Sources: http://security.debian.org/debian-security buster/updates/main amd64 Packages
Description: module CURL pour PHP
 Ce paquet fournit le module CURL pour PHP.
 .
 PHP (acronyme récursif pour « PHP: Hypertext Preprocessor » — PHP :
 préprocesseur hypertexte) est un langage de script libre très utilisé et
 généraliste. Il est particulièrement adapté au développement web et peut
 être embarqué dans du HTML.

N: Il y a 1 enregistrement supplémentaire. Veuillez utiliser l'opérande « -a » pour le voir


Code: Select all

apt show -a php7.3-curl
Package: php7.3-curl
Version: 7.3.11-1~deb10u1
Priority: optional
Section: php
Source: php7.3
Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
Installed-Size: 135 kB
Provides: php-curl
Depends: php-common (>= 1:35), ucf, php7.3-common (= 7.3.11-1~deb10u1), libc6 (>= 2.14), libcurl4 (>= 7.44.0)
Breaks: php7.0-curl (<< 7.0.33-1~)
Homepage: http://www.php.net/
Download-Size: 30,8 kB
APT-Sources: http://security.debian.org/debian-security buster/updates/main amd64 Packages
Description: module CURL pour PHP
 Ce paquet fournit le module CURL pour PHP.
 .
 PHP (acronyme récursif pour « PHP: Hypertext Preprocessor » — PHP :
 préprocesseur hypertexte) est un langage de script libre très utilisé et
 généraliste. Il est particulièrement adapté au développement web et peut
 être embarqué dans du HTML.

Package: php7.3-curl
Version: 7.3.4-2
Priority: optional
Section: php
Source: php7.3
Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
Installed-Size: 135 kB
Provides: php-curl
Depends: php-common (>= 1:35), ucf, php7.3-common (= 7.3.4-2), libc6 (>= 2.14), libcurl4 (>= 7.44.0)
Homepage: http://www.php.net/
Download-Size: 30,7 kB
APT-Sources: http://debian.mirrors.ovh.net/debian buster/main amd64 Packages
Description: module CURL pour PHP
 Ce paquet fournit le module CURL pour PHP.
 .
 PHP (acronyme récursif pour « PHP: Hypertext Preprocessor » — PHP :
 préprocesseur hypertexte) est un langage de script libre très utilisé et
 généraliste. Il est particulièrement adapté au développement web et peut
 être embarqué dans du HTML.


oitsuki
Posts: 16
Joined: 2019-08-08 16:53

Re: php 7.3 curl do not want to install

#21 Post by oitsuki »

I change in php.list strech by buster
apt update
apt install -f

seems to resolve the point but another error appear now :

Code: Select all

PHP Notice: Error creating resource: [message] fopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
[file] ......../vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php

Code: Select all

I must do to activate fpm ?
Code:
a2enmod proxy_fcgi setenvif
a2enconf php7.3-fpm

Code:
Paramétrage de php7.3-fpm (7.3.11-1+0~20191026.48+debian10~1.gbpf71ca0) ...
NOTICE: Not enabling PHP 7.3 FPM by default.
NOTICE: To enable PHP 7.3 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.3-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Paramétrage de php-memcache (3.0.9~20170802.e702b5f-3+0~20190819.10+debian10~1.gbp7a3cf6) ...
Paramétrage de php7.3 (7.3.11-1+0~20191026.48+debian10~1.gbpf71ca0) ...
Paramétrage de php7.0-cgi (7.0.33-12+0~20191026.23+debian10~1.gbp940de0) ...
Paramétrage de libapache2-mod-php7.0 (7.0.33-12+0~20191026.23+debian10~1.gbp940de0) ...
libapache2-mod-php7.0: not switching MPM - disabled by maintainer
Paramétrage de php7.0 (7.0.33-12+0~20191026.23+debian10~1.gbp940de0) ...
Paramétrage de libapache2-mod-php7.3 (7.3.11-1+0~20191026.48+debian10~1.gbpf71ca0) ...
libapache2-mod-php7.3: not switching MPM - disabled by maintainer
Paramétrage de php-soap (2:7.3+70+0~20190814.17+debian10~1.gbp1e7da2) ...
Paramétrage de libapache2-mod-php7.2 (7.2.24-1+0~20191026.31+debian10~1.gbpbbacde) ...
apache2_switch_mpm prefork: Has been disabled manually, not changing
libapache2-mod-php7.2: Could not switch to prefork MPM, not enabling PHP 7.2
Paramétrage de php7.0-xsl (7.0.33-12+0~20191026.23+debian10~1.gbp940de0) ...
Paramétrage de php-fpm (2:7.3+70+0~20190814.17+debian10~1.gbp1e7da2) ...
Paramétrage de libapache2-mod-php (2:7.3+70+0~20190814.17+debian10~1.gbp1e7da2) ...
Paramétrage de php-apcu (5.1.17+4.0.11-2+0~20190828.11+debian10~1.gbp013b27) ...
Paramétrage de php-memcached (3.1.3+2.2.0-2+0~20190814.14+debian10~1.gbp5d60d1) ...
Paramétrage de php (2:7.3+70+0~20190814.17+debian10~1.gbp1e7da2) ...
Paramétrage de php7.2 (7.2.24-1+0~20191026.31+debian10~1.gbpbbacde) ...
Traitement des actions différées (« triggers ») pour systemd (241-7~deb10u1) ...
Traitement des actions différées (« triggers ») pour man-db (2.8.5-2) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.28-10) ...
root@xxxxx:/etc/apt/sources.list.d# ^C

root@xxxxxx:/etc/apt/sources.list.d# php --version
PHP 7.3.11-1+0~20191026.48+debian10~1.gbpf71ca0 (cli) (built: Oct 26 2019 14:20:37) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.11-1+0~20191026.48+debian10~1.gbpf71ca0, Copyright (c) 1999-2018, by Zend Technologies


User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: php 7.3 curl do not want to install

#22 Post by stevepusser »

Since Buster already has that package, I would first try and install the Debian version instead of from that third party repo. The Debian packages are tested to make sure they install and work if nobody messes with the sources.
MX Linux packager and developer

User avatar
Soul Singin'
Posts: 1605
Joined: 2008-12-21 07:02

Re: php 7.3 curl do not want to install

#23 Post by Soul Singin' »

oitsuki wrote:

Code: Select all

Les paquets suivants contiennent des dépendances non satisfaites :
 php7.3-curl : Dépend: php7.3-common (= 7.3.11-1~deb10u1) mais 7.3.11-1+0~20191026.48+debian9~1.gbpf71ca0 devra être installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état »
dilberts_left_nut wrote:The already installed dependency has a higher version number so will need to be removed first, or specify the version explicitly, or just let aptitude sort it out for you.
"dilberts" explained the error well and he also described the correction that you will need to make. Steve's explanation is correct too. What their answers lack is a detailed explanation of how to perform that correction.

You need to remove the packages that you installed from Sury's repository. In this case, Sury's php7.3-common is not compatible with Debian's php7.3-curl.

Code: Select all

apt-get remove php7.3-common
apt-get install php7.3-curl
That solution looks simple. The reality might be a tangled mess.

You may have to remove and re-install a lot of packages. If so, just be patient. Have no fear. Remember that you can replace any package that your remove.

Continue removing the incompatible packages until you are able to install php7.3-curl.

To get a list of PHP packages with their installation status and version number, run:

Code: Select all

dpkg -l *php*
That list will be long. For a concise list of the installed PHP packages, run:

Code: Select all

dpkg -l *php* | grep ^ii | awk '{print $2}'
You might have to remove all of those packages. If so, remember that you can replace any package that your remove.

I hope this post helps you understand what you need to do.

Be patient. Have no fear. And keep us posted.

Good luck!
- Soul

oitsuki
Posts: 16
Joined: 2019-08-08 16:53

Re: php 7.3 curl do not want to install

#24 Post by oitsuki »

ok, I comment inside php.list the sury package before to make that ?

User avatar
Soul Singin'
Posts: 1605
Joined: 2008-12-21 07:02

Re: php 7.3 curl do not want to install

#25 Post by Soul Singin' »

oitsuki wrote:ok, I comment inside php.list the sury package before to make that ?
The comment just tells APT to ignore the line. From APT's perspective, there is no difference between commenting out the line and removing that particular file (because that particular file only contains one line). My suggestion was to keep notes for future reference. That's why I encouraged you to comment out the line.

What your need to focus on is removing the incompatible packages from Sury's repository.
Soul Singin' wrote:

Code: Select all

apt-get remove php7.3-common
apt-get install php7.3-curl
Continue removing the incompatible packages until you are able to install php7.3-curl.

oitsuki
Posts: 16
Joined: 2019-08-08 16:53

Re: php 7.3 curl do not want to install

#26 Post by oitsuki »

O I understand as I some data in production, I think I will save and make another saver. It will be more secure, but I know i will lost knowledge on process.

tk for evrything.

Post Reply