오류 "code-1.33.1-xyz require libpthread.so.0()(64bit)": OpenSuse Tumbleweed에 VS Code를 설치할 수 없습니다.

오류 "code-1.33.1-xyz require libpthread.so.0()(64bit)": OpenSuse Tumbleweed에 VS Code를 설치할 수 없습니다.

OpenSuse Tumbledweed 데스크탑 환경이 있습니다. 운영 체제 세부 사항은 다음과 같습니다 -

rajkumar@localhost:~> cat /etc/os-release     
NAME="openSUSE Tumbleweed" 
# VERSION="20190426" 
ID="opensuse-tumbleweed" 
ID_LIKE="opensuse suse" 
VERSION_ID="20190426" 
PRETTY_NAME="openSUSE Tumbleweed" 
ANSI_COLOR="0;32" 
CPE_NAME="cpe:/o:opensuse:tumbleweed:20190426" 
BUG_REPORT_URL="https://bugs.opensuse.org" 
HOME_URL="https://www.opensuse.org/" 
LOGO="distributor-logo"

설치 명령이 실패했습니다. 명령 세부 사항은 다음과 같습니다 -

   rajkumar@localhost:~> sudo rpm -i Downloads/code-1.33.1-1554971173.el7.x86_64.rpm                                                                       error: Failed dependencies:
    libpthread.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libpthread.so.0(GLIBC_2.3.2)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libpthread.so.0(GLIBC_2.3.3)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libgtk-3.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libgdk-x11-2.0.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libatk-1.0.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libgio-2.0.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libpangocairo-1.0.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libgdk_pixbuf-2.0.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libcairo.so.2()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libpango-1.0.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libfreetype.so.6()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libfontconfig.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libgobject-2.0.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libdbus-1.so.3()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libXi.so.6()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libXcursor.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libXdamage.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libXrandr.so.2()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libXcomposite.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libXext.so.6()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libXfixes.so.3()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libXrender.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libX11.so.6()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libXss.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libXtst.so.6()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libgmodule-2.0.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    librt.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libglib-2.0.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libnss3.so()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libnssutil3.so()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libsmime3.so()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libnspr4.so()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libasound.so.2()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libcups.so.2()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libdl.so.2()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libexpat.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libstdc++.so.6()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libstdc++.so.6(GLIBCXX_3.4)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libstdc++.so.6(GLIBCXX_3.4.10)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libstdc++.so.6(GLIBCXX_3.4.11)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libstdc++.so.6(GLIBCXX_3.4.14)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libstdc++.so.6(GLIBCXX_3.4.15)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libstdc++.so.6(GLIBCXX_3.4.9)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libm.so.6()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libm.so.6(GLIBC_2.2.5)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libgcc_s.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libgcc_s.so.1(GCC_3.0)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libgcc_s.so.1(GCC_4.0.0)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libc.so.6()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libc.so.6(GLIBC_2.11)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libc.so.6(GLIBC_2.2.5)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libc.so.6(GLIBC_2.3)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libc.so.6(GLIBC_2.3.2)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libc.so.6(GLIBC_2.3.4)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libc.so.6(GLIBC_2.4)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libc.so.6(GLIBC_2.6)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libc.so.6(GLIBC_2.7)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libc.so.6(GLIBC_2.9)(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libxcb.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libxkbfile.so.1()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64
    libsecret-1.so.0()(64bit) is needed by code-1.33.1-1554971173.el7.x86_64

이 오류를 어떻게 해결할 수 있나요?

답변1

설치하려고 rpm하지만 종속성이 아직 설치되지 않았습니다.

패키지를 설치하는 동안 종속성을 추출하려면 다음 명령을 사용하십시오.

zypper install Downloads/code-1.33.1-1554971173.el7.x86_64.rpm

다음 지침에 따라 설치할 수도 있습니다.https://code.visualstudio.com/docs/setup/linux

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc

sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/zypp/repos.d/vscode.repo'

sudo zypper refresh

sudo zypper install code

관련 정보