简体   繁体   English

Ubuntu 14.04:无法找到包 php7.0-zip

[英]Ubuntu 14.04: Unable to locate package php7.0-zip

I am not being able to install package php7.0-zip.我无法安装软件包 php7.0-zip。 The error I get after doing我做后得到的错误

sudo apt-get install php7.0-zip

Is:是:

Reading package lists... Done阅读包裹清单...完成
Building dependency tree构建依赖树
Reading state information... Done读取状态信息...完成
E: Unable to locate package php7.0-zip E: 找不到包 php7.0-zip
E: Couldn't find any package by regex 'php7.0-zip' E: 无法通过正则表达式“php7.0-zip”找到任何包

This is for an Ubuntu 14.04.5 LTS.这是针对 Ubuntu 14.04.5 LTS 的。 My PHP version is 7.0.17.我的 PHP 版本是 7.0.17。

I tried doing:我试着做:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

And still getting the same "unable to locate" error.并且仍然收到相同的“无法定位”错误。

I expect to solve my "Fatal error: Class 'ZipArchive' not found in" in Laravel 5.4, after installing zip package.在安装 zip 包后,我希望在 Laravel 5.4 中解决我的“致命错误:找不到类‘ZipArchive’”。

if you do sudo apt-cache search php7.0-* you should get a list of all packages.如果你执行sudo apt-cache search php7.0-*你应该得到所有包的列表。

The zip module should be at the bottom zip 模块应该在底部

bash 输出

If it isn't there you might wish to try如果它不存在,您可能希望尝试

sudo add-apt-repository ppa:ondrej/php && sudo apt-get update instead of just add-apt-repository ppa:ondrej/php and see if that makes a difference. sudo add-apt-repository ppa:ondrej/php && sudo apt-get update而不是add-apt-repository ppa:ondrej/php看看是否有区别。

最后我找不到该软件包,因为我使用的是 Ubuntu 14.04,并且由于是不受支持的 Ubuntu 版本,因此存储库中没有更多的 php 软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM