在Ubuntu 18.04下安装php7.1-zip

use*_*024 3 php ubuntu module

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

sudo apt-get install php7.1-zip
Run Code Online (Sandbox Code Playgroud)

和以下输出.

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.
Run Code Online (Sandbox Code Playgroud)

尝试安装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
Run Code Online (Sandbox Code Playgroud)

有人可以试着帮忙.不幸的是谷歌也没有帮助.

埃利亚斯

Ren*_* Sá 19

使用官方存储库:

sudo add-apt-repository universe
sudo apt update
Run Code Online (Sandbox Code Playgroud)

然后:

sudo apt install php7.1-zip
Run Code Online (Sandbox Code Playgroud)