종속성이 이미 설치되어 있음에도 불구하고 "충족되지 않은 종속성" 오류로 인해 "apt-get purge"가 실패합니다.

종속성이 이미 설치되어 있음에도 불구하고 "충족되지 않은 종속성" 오류로 인해 "apt-get purge"가 실패합니다.

저는 Debian Stretch를 사용하고 있습니다. apt-get purge를 실행하려고 하면 충족되지 않은 종속성 오류로 인해 실패합니다.

$ sudo apt-get purge -f openssl
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:
 vim-gtk : Depends: libruby2.3 (>= 2.3.0~preview2) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

마지막 줄은 libruby2.3을 설치할 수 없지만 libruby2.3과 vim-gtk가 모두 이미 설치되어 있음을 나타내는 것 같습니다.

$ sudo apt-cache policy vim-gtk
vim-gtk:
  Installed: 2:8.0.0197-4+deb9u3
  Candidate: 2:8.0.0197-4+deb9u3
  Version table:
 *** 2:8.0.0197-4+deb9u3 500
        500 http://debian.mirror.iweb.ca/debian stretch/main amd64 Packages
        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
        500 http://deb.debian.org/debian oldstable/main amd64 Packages
        100 /var/lib/dpkg/status

$ sudo apt-cache policy libruby2.3
libruby2.3:
  Installed: 2.3.3-1+deb9u9
  Candidate: 2.3.3-1+deb9u9
  Version table:
 *** 2.3.3-1+deb9u9 500
        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.3.3-1+deb9u8 500
        500 http://debian.mirror.iweb.ca/debian stretch/main amd64 Packages
        500 http://deb.debian.org/debian oldstable/main amd64 Packages

vim-gtk 및 libruby2.3을 제거하고 다시 설치해 보았는데 이것이 작동하는 것 같습니다.

$ sudo apt-get purge vim-gtk libruby2.3
$ sudo apt-get install vim-gtk libruby2.3

그러나 이후에도 sudo apt-get purge -f openssl. 이 오류의 원인은 무엇입니까? 이미 설치되어 있는데 설치되지 않을 것이라고 말하는 이유는 무엇입니까?

다른 유사한 질문의 제안 사항 중 일부를 시도했지만 오류가 지속됩니다 sudo apt-get install -f.sudo apt-get update/clean/autoremove

답변1

이게 무슨 시작이야~할 것 같다결국 대답은 다음과 같습니다.

openssl을 제거하는 것이 현명한 일인지는 알 수 없습니다. 나는 "현명하지 않다"쪽으로 기울고 있습니다.

이것이 현재 Ubuntu 20.04 LTS에 있는 내용입니다.

$ dpkg --목록 | 헤드 -n 4 && dpkg --list | grep openssl
원하는=알 수 없음/설치/제거/제거/보류
| 상태=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ 오류?=(없음)/재설치 필요(상태, 오류: 대문자=불량)
||/ 이름 버전 아키텍처 설명
ii libevent-openssl-2.1-7:amd64 2.1.11-stable-1 amd64 비동기 이벤트 알림 라이브러리(openssl)
ii openssl 1.1.1f-1ubuntu2.1 amd64 SSL(Secure Sockets Layer) 툴킷 - 암호화 유틸리티
ii perl-openssl-defaults:amd64 4 Perl OpenSSL 패키지에 대한 amd64 버전 호환성 기준

관련 정보