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

aptdependenciespackage-managementPHPphp7

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

Best Answer

To install libzip4, you have to add the Ubuntu repositories to your apt source list. This can be done by

sudo apt-add-repository main
sudo apt-add-repository restricted
sudo apt-add-repository universe
sudo apt-add-repository multiverse

Here you find some examples.