Failed to update to latest Build
-
Hi,
Once again I’m back and I want to update to the latest Kopano versions.
At the moment I’m running the following versions when I look into the webapp:WebApp:
3.5.3.2161+1200.1
Kopano Core:
8.7.80
Z-Push:
2.4.3+0-0I want to update my installation on Ubuntu 18.04 with the following commands:
sudo su
apt update
apt upgradeLibssl -> Yes -> automatic reboot
reboot
sudo su
sudo apt-get install gnupg2 -ywget -O - https://raw.githubusercontent.com/thctlo/Kopano/master/get-kopano-community.sh | bash
apt install kopano-server-packagesAs normal i get in trouble ;=). The script from @thctlo starts and runs until:
E: Fehlschlag beim Holen von file:/home/kopano/apt/amd64/Packages Datei nicht gefunden - /home/kopano/apt/amd64/Packages (2: No such file or directory) E: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.
Full copy of command line:
kopano@XXXX-kopa-01:~$ sudo wget -O - https://raw.githubusercontent.com/thctlo/Kopano/master/get-kopano-community.sh | bash [sudo] password for kopano: --2019-09-18 18:31:47-- https://raw.githubusercontent.com/thctlo/Kopano/master/get-kopano-community.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.240.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.240.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 11084 (11K) [text/plain] Saving to: ‘STDOUT’ - 100%[===============================================================================>] 10,82K --.-KB/s in 0,004s 2019-09-18 18:31:47 (2,38 MB/s) - written to stdout [11084/11084] Getting Kopano for bionic: Ubuntu_18.04 amd64 Getting and extracting core to apt. ( -amd64 ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 48.1M 100 48.1M 0 0 29.7M 0 0:00:01 0:00:01 --:--:-- 29.7M Getting and extracting archiver to apt. ( -amd64 ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 36128 100 36128 0 0 220k 0 --:--:-- --:--:-- --:--:-- 219k Getting and extracting deskapp to apt. ( -amd64 ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 73.1M 100 73.1M 0 0 42.0M 0 0:00:01 0:00:01 --:--:-- 42.0M Getting and extracting files to apt. ( -all ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2070k 100 2070k 0 0 6236k 0 --:--:-- --:--:-- --:--:-- 6236k Getting and extracting mattermost to apt. ( -amd64 ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 64.2M 100 64.2M 0 0 40.7M 0 0:00:01 0:00:01 --:--:-- 40.7M Getting and extracting mdm to apt. ( -all ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 46378 100 46378 0 0 258k 0 --:--:-- --:--:-- --:--:-- 258k Getting and extracting meet to apt. ( -amd64 ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 27.9M 100 27.9M 0 0 34.6M 0 --:--:-- --:--:-- --:--:-- 34.5M Getting and extracting smime to apt. ( -amd64 ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 131k 100 131k 0 0 634k 0 --:--:-- --:--:-- --:--:-- 634k Getting and extracting webapp to apt. ( -all ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 12.8M 100 12.8M 0 0 20.2M 0 --:--:-- --:--:-- --:--:-- 20.2M Getting and extracting webmeetings to apt. ( -amd64 ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3936k 100 3936k 0 0 10.7M 0 --:--:-- --:--:-- --:--:-- 10.7M mv: './kopano-archiver_8.7.82.92.2b8011eaf-0+344.3_amd64.deb' and 'amd64/kopano-archiver_8.7.82.92.2b8011eaf-0+344.3_amd64.deb' are the same file Please wait, generating amd64/Packages File The installed Kopano CORE apt-list file: /etc/apt/sources.list.d/kopano-community.list Checking for Z_PUSH Repo on Ubuntu. The Kopano Z_PUSH repo was already setup. The z-push info : https://documentation.kopano.io/kopanocore_administrator_manual/configure_kc_components.html#configure-z-push-activesync-for-mobile-devices Before you configure/install also read : https://wiki.z-hub.io/display/ZP/Installation Sorry, Your os and/or version not supported in this script. Please wait, running apt-get update Holen:1 file:/home/kopano files/ InRelease Ign:1 file:/home/kopano files/ InRelease Holen:2 file:/home/kopano/apt amd64/ InRelease Ign:2 file:/home/kopano/apt amd64/ InRelease Holen:3 file:/home/kopano files/ Release Ign:3 file:/home/kopano files/ Release Holen:4 file:/home/kopano/apt amd64/ Release Ign:4 file:/home/kopano/apt amd64/ Release Holen:5 file:/home/kopano files/ Packages Ign:5 file:/home/kopano files/ Packages Holen:6 file:/home/kopano files/ Translation-en Ign:6 file:/home/kopano files/ Translation-en Holen:7 file:/home/kopano files/ Translation-de_DE Ign:7 file:/home/kopano files/ Translation-de_DE Holen:8 file:/home/kopano files/ Translation-de Ign:8 file:/home/kopano files/ Translation-de Holen:9 file:/home/kopano/apt amd64/ Packages Ign:9 file:/home/kopano/apt amd64/ Packages Holen:10 file:/home/kopano/apt amd64/ Translation-de_DE Ign:10 file:/home/kopano/apt amd64/ Translation-de_DE Holen:11 file:/home/kopano/apt amd64/ Translation-en Ign:11 file:/home/kopano/apt amd64/ Translation-en Holen:12 file:/home/kopano/apt amd64/ Translation-de Ign:12 file:/home/kopano/apt amd64/ Translation-de Holen:5 file:/home/kopano files/ Packages Ign:5 file:/home/kopano files/ Packages Holen:6 file:/home/kopano files/ Translation-en Ign:6 file:/home/kopano files/ Translation-en Holen:7 file:/home/kopano files/ Translation-de_DE Ign:7 file:/home/kopano files/ Translation-de_DE Holen:8 file:/home/kopano files/ Translation-de Ign:8 file:/home/kopano files/ Translation-de Holen:9 file:/home/kopano/apt amd64/ Packages Ign:9 file:/home/kopano/apt amd64/ Packages Holen:10 file:/home/kopano/apt amd64/ Translation-de_DE Ign:10 file:/home/kopano/apt amd64/ Translation-de_DE Holen:11 file:/home/kopano/apt amd64/ Translation-en Ign:11 file:/home/kopano/apt amd64/ Translation-en Holen:12 file:/home/kopano/apt amd64/ Translation-de Ign:12 file:/home/kopano/apt amd64/ Translation-de Holen:5 file:/home/kopano files/ Packages Ign:5 file:/home/kopano files/ Packages Holen:6 file:/home/kopano files/ Translation-en Ign:6 file:/home/kopano files/ Translation-en Holen:7 file:/home/kopano files/ Translation-de_DE Ign:7 file:/home/kopano files/ Translation-de_DE Holen:8 file:/home/kopano files/ Translation-de Ign:8 file:/home/kopano files/ Translation-de Holen:9 file:/home/kopano/apt amd64/ Packages Ign:9 file:/home/kopano/apt amd64/ Packages Holen:10 file:/home/kopano/apt amd64/ Translation-de_DE Ign:10 file:/home/kopano/apt amd64/ Translation-de_DE Holen:11 file:/home/kopano/apt amd64/ Translation-en Ign:11 file:/home/kopano/apt amd64/ Translation-en Holen:12 file:/home/kopano/apt amd64/ Translation-de Ign:12 file:/home/kopano/apt amd64/ Translation-de Holen:5 file:/home/kopano files/ Packages Ign:5 file:/home/kopano files/ Packages Holen:6 file:/home/kopano files/ Translation-en Ign:6 file:/home/kopano files/ Translation-en Holen:7 file:/home/kopano files/ Translation-de_DE Ign:7 file:/home/kopano files/ Translation-de_DE Holen:8 file:/home/kopano files/ Translation-de Ign:8 file:/home/kopano files/ Translation-de Holen:9 file:/home/kopano/apt amd64/ Packages Ign:9 file:/home/kopano/apt amd64/ Packages Holen:10 file:/home/kopano/apt amd64/ Translation-de_DE Ign:10 file:/home/kopano/apt amd64/ Translation-de_DE Holen:11 file:/home/kopano/apt amd64/ Translation-en Ign:11 file:/home/kopano/apt amd64/ Translation-en Holen:12 file:/home/kopano/apt amd64/ Translation-de Ign:12 file:/home/kopano/apt amd64/ Translation-de Holen:5 file:/home/kopano files/ Packages Ign:5 file:/home/kopano files/ Packages Holen:6 file:/home/kopano files/ Translation-en Ign:6 file:/home/kopano files/ Translation-en Holen:7 file:/home/kopano files/ Translation-de_DE Ign:7 file:/home/kopano files/ Translation-de_DE Holen:8 file:/home/kopano files/ Translation-de Ign:8 file:/home/kopano files/ Translation-de Holen:9 file:/home/kopano/apt amd64/ Packages Ign:9 file:/home/kopano/apt amd64/ Packages Holen:10 file:/home/kopano/apt amd64/ Translation-de_DE Ign:10 file:/home/kopano/apt amd64/ Translation-de_DE Holen:11 file:/home/kopano/apt amd64/ Translation-en Ign:11 file:/home/kopano/apt amd64/ Translation-en Holen:12 file:/home/kopano/apt amd64/ Translation-de Ign:12 file:/home/kopano/apt amd64/ Translation-de Holen:5 file:/home/kopano files/ Packages Ign:5 file:/home/kopano files/ Packages Holen:6 file:/home/kopano files/ Translation-en Ign:6 file:/home/kopano files/ Translation-en Holen:7 file:/home/kopano files/ Translation-de_DE Ign:7 file:/home/kopano files/ Translation-de_DE Holen:8 file:/home/kopano files/ Translation-de Ign:8 file:/home/kopano files/ Translation-de Holen:9 file:/home/kopano/apt amd64/ Packages Ign:9 file:/home/kopano/apt amd64/ Packages Holen:10 file:/home/kopano/apt amd64/ Translation-de_DE Ign:10 file:/home/kopano/apt amd64/ Translation-de_DE Holen:11 file:/home/kopano/apt amd64/ Translation-en Ign:11 file:/home/kopano/apt amd64/ Translation-en Holen:12 file:/home/kopano/apt amd64/ Translation-de Ign:12 file:/home/kopano/apt amd64/ Translation-de Holen:5 file:/home/kopano files/ Packages [2.371 B] Holen:6 file:/home/kopano files/ Translation-en Ign:6 file:/home/kopano files/ Translation-en Holen:7 file:/home/kopano files/ Translation-de_DE Ign:7 file:/home/kopano files/ Translation-de_DE Holen:8 file:/home/kopano files/ Translation-de Ign:8 file:/home/kopano files/ Translation-de Holen:9 file:/home/kopano/apt amd64/ Packages Fehl:9 file:/home/kopano/apt amd64/ Packages Datei nicht gefunden - /home/kopano/apt/amd64/Packages (2: No such file or directory) Holen:10 file:/home/kopano/apt amd64/ Translation-de_DE Ign:10 file:/home/kopano/apt amd64/ Translation-de_DE OK:13 http://archive.ubuntu.com/ubuntu bionic InRelease OK:14 http://archive.ubuntu.com/ubuntu bionic-updates InRelease OK:15 http://archive.ubuntu.com/ubuntu bionic-backports InRelease Holen:16 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB] Es wurden 88,7 kB in 1 s geholt (120 kB/s). Paketlisten werden gelesen... E: Fehlschlag beim Holen von file:/home/kopano/apt/amd64/Packages Datei nicht gefunden - /home/kopano/apt/amd64/Packages (2: No such file or directory) E: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.
Any help and ideas on whats going wrong? I can test I have my test-vm ready for playing around ^^.
Thanks,
-
Give some time, i’ll fix the script.
-
I’ll upload the modified version…
Only you can use it, but ther are some packaging problems as far i can tell.
Due to packaging errors.
The following packages have unmet dependencies:
python3-kopano-search : Depends: python3-kopano (= 8.7.83.77.e366f8c97-0+30.1) but 8.7.82.153.351e03dda-0+345.1 is to be installed -
and if you do upgrade.
You might see this :
Setting up php-smbclient (1.0.0-1+5.1) ... php-smbclient: using mods-available directory cp: cannot stat '/usr/share/php5/libsmbclient/smbclient.ini': No such file or directory dpkg: error processing package php-smbclient (--configure): installed php-smbclient package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of kopano-webapp-plugin-filesbackend-smb: kopano-webapp-plugin-filesbackend-smb depends on php-smbclient (>= 0.8.0~); however: Package php-smbclient is not configured yet. dpkg: error processing package kopano-webapp-plugin-filesbackend-smb (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: php-smbclient kopano-webapp-plugin-filesbackend-smb needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1)
FIX:
apt-get remove php-smbclient -y
because of the kopano installed php-smbclient is using php5, where in buster its php 7.3.The following packages will be REMOVED: kopano-webapp-plugin-filesbackend-smb php-smbclient
This is correct.
Now install php-smbclient again but the buster package.
apt-get install -t buster php-smbclient
from the above error, this should be ok.
( kopano-webapp-plugin-filesbackend-smb depends on php-smbclient (>= 0.8.0~); )apt-get install kopano-webapp-plugin-filesbackend-smb
And it should be running again but not everything is upgrade.
Im ending up with :
Calculating upgrade... Done The following packages have been kept back: kopano-client kopano-contacts kopano-gateway kopano-ical kopano-monitor kopano-search kopano-server kopano-spooler kopano-utils libkcpyplug0 php7-mapi python3-kopano-search python3-mapi The following packages will be upgraded: php-smbclient 1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded. kopano-server: Installed: 8.7.82.153.351e03dda-0+345.1 Candidate: 8.7.83.94.5d57d3872-0+39.1 Version table: 8.7.83.94.5d57d3872-0+39.1 500 500 file:/home/kopano/apt amd64/ Packages *** 8.7.82.153.351e03dda-0+345.1 100 100 /var/lib/dpkg/status 8.7.0-3 500 500 http://ftp.nl.debian.org/debian buster/main amd64 Packages
So be carefull…
I see your using Ubuntu, where im on Debian Buster, so you might not have the above problems.
but at least you will know now. -
Hi @thctlo
Thank you for updating the script. I tried it on my machine (just a test-vm).
kopano@XXXXX-kopa-01:~$ sudo wget -O - https://raw.githubusercontent.com/thctlo/Kopano/master/get-kopano-community.sh | bash --2019-09-25 23:02:39-- https://raw.githubusercontent.com/thctlo/Kopano/master/get-kopano-community.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... XXX.101.XXX.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|XXX.101.XXX.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 11170 (11K) [text/plain] Saving to: ‘STDOUT’ - 100%[===============================================================================>] 10,91K --.-KB/s in 0,001s 2019-09-25 23:02:39 (16,2 MB/s) - written to stdout [11170/11170] Moving previous version to : backups/bionic-amd64-2019-09-25 Getting Kopano for bionic: Ubuntu_18.04 amd64 Getting and extracting : core ( -amd64 ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 48.4M 100 48.4M 0 0 33.7M 0 0:00:01 0:00:01 --:--:-- 33.7M Getting and extracting : archiver ( -amd64 ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 36128 100 36128 0 0 211k 0 --:--:-- --:--:-- --:--:-- 211k Getting and extracting : deskapp ( -amd64 ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 73.1M 100 73.1M 0 0 33.6M 0 0:00:02 0:00:02 --:--:-- 33.6M Getting and extracting : files ( -amd64 ) curl: (3) <url> malformed gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now
Now I get an error at the download and extracting process…
-
Hai, sorry for the late reaction.
i have to look whats going on with the ubuntu packages.If you set in the script these and try again.
KOPANO_COMMUNITY_PKG=“core archiver webapp” -
And i suggest, dont upgrade your kopano, if its running leave it, then you lucky its running.
-
Hi @thctlo
I’m sorry I was moving into a new place and a lot of stuff to do. Now I’m back but no luck and it looks like nothing has changed.
I have a test enviroment so easy if it’s not working. Can you take again a look into this?
Holen:9 file:/home/kopano/apt amd64/ Packages Fehl:9 file:/home/kopano/apt amd64/ Packages Datei nicht gefunden - /home/kopano/apt/amd64/Packages (2: No such file or directory) Holen:10 file:/home/kopano/apt amd64/ Translation-de_DE Ign:10 file:/home/kopano/apt amd64/ Translation-de_DE OK:13 http://archive.ubuntu.com/ubuntu bionic InRelease OK:14 http://archive.ubuntu.com/ubuntu bionic-updates InRelease OK:15 http://archive.ubuntu.com/ubuntu bionic-backports InRelease OK:16 http://security.ubuntu.com/ubuntu bionic-security InRelease Paketlisten werden gelesen... E: Fehlschlag beim Holen von file:/home/kopano/apt/amd64/Packages Datei nicht gefunden - /home/kopano/apt/amd64/Packages (2: No such file or directory) E: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.