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

 

 

 

Dpkg PHP not installed, but it is installed

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
coppolino97
Posts: 117
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Dpkg PHP not installed, but it is installed

#1 Post by coppolino97 »

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
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

User avatar
sickpig
Posts: 589
Joined: 2019-01-23 10:34

Re: Dpkg PHP not installed, but it is installed

#2 Post by sickpig »

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.

coppolino97
Posts: 117
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Dpkg PHP not installed, but it is installed

#3 Post by coppolino97 »

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.
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Dpkg PHP not installed, but it is installed

#4 Post by Head_on_a_Stick »

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?).
deadbang

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

Re: Dpkg PHP not installed, but it is installed

#5 Post by stevepusser »

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

coppolino97
Posts: 117
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Dpkg PHP not installed, but it is installed

#6 Post by coppolino97 »

Thanks for your help and explanations! :D
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

Post Reply