Dpkg PHP not installed, but it is installed

Kernels & Hardware, configuring network, installing services

Dpkg PHP not installed, but it is installed

Postby coppolino97 » 2020-09-18 16:30

Hi all,
I have a machine with Debian 10.
On this machine a would install backup software (CBackup is software https://cbackup.me/en/).

I have installed PHP version 7.1 using this guide https://www.itzgeek.com/how-tos/linux/d ... ian-8.html, due to I had problem with php-mcrypt if I use PHP 7.4 version (default PHP version with Debian 10).

PHP 7.1 is installed properly in my opinion. This is output of "php -v" command:
Code: Select all
root@hostname:~# php -v
PHP 7.1.33-17+0~20200807.39+debian10~1.gbp032d47 (cli) (built: Aug  7 2020 15:00:57) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.33-17+0~20200807.39+debian10~1.gbp032d47, Copyright (c) 1999-2018, by Zend Technologies


After that I tryed to install "cbackup" software using dpkg and I get this error:
Code: Select all
pkg: package libgcc1 pre-depends on php (>= 7.0)
php is not installed


I have typed this command too
Code: Select all
update-alternatives --set php /usr/bin/php7.1


Could it be this the issue?

Code: Select all
 apt show php -a
Package: php
Version: 2:7.4+76+0~20200511.26+debian10~1.gbpc9beb6
Priority: optional
Section: php
Source: php-defaults (76+0~20200511.26+debian10~1.gbpc9beb6)
Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
Installed-Size: 13,3 kB
Depends: php7.4
Download-Size: 6.524 B
APT-Sources: https://packages.sury.org/php buster/main amd64 Packages
Description: server-side, HTML-embedded scripting language (default)
 PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
 open source general-purpose scripting language that is especially suited
 for web development and can be embedded into HTML.
 .
 This package is a dependency package, which depends on latest stable
 PHP version (currently 7.4).

Package: php
Version: 2:7.3+69
Priority: optional
Section: php
Source: php-defaults (69)
Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
Installed-Size: 12,3 kB
Depends: php7.3
Download-Size: 5.964 B
APT-Sources: http://ftp.it.debian.org/debian buster/main amd64 Packages
Description: linguaggio di scripting incorporato nell'HTML, lato server (predefinito)
 PHP (acronimo ricorsivo di PHP: Hypertext Preprocessor) è un linguaggio di
 scripting open source generico largamente usato che è particolarmente
 adatto per lo sviluppo web e che può essere incorporato nell'HTML.
 .
 Questo è un pacchetto di dipendenze, che dipende dalla versione stabile più
 recente di PHP (attualmente la 7.3).



Is there a way to fix it?

Thanks so much in advanced! :D
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 70
Joined: 2018-06-05 15:23

Re: Dpkg PHP not installed, but it is installed

Postby sickpig » 2020-09-19 00:01

cbackup doesn't have a package for Debian. The .deb they have is for "Ubuntu 16 LTS release".
You should try building from source or package it for Debian yourself before using dpkg to install it.
User avatar
sickpig
 
Posts: 575
Joined: 2019-01-23 10:34

Re: Dpkg PHP not installed, but it is installed

Postby coppolino97 » 2020-09-19 11:39

Hi @sickpig,

I tought that Ubuntu and Debian packages has got the same extension *deb, I can install it on Debian.

thanks for your reply.
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 70
Joined: 2018-06-05 15:23

Re: Dpkg PHP not installed, but it is installed

Postby Head_on_a_Stick » 2020-09-19 14:22

coppolino97 wrote:I tought that Ubuntu and Debian packages has got the same extension *deb, I can install it on Debian.

Only if the dependencies are satisfiable (is that a word?).
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Dpkg PHP not installed, but it is installed

Postby stevepusser » 2020-09-19 17:28

coppolino97 wrote:Hi @sickpig,

I tought that Ubuntu and Debian packages has got the same extension *deb, I can install it on Debian.

thanks for your reply.


But though the OP's thinking is totally mistaken concerning debs (why don't these Toyota brake rotors fit on my Ferrari?) (Don't break Debian, repo mix and match parade thread), why does the version he has installed indicate the standard Debian 10 version? It's probable the 7.1 version they installed didn't add itself to the alternatives system--if they want a GUI to help with that, there is Galternatives.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12083
Joined: 2009-10-06 05:53

Re: Dpkg PHP not installed, but it is installed

Postby coppolino97 » 2020-09-20 14:38

Thanks for your help and explanations! :D
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 70
Joined: 2018-06-05 15:23


Return to System configuration

Who is online

Users browsing this forum: No registered users and 22 guests

fashionable