【问题标题】:Broken php and libssl1.1 installation on Ubuntu 16.04在 Ubuntu 16.04 上安装损坏的 php 和 libssl1.1
【发布时间】:2021-09-09 20:47:42
【问题描述】:

我一直在使用 Ubuntu 16.04。最近我对我的 PHP 安装做了一些实验,恐怕我把事情搞砸了。我试过了

sudo apt install php7.0

但它显示了依赖项和损坏的包错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.0 : Depends: libapache2-mod-php7.0 but it is not going to be installed or
                   php7.0-fpm but it is not going to be installed or
                   php7.0-cgi but it is not going to be installed
          Depends: php7.0-common but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

接着,我跑了

sudo apt install php7.0-common

反应是

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.0-common : Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

似乎缺少依赖项libssl1.1,所以我尝试使用手动安装它

sudo apt install libssl1.1

这是回复

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libssl1.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl1.1' has no installation candidate

我有点卡在这一点上。我是否永远破坏了我的操作系统?

【问题讨论】:

    标签: php ubuntu php-7 libssl


    【解决方案1】:

    我已经通过手动安装libssl 解决了这个问题。

    wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
    sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-09-15
      • 1970-01-01
      • 1970-01-01
      • 2017-02-10
      • 2017-04-12
      • 2018-01-06
      • 1970-01-01
      相关资源
      最近更新 更多