分手后在debian 9上重新安装php

时间:2019-04-29 23:01:52

标签: php ubuntu debian install

我在debian拉伸系统上安装了php7.3,并且可以正常工作。在尝试安装php7.3-gd之后,我的php不再起作用。当我运行php时,我得到/usr/bin/php file not found。当我尝试重新安装php时出现此错误     以下软件包具有未满足的依赖性:

php7.3 : Depends: libapache2-mod-php7.3 but it is not going to be installed or
                  php7.3-fpm but it is not going to be installed or
                  php7.3-cgi but it is not going to be installed

php7.3-cli : Depends: php7.3-opcache but it is not going to be installed
             Depends: libc6 (>= 2.29) but 2.24-11+deb9u4 is to be installed
php7.3-curl : Depends: libcurl4 (>= 7.44.0) but it is not installable

E: Unable to correct problems, you have held broken packages

3 个答案:

答案 0 :(得分:2)

尝试此命令:

if sum([count_total_cre]) <= 75 then (sum([count_total_cre])*15) else 0 end 

答案 1 :(得分:1)

1- sudo apt-get update –fix-missing
2- sudo dpkg –configure -a
3- sudo apt-get install -f

其中一个命令应该可以修复损坏的安装

答案 2 :(得分:0)

这对我有用。

sudo apt-get install aptitude

sudo aptitude install php7.3