在Ubuntu 18.04下安装php7.1-zip [英] php7.1-zip installation under Ubuntu 18.04

查看:666
本文介绍了在Ubuntu 18.04下安装php7.1-zip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

as the title already explains I need to install the zip module from php 7.1 under Ubuntu 18.04. When every I use the command

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也不起作用.

Trying to Install libzip4 does not work either.

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

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

Can somebody please try to help. Google does not help with unfortunately either.

Elias

推荐答案

一个临时解决方案是从受信任的源下载程序包文件,例如: https://packages.ubuntu.com/xenial/libzip4

A temporary solution is to just download the package file from trusted source like: https://packages.ubuntu.com/xenial/libzip4

然后,使用

dpkg -i libzip4_1.0.1-0ubuntu1_amd64.deb

php7.1-zip将正常安装.

这篇关于在Ubuntu 18.04下安装php7.1-zip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