종속성을 해결하는 방법: libwinpr2-2?

종속성을 해결하는 방법: libwinpr2-2?

gedit와 같은 패키지를 설치하려면 다음을 수행하십시오.

sudo apt-get clean
sudo apt-get autoclean
apt install gedit

출력은 다음과 같습니다

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gedit : Depends: libgspell-1-1 (>= 1.0.0) but it is not going to be installed
         Depends: libgtksourceview-3.0-1 (>= 3.21.5) but it is not going to be installed
         Depends: libpeas-1.0-0 (>= 1.14.1) but it is not going to be installed
         Depends: gir1.2-gtk-3.0 but it is not going to be installed
         Depends: gir1.2-gtksource-3.0 but it is not going to be installed
         Depends: gedit-common (>= 3.22) but it is not going to be installed

우리가 사용할 때:

**apt --fix-broken install**

다음을 살펴보자:

dpkg: error processing archive /var/cache/apt/archives/libwinpr2-2_2.0.0~git20170725.1.1648deb+dfsg1-7~bpo9+1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libwinpr2.so.2.0.0', which is also in package libwinpr2:amd64 2.0.0~git201803141334-0+remmina201803141402.rf8baeb7.d29dd283~ubuntu18.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libwinpr2-2_2.0.0~git20170725.1.1648deb+dfsg1-7~bpo9+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

또는 다음 명령을 사용할 때:

aptitude install

다음 오류 메시지가 표시됩니다.

dpkg: dependency problems prevent configuration of libfreerdp2-2:amd64:
 libfreerdp2-2:amd64 depends on libwinpr2-2 (>= 2.0.0~git20161130.1.e60d0d5+dfsg1); however:
  Package libwinpr2-2:amd64 is not installed.

dpkg: error processing package libfreerdp2-2:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libfreerdp-client2-2:amd64:
 libfreerdp-client2-2:amd64 depends on libfreerdp2-2 (>= 2.0.0~git20161130.1.e60d0d5+dfsg1); however:
  Package libfreerdp2-2:amd64 is not configured yet.
 libfreerdp-client2-2:amd64 depends on libwinpr2-2 (>= 2.0.0~git20170725.1.1648deb+dfsg1); however:
  Package libwinpr2-2:amd64 is not installed.

dpkg: error processing package libfreerdp-client2-2:amd64 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.24-11+deb9u1) ...
dpkg: dependency problems prevent configuration of remmina-plugin-rdp:amd64:
 remmina-plugin-rdp:amd64 depends on libfreerdp-client2-2 (>= 2.0.0~git20160317.1.75ae3f5+dfsg1); however:
  Package libfreerdp-client2-2:amd64 is not configured yet.
 remmina-plugin-rdp:amd64 depends on libfreerdp2-2 (>= 2.0.0~git20160317.1.75ae3f5+dfsg1); however:
  Package libfreerdp2-2:amd64 is not configured yet.
 remmina-plugin-rdp:amd64 depends on libwinpr2-2 (>= 2.0.0~git20160317.1.75ae3f5+dfsg1); however:
  Package libwinpr2-2:amd64 is not installed.

dpkg: error processing package remmina-plugin-rdp:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 **libfreerdp2-2:amd64
 libfreerdp-client2-2:amd64
 remmina-plugin-rdp:amd64**

예를 들어:

sudo apt-get install remmina-plugin-rdp

출력은 다음과 같습니다

The following packages have unmet dependencies:
 libfreerdp-client2-2 : Depends: libwinpr2-2 (>= 2.0.0~git20170725.1.1648deb+dfsg1) but it is not going to be installed
 libfreerdp2-2 : Depends: libwinpr2-2 (>= 2.0.0~git20161130.1.e60d0d5+dfsg1) but it is not going to be installed
 remmina-plugin-rdp : Depends: libwinpr2-2 (>= 2.0.0~git20160317.1.75ae3f5+dfsg1) but it is not going to be installed
E: Unmet dependencies. Try '**apt --fix-broken install**' with no packages (or specify a solution).

그리고

apt-cache policy

출력은 다음과 같습니다

    Package files:
 100 /var/lib/dpkg/status
     release a=now
 100 http://ftp.debian.org/debian stretch-backports/main amd64 Packages
     release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=main,b=amd64
     origin ftp.debian.org
 500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
     release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
 500 http://deb.debian.org/debian stretch-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stretch/main amd64 Packages
     release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
     origin deb.debian.org
Pinned packages:

그리고

apt purge libwinpr2

출력은 다음과 같습니다

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libfreerdp-client2-2 : Depends: libwinpr2-2 (>= 2.0.0~git20170725.1.1648deb+dfsg1) but it is not going to be installed
 libfreerdp2-2 : Depends: libwinpr2-2 (>= 2.0.0~git20161130.1.e60d0d5+dfsg1) but it is not going to be installed
 remmina-plugin-rdp : Depends: libwinpr2-2 (>= 2.0.0~git20160317.1.75ae3f5+dfsg1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

이 문제를 어떻게 해결할 수 있나요?

답변1

문제는 libwinpr2Debian 9에서 사용할 수 있는 항목(저장소가 올바르게 추적하도록 설정된 항목)과 일치하지 않는 으로 인해 발생합니다.

이 문제를 해결하려면 패키지와 이에 종속된 모든 항목을 제거해야 합니다.

apt purge libwinpr2

이번 일로 큰 피해가 발생하지 않길 바라며,하지만, 너무 많은 패키지를 제거할 것이라는 메시지가 표시되면 그렇게 하지 말라고 요청하고 apt제거하는 동안 aptitudeinstall remmina-plugin-rdp(또는 의존하는 다른 항목) 을 사용하십시오.libwinpr2-2libwinpr2

aptitude install remmina-plugin-rdp libwinpr2_

(끝 부분에 aptitude정리 패키지를 나타내는 밑줄이 표시되어 있습니다.)

답변2

다음 방법을 사용하여 이 문제를 해결했습니다.

#Check
dpkg --configure -a
sudo apt-get remove package*
apt --fix-broken install
#Check again
dpkg --configure -a

관련 정보