gpt4 book ai didi

Ubuntu 18.04下php7.1-zip安装

转载 作者:可可西里 更新时间:2023-10-31 23:54:07 25 4
gpt4 key购买 nike

正如标题已经解释的那样,我需要在 Ubuntu 18.04 下从 php 7.1 安装 zip 模块。当我每次使用命令时

sudo apt-get install php7.1-zip

和下面的输出。

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.1-zip : Depends: libzip4 (>= 1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

尝试安装 libzip4 也不起作用。

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libzip4 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 'libzip4' has no installation candidate

有人可以帮忙吗?不幸的是,谷歌也没有提供帮助。

埃利亚斯

最佳答案

使用官方仓库:

sudo add-apt-repository universe
sudo apt update

然后:

sudo apt install php7.1-zip

关于Ubuntu 18.04下php7.1-zip安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51731062/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com