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
    
    评论

报告相同问题?

悬赏问题

  • ¥15 写论文,需要数据支撑
  • ¥15 identifier of an instance of 类 was altered from xx to xx错误
  • ¥100 反编译微信小游戏求指导
  • ¥15 docker模式webrtc-streamer 无法播放公网rtsp
  • ¥15 学不会递归,理解不了汉诺塔参数变化
  • ¥15 基于图神经网络的COVID-19药物筛选研究
  • ¥30 软件自定义无线电该怎样使用
  • ¥15 R语言mediation包做中介分析,直接效应和间接效应都很小,为什么?
  • ¥15 Jenkins+k8s部署slave节点offline
  • ¥15 如何实现从tello无人机上获取实时传输的视频流,然后将获取的视频通过yolov5进行检测