【问题标题】:Reinstall php on on debian 9 after brokeup分手后在debian 9上安装php
【发布时间】:2019-04-29 23:01:51
【问题描述】:

我在我的 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

【问题讨论】:

标签: php ubuntu debian installation


【解决方案1】:

试试这个命令:

apt-get install --fix-missing

【讨论】:

    【解决方案2】:
    1- sudo apt-get update –fix-missing
    2- sudo dpkg –configure -a
    3- sudo apt-get install -f
    

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

    【讨论】:

      【解决方案3】:

      这对我有用。

      sudo apt-get install aptitude
      
      sudo aptitude install php7.3
      

      【讨论】:

        猜你喜欢
        • 2018-06-03
        • 1970-01-01
        • 2023-03-21
        • 1970-01-01
        • 2020-10-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-05-16
        相关资源
        最近更新 更多