PHP7-mapi causing installation failure
-
please see below for errors. I cannot add or remove packages now so any help would be appreciated
root@nextcloud:~/downloads/userstorage/unix/kopano/kopanocore# apt-get install kopano-client Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: kopano-dagent : Depends: php7-mapi (= 8.6.2.1-0+5.1) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). root@nextcloud:~/downloads/userstorage/unix/kopano/kopanocore# apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: kopano-client php7-mapi The following NEW packages will be installed: kopano-client php7-mapi 0 upgraded, 2 newly installed, 0 to remove and 6 not upgraded. 32 not fully installed or removed. Need to get 0 B/496 kB of archives. After this operation, 2,172 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 file:/home/adminuser/downloads/userstorage/unix/demo-Ubuntu_18.04-2018-07-06 ./ kopano-client 8.6.2.1-0+5.1 [324 kB] Get:2 file:/home/adminuser/downloads/userstorage/unix/demo-Ubuntu_18.04-2018-07-06 ./ php7-mapi 8.6.2.1-0+5.1 [172 kB] dpkg: warning: files list file for package 'libgsoap-kopano-2.8.62' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libvmime-kopano1' missing; assuming package has no files currently installed (Reading database ... 151088 files and directories currently installed.) Preparing to unpack .../kopano-client_8.6.2.1-0+5.1_amd64.deb ... Unpacking kopano-client (8.6.2.1-0+5.1) ... dpkg: error processing archive /home/adminuser/downloads/userstorage/unix/demo-Ubuntu_18.04-2018-07-06/./core/core-8.6.2.1_0+5-Ubuntu_18.04-amd64/kopano-client_8.6.2.1-0+5.1_amd64.deb (--unpack): trying to overwrite '/usr/lib/mapi.d/kopano.inf', which is also in package kopano-libs:amd64 8.5.5-0ubuntu1 Preparing to unpack .../php7-mapi_8.6.2.1-0+5.1_amd64.deb ... Unpacking php7-mapi (8.6.2.1-0+5.1) ... dpkg: error processing archive /home/adminuser/downloads/userstorage/unix/demo-Ubuntu_18.04-2018-07-06/./core/core-8.6.2.1_0+5-Ubuntu_18.04-amd64/php7-mapi_8.6.2.1-0+5.1_amd64.deb (--unpack): trying to overwrite '/usr/lib/php/20170718/mapi.so', which is also in package php-mapi 8.5.5-0ubuntu1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /home/adminuser/downloads/userstorage/unix/demo-Ubuntu_18.04-2018-07-06/./core/core-8.6.2.1_0+5-Ubuntu_18.04-amd64/kopano-client_8.6.2.1-0+5.1_amd64.deb /home/adminuser/downloads/userstorage/unix/demo-Ubuntu_18.04-2018-07-06/./core/core-8.6.2.1_0+5-Ubuntu_18.04-amd64/php7-mapi_8.6.2.1-0+5.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) root@nextcloud:~/downloads/userstorage/unix/kopano/kopanocore#
-
Hi @slayt12,
your console output indicates that you are mixing the official Kopano packages with the ones provided through the Ubuntu 18.04 package repositories. These don’t really go with each other so you should stay with one source of packages (ours or the Ubuntu ones).
Also 8.6.2 is already quite old, I would recommend to use the most recent packages for a new installation.
-
Thank you very much for the reply. The Ubuntu repository currently has the 8.6.2 as the installable version. I was able to remove the broken installation by using just the repository.
I was able to get it installed, but had an existing mysql database installed and the default options was to uninstall mysql.root@nextcloud:~# apt-get install kopano-core Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libcgi-fast-perl libcgi-pm-perl libevent-core-2.1-6 libfcgi-perl libhtml-template-perl mysql-server-core-5.7 Use 'apt autoremove' to remove them. The following additional packages will be installed: kopano-backup kopano-common kopano-dagent kopano-gateway kopano-ical kopano-libs kopano-monitor kopano-search kopano-server kopano-spooler kopano-utils mariadb-client-10.1 mariadb-client-core-10.1 php-mapi python-kopano python-mapi Suggested packages: kopano-webapp Recommended packages: mariadb-server | default-mysql-server The following packages will be REMOVED: mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7 The following NEW packages will be installed: kopano-backup kopano-common kopano-core kopano-dagent kopano-gateway kopano-ical kopano-libs kopano-monitor kopano-search kopano-server kopano-spooler kopano-utils mariadb-client-10.1 mariadb-client-core-10.1 php-mapi python-kopano python-mapi 0 upgraded, 17 newly installed, 4 to remove and 6 not upgraded. Need to get 0 B/13.8 MB of archives. After this operation, 30.3 MB disk space will be freed. Do you want to continue? [Y/n] n
I ran it with
root@nextcloud:~# apt-get install kopano-core --no-install-recommends Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libjemalloc1 libterm-readkey-perl mariadb-common Use 'apt autoremove' to remove them. The following additional packages will be installed: kopano-backup kopano-common kopano-dagent kopano-gateway kopano-ical kopano-libs kopano-monitor kopano-search kopano-server kopano-spooler kopano-utils php-mapi python-kopano python-mapi Suggested packages: kopano-webapp Recommended packages: mariadb-server | default-mysql-server The following NEW packages will be installed: kopano-backup kopano-common kopano-core kopano-dagent kopano-gateway kopano-ical kopano-libs kopano-monitor kopano-search kopano-server kopano-spooler kopano-utils php-mapi python-kopano python-mapi 0 upgraded, 15 newly installed, 0 to remove and 6 not upgraded. Need to get 0 B/3,414 kB of archives. After this operation, 14.0 MB of additional disk space will be used. Do you want to continue? [Y/n] y
and was successful!