duancai1904 2018-03-14 17:45
浏览 378

坚持安装php7.0-zip扩展

Im trying to install the extension php7.0-zip (using Ubuntu 16.04), im getting the following message:

The following packages have unmet dependencies:
php7.0-zip : Depends: libzip2 (>= 0.11.2) but 0.10.1-1.2 is to be installed

this is my php version:

PHP 7.0.28-1~dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.28-1~dotdeb+8.1, Copyright (c) 1999-2017, by Zend Technologies

i tried to run sudo apt-get update, purgue and reinstall libzip2 but the newer version is 0.10.1-1.2 libzip2 is already the newest version (0.10.1-1.2).

I don't have a clue of what to do, plz help

  • 写回答

1条回答 默认 最新

  • dsedug8644 2018-03-14 17:47
    关注

    libzip4:i386 is a 32-bit package. and conflicts with 64-bit version. are you using a 32-bit computer?

    if you are using 64-bit then do: sudo apt-get purge libzip4

    then:

    sudo apt-get install php-zip
    

    if you are using 32-bit then:

    sudo apt-get install php-zip:i386
    
    评论

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?