Can’t run the ownCloud client on Linux Mint 19 Tara (Qt issues)

qt

#1

Installed the owncloud-client 2.5.1.10973+oc-10450 amd64 package from the official OpenSuse repository into my Linux Mint 19 Tara x68_64. When trying to start the client, I get errors that tell me that the owncloud binary and the ocqt libraries are looking for the system libQt5Core.so.5 and expect it to be version 5.10, which it apparently isn’t. They should look for the ocqt library but they refuse to do so even if I specify LD_LIBRARY_PATH to point to the ocqt libraries directory. On my other systems, this bug doesn’t manifest.

See this question:


#2

you have to download the Packages for ubuntu 18.04 not for ubuntu 18.10 ,because linux mint 19 Tara has to do with ubuntu 18.04
please make the following steps :

wget -nv https://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_18.04/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update

sudo sh -c “echo ‘deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04/ /’ > /etc/apt/sources.list.d/isv:ownCloud:desktop.list”
sudo apt-get update
sudo apt-get install owncloud-client

have fun with the new Owncloud-client :wink:


#3

Good point, thank you, @lazawan.
You are right that the Ubuntu 18.10 repository must be involved somehow because I really enabled it recently by mistake.

Then I did apt remove owncloud-client ocqt* and apt clean and then exactly what you recommend but the problem persists.

What confuses me is this (let’s choose a line):
Stahuje se:1 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5core5a 5.10.1-1+5.1 [2 084 kB]
(“Stahuje se” stands for “Downloading”.)
Are you sure that it’s the right version for Ubuntu 18.04? Shouldn’t it be 5.9.5, which is the system default Qt’s version? If the owncloud binary searches for the system libQt5Core.so.5, I would expect it to have to be so.


#4

Hey,

from what i know the ownCloud repositories are shipping own (and newer) QT versions intentionally due to e.g. various Bugs in older QT versions and similar.


#5

Hi @tom42, yes I know, thank you for the clarification. But my question is why the ownCloud libQt5Core.so.5.10.1 library gets ignored and all the ownCloud Qt libraries find the system library instead?
Even tried to modify the symlink libQt5Core.so.5 in the system library directory to point to the ownCloud library and then issued sudo ldconfig but that didn’t work: I got a no such file or directory error. The same if I copied the file there. So apparently the file has to be corrupt somehow in the package already. Or not?


#6

Hey,

sorry but my answer was just for the question about the right version.

Answering the initial question about why only the system library is used probably needs someone with deep knowledge of Linux. I hope there is some one having such knowledge active in this forums able to give an answer.


#7

On my system, debian based, owncloud-client comes with an own qt5 library, which is installed at /opt/ownCloud/qt-5.10.1/lib. My systems default version is even older.


#8

Hello @alfredb, so then it seems to me that something’s wrong with the ownCloud Qt5Core 5.10.1 library itself (it doesn’t get found by the system even if I rebuild the ld cache).


#9

I think this is out of ld caching.

ldd $(which owncloud) | grep -i libqt5core
libQt5Core.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f33aed80000)

My system doesn’t find it either:

ldconfig -v 2>/dev/null | grep -i qt5core
libQt5Core.so.5 -> libQt5Core.so.5.3.2


#10

OK, @alfredb, thank you for narrowing down the problem. That leads me to the question what else might be wrong with that single library.


#11

Tried to install the Testpilot cloud client but the error persists (I suppose the library is basically the same).


#12

