Friday, March 18, 2016

apt - Attempting to install php-zip - getting libzip4 dependancy (>=1.0) error even though I have 1.0.1 installed



I am attempting to install the php zip plugin



I run:



sudo apt-get install php-zip (also php7.0-zip) 



I get dependency missing return for libzip4 (>=1.0), yet when I attempt to install or update libzip4 via apt-get - it shows I have 1.0.1 installed (I think it may have package name or an alias of libzip4:i386 -> not sure if that is related to this problem or not but the naming convention looks odd to me in comparison to the other php plugins I have installed).



Terminal commands with output:



sudo apt-get install php-zip


Reading package lists... Done

Building dependency tree
Reading state information... Done
Note, selecting 'php7.0-zip' instead of 'php-zip'
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.0-zip : Depends: libzip4 (>= 1.0) but it is not installable




E: Unable to correct problems, you have held broken packages.



&&:



sudo apt-get install libzip4


Reading package lists... Done
Building dependency tree
Reading state information... Done

libzip4:i386 is already the newest version (1.0.1-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.



SYSTEM:



Lenovo G500s running Ubuntu Xenial 16.04 desktop vanilla install
php/apache2 standard build (stock Ubuntu LAMP stack)
php version: 7.0.15-0ubuntu0.16.04.4



Any help greatly appreciated!!




EDIT:
I have also tried to install (I believe it's the same plugin) with PECL :



sudo pecl install zip


downloading zip-1.14.0.tgz ...
Starting to download zip-1.14.0.tgz (248,476 bytes)
..............................done: 248,476 bytes

8 source files, building
running: phpize
sh: 1: phpize: not found
ERROR: `phpize' failed



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


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...