Linux Mint 19 Tara에서 ownCloud 클라이언트를 실행할 수 없습니다(Qt 문제).

Linux Mint 19 Tara에서 ownCloud 클라이언트를 실행할 수 없습니다(Qt 문제).

Linux Mint 19 Tara에서 ownCloud 클라이언트를 실행하는 데 문제가 있습니다. 시작되지 않았습니다. 명령줄에서 실행하면 다음 오류가 발생합니다.

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)

대부분의 ocqt 라이브러리를 찾을 수 있지만 시스템 libQt5Core 라이브러리를 참조합니다. /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Core.so.5파일이 존재하고 심볼릭 링크가 가리키는 경우 어떻게 이것이 가능합니까 libQt5Core.so.5.10.1?

접두사를 시도했지만 LD_LIBRARY_PATH=/opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu결과는 동일합니다.

ldd를 사용해 보십시오:

pavel@lenovo ~ $ LD_LIBRARY_PATH=/opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu ldd `which owncloud`
/usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /usr/bin/owncloud)
/usr/bin/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)
/usr/bin/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)
/usr/bin/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)
/usr/bin/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)
/usr/bin/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)
/usr/bin/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)
/usr/bin/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)
/usr/bin/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)
/usr/bin/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)
/usr/bin/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)
/usr/bin/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)
/usr/bin/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)
    linux-vdso.so.1 (0x00007fff23f74000)
    libQt5DBus.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007f2e54e20000)
    libQt5WebKitWidgets.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5 (0x00007f2e54dd9000)
    libQt5Xml.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f2e54d9c000)
    libowncloudsync.so.0 => /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloudsync.so.0 (0x00007f2e544da000)
    libowncloud_csync.so.0 => /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloud_csync.so.0 (0x00007f2e5427b000)
    libqt5keychain.so.1 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libqt5keychain.so.1 (0x00007f2e54053000)
    libQt5Widgets.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f2e53a00000)
    libQt5WebKit.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5WebKit.so.5 (0x00007f2e51a23000)
    libQt5Network.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f2e51893000)
    libQt5Gui.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f2e51394000)
    libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f2e50c49000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2e508c0000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e50522000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2e5030a000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e4ff19000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2e4fcfa000)
    libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f2e4faad000)
    libQt5PrintSupport.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007f2e54ce2000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2e4f890000)
    libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f2e4f587000)
    libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f2e4f271000)
    libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f2e4f009000)
    libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f2e4edd7000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f2e4ea9f000)
    libxslt.so.1 => /usr/lib/x86_64-linux-gnu/libxslt.so.1 (0x00007f2e4e862000)
    libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f2e4e4a1000)
    libicui18n.so.60 => /usr/lib/x86_64-linux-gnu/libicui18n.so.60 (0x00007f2e4e000000)
    libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60 (0x00007f2e4dc49000)
    libQt5Sql.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Sql.so.5 (0x00007f2e4dbfe000)
    libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f2e4d996000)
    libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f2e4d553000)
    libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f2e4d2b5000)
    libdouble-conversion.so.1 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1 (0x00007f2e4d0a4000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2e4cea0000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f2e54c86000)
    libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f2e4cc1c000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2e4c9aa000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f2e4c782000)
    liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f2e4c55c000)
    libicudata.so.60 => /usr/lib/x86_64-linux-gnu/libicudata.so.60 (0x00007f2e4a9b3000)
    libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f2e4a6ff000)
    libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f2e4a4d2000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2e4a2ca000)
    liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f2e4a0ae000)
    libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f2e49d93000)
    libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f2e49b8f000)
    libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f2e49989000)
    libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f2e49774000)
    libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f2e4955f000)

그렇다면 ld가 찾은 다른 모든 Qt 라이브러리가 ownCloud 버전인 경우 ld가 시스템 라이브러리를 찾는 이유는 무엇입니까? LD_LIBRARY_PATH 지정이 작동하지 않는 이유는 무엇입니까?

다시 설치해 보세요ocqt5101-libqt5core5a패키지이지만 그것도 작동하지 않습니다. 어떤 단서가 있나요?

편집 1:

완전히 삭제하려고 합니다libqt5core5a차이점을 확인하려면 시스템 패키지를 설치하고 모든 KDE 항목도 제거해야 합니다. 다른 오류가 발생합니다.

pavel@lenovo ~ $ LD_LIBRARY_PATH=/opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu owncloud
owncloud: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

언급한 대로 파일이 /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Core.so.5거기에 있으며 올바른 라이브러리에 대한 심볼릭 링크입니다. 하지만 다른 모든 라이브러리는 시스템 라이브러리 디렉토리( )에 있을 것으로 예상하는 것 같습니다 /usr/lib/x86_64-linux-gnu. 다른 라이브러리에서는 동일한 디렉토리에 있는 파일을 무시하기 때문에 라이브러리 경로가 어떻게든 다른 라이브러리에 하드코딩될 수 있습니다.

이것은 ownCloud Qt 패키지가 손상되었음을 의미합니까?

편집 2:

Linux Mint 19 Tara와 완전히 동일한 공식 ownCloud 저장소를 사용하여 완전히 업데이트된 또 다른 시스템을 확인했습니다. 이것은 i386 시스템이므로 이 오류는 표시되지 않습니다.

편집 3:

이 문제는 ownCloud 포럼에서 언급되었습니다. 사용자를 통해 문제의 범위를 좁혔습니다. ld 캐시와는 아무 관련이 없습니다(참조:여기).

ownCloud의 libQt5Core.so.5.10.1 라이브러리 자체에 문제가 있는 것 같습니다. 근데 뭐?

Testpilot 클라우드 클라이언트 설치를 시도했지만 오류가 지속됩니다(라이브러리는 기본적으로 동일한 것 같습니다).

편집 4:

openSUSE 서버에서 전용 Linux Mint 19 ownCloud 저장소를 찾아 거기에서 설치했습니다(참조:여기) 그러나 라이브러리 문제는 여전히 존재합니다.

답변1

이해가가는 것 같네요. 노력하다다운그레이드ownCloud 클라이언트버전 2.4.3그리고 그것이미 작업 중입니다.

누구든지 이러한 상황에 직면할 경우 편의를 위한 스크립트는 다음과 같습니다.

#!/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

내 이전 커널(3.13.0-98)이 ownCloud 클라이언트의 최신 2.5.* 버전에서 제대로 작동하지 않는 것 같습니다.

관련 정보