Discovered a dedicated Linux Mint 19 repository on the openSUSE server (there isn’t a really working link but if you tinker a bit with the direct download link you can get to it and make a shell script with following contents:

#!/bin/bash

wget http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Linux_Mint_19/Release.key -O Release.key
sudo apt-key add - < Release.key
rm Release.key

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Linux_Mint_19/ /' > /etc/apt/sources.list.d/isv:ownCloud:desktop.list"

sudo apt-get update
sudo apt-get install owncloud-client

You can name it, e. g., add-owncloud-repository, make it executable (chmod u+x add-owncloud-repository), and save it somewhere on your $PATH (e. g. $HOME/bin). Then run it (add-owncloud-repository) and you should have your ownCloud specially tailored for Linux Mint 19.

OK, but this whole thing didn’t work for me because the problem with the libQt5Core library still persists.


#13

Sorry for asking this: Did you verify that you don’t have an old and wrong owncloud binary around on your system? And that /usr/bin/owncloud is a link to /opt/ownCloud/ownCloud/bin/owncloud?


#14

You don’t have do be sorry about your question. It’s a useful one.

pavel@lenovo ~ $ which owncloud
/usr/bin/owncloud
pavel@lenovo ~ $ file /usr/bin/owncloud
/usr/bin/owncloud: symbolic link to /opt/ownCloud/ownCloud/bin/owncloud
pavel@lenovo ~ $ file /opt/ownCloud/ownCloud/bin/owncloud
/opt/ownCloud/ownCloud/bin/owncloud: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=47d51d4707e75689f0eb44aa5cb6e0681fa59718, stripped

#15

@alfredb you are right , @Cigydd you should verify that you don’t have an old owncloud binary on your system

i just did the steps ,that i posted and it works without any problem .
see please what i did in my terminal :

uname -a
Linux mint 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
mint@mint:~$ su -
Password:
root@mint:~# wget -nv https://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_18.04/Release.key -O Release.key
2018-12-10 09:01:43 URL:https://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04/Release.key [1097/1097] -> “Release.key” [1]
root@mint:~# sudo apt-key add - < Release.key
OK
root@mint:~# sudo apt-get update
Ign:1 cdrom://Linux Mint 19 Tara - Release amd64 20180717 bionic InRelease
Err:2 cdrom://Linux Mint 19 Tara - Release amd64 20180717 bionic Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Get:3 http://archive.canonical.com/ubuntu bionic InRelease [10.2 kB]
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease
Ign:5 http://packages.linuxmint.com tara InRelease
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:8 http://packages.linuxmint.com tara Release [24.1 kB]
Get:9 http://archive.canonical.com/ubuntu bionic/partner i386 Packages [2300 B]
Get:10 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:11 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages [2308 B]
Get:12 http://packages.linuxmint.com tara Release.gpg [819 B]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [218 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [398 kB]
Get:15 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [168 kB]
Get:16 http://packages.linuxmint.com tara/main amd64 Packages [13.5 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [84.0 kB]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [104 kB]
Get:20 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [106 kB]
Get:21 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [60.3 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [454 kB]
Get:23 http://packages.linuxmint.com tara/main i386 Packages [12.9 kB]
Get:24 http://packages.linuxmint.com tara/upstream amd64 Packages [32.2 kB]
Get:25 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [14.5 kB]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [1440 B]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [1608 B]
Get:28 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [996 B]
Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [170 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [234 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [6928 B]
Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [6992 B]
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3076 B]
Get:34 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [592 kB]
Get:35 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [586 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [165 kB]
Get:37 http://packages.linuxmint.com tara/upstream i386 Packages [32.2 kB]
Get:38 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [199 kB]
Get:39 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [6524 B]
Get:40 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [6372 B]
Get:41 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [3356 B]
Get:42 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2464 B]
Get:43 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [3476 B]
Get:44 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [3468 B]
Get:45 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1604 B]
Get:46 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5812 B]
Get:47 http://packages.linuxmint.com tara/import amd64 Packages [3655 B]
Get:48 http://packages.linuxmint.com tara/backport amd64 Packages [29.5 kB]
Get:49 http://packages.linuxmint.com tara/backport i386 Packages [29.5 kB]
Reading package lists… Done
E: The repository ‘cdrom://Linux Mint 19 Tara - Release amd64 20180717 bionic Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@mint:~# o sh -c “echo ‘deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04/ /’ > /etc/apt/sources.list.d/isv:ownCloud:desktop.list”
o: command not found
root@mint:~# sudo sh -c “echo ‘deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04/ /’ > /etc/apt/sources.list.d/isv:ownCloud:desktop.list”
root@mint:~# sudo apt-get update
Ign:1 cdrom://Linux Mint 19 Tara - Release amd64 20180717 bionic InRelease
Err:2 cdrom://Linux Mint 19 Tara - Release amd64 20180717 bionic Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://archive.canonical.com/ubuntu bionic InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Ign:7 http://packages.linuxmint.com tara InRelease
Ign:8 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 InRelease
Hit:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:10 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 Release [1034 B]
Hit:11 http://packages.linuxmint.com tara Release
Get:12 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 Release.gpg [481 B]
Get:14 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 Packages [19.9 kB]
Reading package lists… Done
E: The repository ‘cdrom://Linux Mint 19 Tara - Release amd64 20180717 bionic Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@mint:~# sudo apt-get install owncloud-client
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libgnome-keyring-common libgnome-keyring0 libowncloudsync0
ocqt5101-libqt5core5a ocqt5101-libqt5dbus5 ocqt5101-libqt5gui5
ocqt5101-libqt5keychain1 ocqt5101-libqt5network5
ocqt5101-libqt5printsupport5 ocqt5101-libqt5sql5 ocqt5101-libqt5sql5-sqlite
ocqt5101-libqt5webkit5 ocqt5101-libqt5widgets5 ocqt5101-libqt5xml5
ocqt5101-qtsvg5 owncloud-client-l10n
Suggested packages:
ocqt5101-libqt5libqgtk2 owncloud-client-dolphin owncloud-client-nautilus
owncloud-client-nemo owncloud-client-caja
The following NEW packages will be installed:
libgnome-keyring-common libgnome-keyring0 libowncloudsync0
ocqt5101-libqt5core5a ocqt5101-libqt5dbus5 ocqt5101-libqt5gui5
ocqt5101-libqt5keychain1 ocqt5101-libqt5network5
ocqt5101-libqt5printsupport5 ocqt5101-libqt5sql5 ocqt5101-libqt5sql5-sqlite
ocqt5101-libqt5webkit5 ocqt5101-libqt5widgets5 ocqt5101-libqt5xml5
ocqt5101-qtsvg5 owncloud-client owncloud-client-l10n
0 upgraded, 17 newly installed, 0 to remove and 498 not upgraded.
Need to get 18.0 MB of archives.
After this operation, 67.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5core5a 5.10.1-1+5.1 [2084 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libgnome-keyring-common all 3.12.0-1build1 [5792 B]
Get:3 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libgnome-keyring0 amd64 3.12.0-1build1 [56.1 kB]
Get:4 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5dbus5 5.10.1-1+5.1 [221 kB]
Get:5 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5network5 5.10.1-1+5.1 [522 kB]
Get:6 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5gui5 5.10.1-1+5.1 [2340 kB]
Get:7 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5widgets5 5.10.1-1+5.1 [2178 kB]
Get:8 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5printsupport5 5.10.1-1+5.1 [203 kB]
Get:9 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5sql5 5.10.1-1+5.1 [141 kB]
Get:10 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5webkit5 5.10.1-1 [7987 kB]
Get:11 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-qtsvg5 5.10.1-2 [123 kB]
Get:12 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5keychain1 0.9.1-1+2.1 [47.6 kB]
Get:13 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 libowncloudsync0 2.5.1.10973+oc-10450 [463 kB]
Get:14 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5sql5-sqlite 5.10.1-1+5.1 [72.8 kB]
Get:15 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 ocqt5101-libqt5xml5 5.10.1-1+5.1 [125 kB]
Get:16 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 owncloud-client-l10n 2.5.1.10973+oc-10450 [366 kB]
Get:17 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04 owncloud-client 2.5.1.10973+oc-10450 [1032 kB]
Fetched 18.0 MB in 4s (4342 kB/s)
Selecting previously unselected package libgnome-keyring-common.
(Reading database … 237086 files and directories currently installed.)
Preparing to unpack …/00-libgnome-keyring-common_3.12.0-1build1_all.deb …
Unpacking libgnome-keyring-common (3.12.0-1build1) …
Selecting previously unselected package libgnome-keyring0:amd64.
Preparing to unpack …/01-libgnome-keyring0_3.12.0-1build1_amd64.deb …
Unpacking libgnome-keyring0:amd64 (3.12.0-1build1) …
Selecting previously unselected package ocqt5101-libqt5core5a:amd64.
Preparing to unpack …/02-ocqt5101-libqt5core5a_5.10.1-1+5.1_amd64.deb …
Unpacking ocqt5101-libqt5core5a:amd64 (5.10.1-1+5.1) …
Selecting previously unselected package ocqt5101-libqt5dbus5:amd64.
Preparing to unpack …/03-ocqt5101-libqt5dbus5_5.10.1-1+5.1_amd64.deb …
Unpacking ocqt5101-libqt5dbus5:amd64 (5.10.1-1+5.1) …
Selecting previously unselected package ocqt5101-libqt5network5:amd64.
Preparing to unpack …/04-ocqt5101-libqt5network5_5.10.1-1+5.1_amd64.deb …
Unpacking ocqt5101-libqt5network5:amd64 (5.10.1-1+5.1) …
Selecting previously unselected package ocqt5101-libqt5gui5:amd64.
Preparing to unpack …/05-ocqt5101-libqt5gui5_5.10.1-1+5.1_amd64.deb …
Unpacking ocqt5101-libqt5gui5:amd64 (5.10.1-1+5.1) …
Selecting previously unselected package ocqt5101-libqt5widgets5:amd64.
Preparing to unpack …/06-ocqt5101-libqt5widgets5_5.10.1-1+5.1_amd64.deb …
Unpacking ocqt5101-libqt5widgets5:amd64 (5.10.1-1+5.1) …
Selecting previously unselected package ocqt5101-libqt5printsupport5:amd64.
Preparing to unpack …/07-ocqt5101-libqt5printsupport5_5.10.1-1+5.1_amd64.deb …
Unpacking ocqt5101-libqt5printsupport5:amd64 (5.10.1-1+5.1) …
Selecting previously unselected package ocqt5101-libqt5sql5:amd64.
Preparing to unpack …/08-ocqt5101-libqt5sql5_5.10.1-1+5.1_amd64.deb …
Unpacking ocqt5101-libqt5sql5:amd64 (5.10.1-1+5.1) …
Selecting previously unselected package ocqt5101-libqt5webkit5:amd64.
Preparing to unpack …/09-ocqt5101-libqt5webkit5_5.10.1-1_amd64.deb …
Unpacking ocqt5101-libqt5webkit5:amd64 (5.10.1-1) …
Selecting previously unselected package ocqt5101-qtsvg5:amd64.
Preparing to unpack …/10-ocqt5101-qtsvg5_5.10.1-2_amd64.deb …
Unpacking ocqt5101-qtsvg5:amd64 (5.10.1-2) …
Selecting previously unselected package ocqt5101-libqt5keychain1.
Preparing to unpack …/11-ocqt5101-libqt5keychain1_0.9.1-1+2.1_amd64.deb …
Unpacking ocqt5101-libqt5keychain1 (0.9.1-1+2.1) …
Selecting previously unselected package libowncloudsync0:amd64.
Preparing to unpack …/12-libowncloudsync0_2.5.1.10973+oc-10450_amd64.deb …
Unpacking libowncloudsync0:amd64 (2.5.1.10973+oc-10450) …
Selecting previously unselected package ocqt5101-libqt5sql5-sqlite:amd64.
Preparing to unpack …/13-ocqt5101-libqt5sql5-sqlite_5.10.1-1+5.1_amd64.deb …
Unpacking ocqt5101-libqt5sql5-sqlite:amd64 (5.10.1-1+5.1) …
Selecting previously unselected package ocqt5101-libqt5xml5:amd64.
Preparing to unpack …/14-ocqt5101-libqt5xml5_5.10.1-1+5.1_amd64.deb …
Unpacking ocqt5101-libqt5xml5:amd64 (5.10.1-1+5.1) …
Selecting previously unselected package owncloud-client-l10n.
Preparing to unpack …/15-owncloud-client-l10n_2.5.1.10973+oc-10450_all.deb …
Unpacking owncloud-client-l10n (2.5.1.10973+oc-10450) …
Selecting previously unselected package owncloud-client:amd64.
Preparing to unpack …/16-owncloud-client_2.5.1.10973+oc-10450_amd64.deb …
Unpacking owncloud-client:amd64 (2.5.1.10973+oc-10450) …
Setting up libgnome-keyring-common (3.12.0-1build1) …
Processing triggers for mime-support (3.60ubuntu1) …
Setting up ocqt5101-libqt5core5a:amd64 (5.10.1-1+5.1) …
Processing triggers for desktop-file-utils (0.23+linuxmint3) …
Setting up ocqt5101-libqt5dbus5:amd64 (5.10.1-1+5.1) …
Setting up ocqt5101-libqt5keychain1 (0.9.1-1+2.1) …
Setting up libgnome-keyring0:amd64 (3.12.0-1build1) …
Processing triggers for libc-bin (2.27-3ubuntu1) …
Processing triggers for shared-mime-info (1.9-2) …
Processing triggers for gnome-menus (3.13.3-11ubuntu1) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Setting up ocqt5101-libqt5sql5:amd64 (5.10.1-1+5.1) …
Setting up ocqt5101-libqt5network5:amd64 (5.10.1-1+5.1) …
Setting up ocqt5101-libqt5xml5:amd64 (5.10.1-1+5.1) …
Setting up ocqt5101-libqt5sql5-sqlite:amd64 (5.10.1-1+5.1) …
Setting up ocqt5101-libqt5gui5:amd64 (5.10.1-1+5.1) …
Setting up ocqt5101-libqt5widgets5:amd64 (5.10.1-1+5.1) …
Setting up ocqt5101-libqt5printsupport5:amd64 (5.10.1-1+5.1) …
Setting up ocqt5101-qtsvg5:amd64 (5.10.1-2) …
Setting up libowncloudsync0:amd64 (2.5.1.10973+oc-10450) …
/var/lib/dpkg/info/libowncloudsync0:amd64.postinst: Installing new config file /etc/ownCloud/sync-exclude.lst
Setting up ocqt5101-libqt5webkit5:amd64 (5.10.1-1) …
Setting up owncloud-client-l10n (2.5.1.10973+oc-10450) …
Setting up owncloud-client:amd64 (2.5.1.10973+oc-10450) …
Processing triggers for libc-bin (2.27-3ubuntu1) …
root@mint:~# owncloud
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
^C


#16

Thank you, @lazawan, for your input, but I think I already verified here in my previous post that the binary is in the correct place. Doing which owncloud shows /usr/bin/owncloud, which is a symbolic link to /opt/ownCloud/ownCloud/bin/owncloud. The which program should always show which binary gets executed when I call its name as a command.

To verify that the file was actually installed by the last apt operation, I went to /var/cache/apt/archives and inspected the ownCloud deb package with mc. Compared the size and date of the contained owncloud binary with the installed one and both agree.

owncloud binaries on my system:

pavel@lenovo ~ $ sudo find / -type f -name owncloud
/opt/ownCloud/ownCloud/bin/owncloud
/timeshift/snapshots/2018-12-09_20-00-01/localhost/opt/ownCloud/ownCloud/bin/owncloud
find: ‘/run/user/1026/gvfs’: Operace zamítnuta

(“Operace zamítnuta” stands for something as “Operation denied”)

I doubt that the binary in the timeshift backup directory would be involved somehow. It isn’t even on the $PATH.

OK, but what about the library in question, libQt5Core.so.5? This is pretty far more interesting:

pavel@lenovo ~ $ sudo find / -type f -name libQt5Core.so*
/opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Core.so.5.10.1
/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-30.4.22/libQt5Core.so.5
/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-53.4.67/libQt5Core.so.5
/timeshift/snapshots/2018-12-09_20-00-01/localhost/opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Core.so.5.10.1
/timeshift/snapshots/2018-12-09_20-00-01/localhost/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-30.4.22/libQt5Core.so.5
/timeshift/snapshots/2018-12-09_20-00-01/localhost/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-53.4.67/libQt5Core.so.5
/timeshift/snapshots/2018-12-09_20-00-01/localhost/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.5
/home/pavel/Android/Sdk/tools/lib64/qt/lib/libQt5Core.so.5.5.0
/home/pavel/Android/Sdk/tools/lib64/qt/lib/libQt5Core.so.5
/home/pavel/Android/Sdk/tools/lib64/qt/lib/libQt5Core.so.5.5
/home/pavel/Android/Sdk/tools/lib64/qt/lib/libQt5Core.so
/home/pavel/Android/Sdk/tools/lib/qt/lib/libQt5Core.so.5.5.0
/home/pavel/Android/Sdk/tools/lib/qt/lib/libQt5Core.so.5
/home/pavel/Android/Sdk/tools/lib/qt/lib/libQt5Core.so.5.5
/home/pavel/Android/Sdk/tools/lib/qt/lib/libQt5Core.so
/home/pavel/010editor/lib/libQt5Core.so.5
/home/pavel/SailfishOS/lib/Qt/lib/libQt5Core.so.5.5.0
/home/pavel/SailfishOS/mersdk/targets/SailfishOS-armv7hl/usr/lib/libQt5Core.so
/home/pavel/SailfishOS/mersdk/targets/SailfishOS-i486/usr/lib/libQt5Core.so
/home/pavel/.dropbox-dist/dropbox-lnx.x86_64-62.4.103/libQt5Core.so.5
find: ‘/run/user/1026/gvfs’: Operace zamítnuta
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.5

So there are many versions of that library scattered throughout my system that came bundled with various software. I’ll try to get rid of them and keep only the system one and the ownCloud one and post the results.


#17

Tried to remove every trace of the libQt5core library from the system. Actually uninstalled all software that bundles an own version of Qt with it. Even removed the files in the timeshift backups. Still no luck :cry:

pavel@lenovo ~ $ sudo find / -type f -name libQt5Core.so*
/opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Core.so.5.10.1
find: ‘/run/user/1026/gvfs’: Permission denied
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.5
pavel@lenovo ~ $ owncloud
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by owncloud)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5DBus.so.5)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Xml.so.5)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloudsync.so.0)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloud_csync.so.0)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libqt5keychain.so.1)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Widgets.so.5)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5WebKit.so.5)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Network.so.5)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Gui.so.5)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5)
owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Sql.so.5)

