"충족되지 않은 종속성"으로 인해 libssl1.0.0:i386을 설치할 수 없습니까?

"충족되지 않은 종속성"으로 인해 libssl1.0.0:i386을 설치할 수 없습니까?

나는 다음의 조언을 읽고 따랐습니다.이 질문소용이 없습니다. 14.04 상자(amd64)에 설치하려고 하는데 libssl1.0.0:i386APT를 통해 설치하려고 하면 다음 오류 메시지가 나타납니다.

nathan@nathan-desktop:~$ sudo apt-get install libssl1.0.0:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 default-jre-headless : Depends: openjdk-7-jre-headless (>= 7~u3-2.1.1) but it is not going to be installed
 openjdk-7-jre : Depends: openjdk-7-jre-headless (= 7u55-2.4.7-1ubuntu1) but it is not going to be installed
                 Recommends: libgnome2-0 but it is not going to be installed
                 Recommends: libgnomevfs2-0 but it is not going to be installed
 openssh-client : Depends: libssl1.0.0 (>= 1.0.1) but it is not going to be installed
 openssh-server : Depends: libssl1.0.0 (>= 1.0.1) but it is not going to be installed
                  Depends: openssh-sftp-server but it is not going to be installed
                  Recommends: ssh-import-id but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

최신 업데이트가 모두 설치되어 있습니다. 나는 달렸다 apt-get -f install. 소프트웨어 소스에서 모든 리포지토리가 활성화되어 있는지 확인했습니다.

이 문제의 원인은 무엇입니까?


업데이트:

내용은 다음과 같습니다 apt-cache policy libssl1.0.0.

libssl1.0.0:
  Installed: 1.0.1g-1ppa1~trusty1
  Candidate: 1.0.1g-1ppa1~trusty1
  Version table:
 *** 1.0.1g-1ppa1~trusty1 0
        100 /var/lib/dpkg/status
     1.0.1f-1ubuntu2.1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1.0.1f-1ubuntu2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

...그리고 apt-cache policy libssl1.0.0:i386:

libssl1.0.0:i386:
  Installed: (none)
  Candidate: 1.0.1f-1ubuntu2.1
  Version table:
     1.0.1f-1ubuntu2.1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
     1.0.1f-1ubuntu2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages

답변1

저는 Ubuntu 20.04를 사용하고 있습니다. 아래 단계가 저에게 효과적입니다.

다음을 사용하여 18.04의 기본 저장소를 추가하십시오.

echo "deb http://security.ubuntu.com/ubuntu bionic-security main" | sudo tee -a /etc/apt/sources.list.d/bionic.list

저장소 캐시를 업데이트하고 이제 libssl1.0-dev를 사용할 수 있는지 확인하세요.

sudo apt update
apt-cache policy libssl1.0-dev

libssl1.0-dev를 설치합니다.

sudo apt-get install libssl1.0-dev 

답변2

이러한 종류의 오류 메시지는 일반적으로 설치된 다른 패키지와 충돌하는 패키지가 설치되고 있으며 다른 종속 패키지를 강제로 제거했음을 나타냅니다. 동시에 둘 이상의 아키텍처에 대해 동일한 패키지를 설치하는 경우(참조:멀티아치), 이 amd64경우 i386설치하려는 패키지의 버전이 일치해야 합니다.정확히.

이 경우에 일어날 가능성이 있는 일은(댓글에서 논의한 내용을 통해 확인됨) libssl1.0.0Ubuntu 리포지토리에서 사용 가능한 모든 버전보다 최신 PPA 버전으로 업그레이드되었다는 것입니다. 나중에 PPA가 비활성화되거나 구성 해제된 경우 최신 패키지는 일반적으로 설치된 상태로 유지됩니다. 읽다이 질문PPA 비활성화와 제거의 차이점에 대해 알아보세요. 그러나 적절한 구성에서 PPA를 이미 제거한 경우 이전에 PPA에서 업그레이드된 패키지를 수동으로 다운그레이드해야 합니다.

을(를 ) 설치하려면 저장소에서 libssl1.0.0:i386동일한 버전이 설치되어 있어야 합니다 . libssl1.0.0:amd64그리고 openssl소스 패키지는 여러 관련 바이너리 패키지를 빌드하므로 해당 패키지도 모두 동일한 버전인지 확인해야 합니다. 다운그레이드하려는 모든 패키지를 지정하지 않으면 apt는 다운그레이드보다는 제거를 선호합니다. 이 경우 PPA에서 libssl1.0.0, libssl-dev및 설치가 있는 경우 다음을 수행해야 합니다.openssl

sudo apt-get install libssl1.0.0/trusty libssl-dev/trusty openssl/trusty

apt-get패키지 다운그레이드에 대한 의 프롬프트 에 yes라고 답하십시오 . 이제 libssl1.0.0:i386저장소에서 패키지를 설치할 수 있습니다 .

답변3

이는 웹 소켓 라이브러리가 설치되지 않았기 때문입니다. 달리기를 해보세요

sudo apt-get install libwebsockets-dev

달리기 전에

sudo apt-get install mosquitto

답변4

나는 데비안 9 스트레치에 공식 mongodb-org를 설치하려고 여기에 왔습니다. 그러나 나는 당신과 비슷한 오류에 직면했습니다.

user@debian:~/folder$ sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mongodb-org : Depends: mongodb-org-shell but it is not going to be installed
               Depends: mongodb-org-server but it is not going to be installed
               Depends: mongodb-org-mongos but it is not going to be installed
               Depends: mongodb-org-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

패키지를 하나씩 설치하려고합니다.

user@debian:~/folder$ sudo apt-get install -y mongodb-org-tools 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mongodb-org-tools : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

그리고 다음 기사에서 해결책을 찾았습니다. https://linuxconfig.org/how-to-install-spotify-on-debian-9-stretch-linux

다음을 수행하여 이전 SSL 패키지만 설치합니다.

$ wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb
$ sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb

이렇게 하면 mongodb-org가 잘 설치되었습니다. 도움이 되길 바랍니다.

관련 정보