gpt4 book ai didi

php - Ubuntu 14.04 : Unable to locate package php7. 0-zip

转载 作者:行者123 更新时间:2023-12-03 15:44:14 27 4
gpt4 key购买 nike

我无法安装包 php7.0-zip。我做后得到的错误

sudo apt-get install php7.0-zip

是:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.0-zip
E: Couldn't find any package by regex 'php7.0-zip'



这适用于 Ubuntu 14.04.5 LTS。我的 PHP 版本是 7.0.17。

我试着做:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

并且仍然得到相同的“无法定位”错误。

在安装 zip 包后,我希望在 Laravel 5.4 中解决我的“ fatal error :找不到类 'ZipArchive'”。

最佳答案

如果你这样做 sudo apt-cache search php7.0-*你应该得到所有包的列表。

zip 模块应该在底部

bash output

如果它不存在,您可能希望尝试
sudo add-apt-repository ppa:ondrej/php && sudo apt-get update而不仅仅是 add-apt-repository ppa:ondrej/php看看这是否有所作为。

关于php - Ubuntu 14.04 : Unable to locate package php7. 0-zip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57060038/

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