I suspect that something could be wrong with the file system. Discovered that the man command is also broken. The notebook is pretty old (in today’s means: it’s about four to five years old). I had previously replaced the original hard drive with an SSD, and now, the notebook hasn’t been used for about a month. Will check the hard drive with fsck, reinstall ownCloud and report back. Maybe I should reinstall the whole system but that’s kind of a last resort for me.


#18

@Cigydd did you use/try “apt-get autoremove or apt-get autoremove owncloud-client” ?

but i recommend , you make a fresh-install for your system and try it again from scratch


#19

@lazawan, I feel I catched a trace. Searched for the man command error and found the bug on Launchpad. See here.

There people say they’ve got older kernels and confirm that switching to a recent kernel (4.15) solved the issue for them.

Others say that turning off apparmor on the old kernel for the man binary solved it for them also.

On another site that I don’t remember, there was also an issue with apparmor and owncloud.

And this is exactly my case: I’ve got a very ancient kernel on that notebook because it just refuses to run any newer:

pavel@lenovo ~ $ uname -a
Linux lenovo 3.13.0-98-generic #145-Ubuntu SMP Sat Oct 8 20:13:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

So I’ll try to disable apparmor for owncloud and report back.


#20

Nope, it didn’t work:

pavel@lenovo ~ $ sudo aa-disable /usr/bin/owncloud
Profile for /opt/ownCloud/ownCloud/bin/owncloud not found, skipping
pavel@lenovo ~ $ sudo aa-disable /opt/ownCloud/ownCloud/bin/owncloud
Profile for /opt/ownCloud/ownCloud/bin/owncloud not found, skipping
pavel@lenovo ~ $ sudo aa-disable owncloud
Profile for /opt/ownCloud/ownCloud/bin/owncloud not found, skipping

But for the man command, it worked. So maybe that’s another issue. Reinstalling the system isn’t an option for me because I keep the kernel from an old Linux Mint version I upgraded many times from. As I mentioned already, the notebook refuses to boot any newer kernel. I could manage to get the old kernel somehow again but that’s a major task… It isn’t in the repositories any more. Still not certain if the kernel is the cause. Before the one month hiatus, an older version of ownCloud worked well. Maybe I’m going to get an older version of ownCloud and install it manually (if it’s possible).

Edit:

OK guys, I think I got it. Tried to downgrade the ownCloud client to version 2.4.3 and it worked.

Should someone run into this situation here is a script for their convenience:

#!/bin/bash

apt remove owncloud-client
apt autoremove

sudo rm -f /etc/apt/sources.list.d/*own[cC]loud*.list

wget -nv https://download.opensuse.org/repositories/isv:ownCloud:desktop:client-2.4.3/Ubuntu_18.04/Release.key -O Release.key
sudo apt-key add - < Release.key
rm Release.key

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop:/client-2.4.3/Ubuntu_18.04/ /' > /etc/apt/sources.list.d/isv:ownCloud:desktop:client-2.4.3.list"

sudo apt-get update
sudo apt-get install owncloud-client

Do you guys think I should file a bug? Because I suspect this has something to do with the latest ownCloud client and my ancient kernel not playing together well—and that’s a rare case.

Anyway, thank you guys, @lazawan, @alfredb, and @tom42, for being my patient guides and helping me think during the process of solving this issue.