JPCAP 라이브러리를 설치할 수 없습니다.

JPCAP 라이브러리를 설치할 수 없습니다.

내 우분투 컴퓨터에 JPCAP을 설치할 수 없습니다.

이는 sun-java6-jdk 및 libpcap0.8에 의존한다는 것을 알려줍니다. 그러나 보시다시피 내 시스템에는 해당 프로그램이 설치되어 있습니다.

kujim@kujim:~/Downloads$ ldconfig -p | grep libpcap
    libpcap.so.0.8 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpcap.so.0.8
    libpcap.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpcap.so

오류는 다음과 같습니다.

kujim@kujim:~/Downloads$ sudo apt-get -f install jpcap
Reading package lists... Done
Building dependency tree       
Reading state information... Done
jpcap:i386 is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 jpcap:i386 : Depends: sun-java6-jdk:i386 but it is not installable
              Depends: libpcap0.8:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

나는 성공하지 않고 다음 명령을 시도했습니다.

kujim@kujim:~/Downloads$ sudo dpkg -i --ignore-depends=sun-java6-jdk jpcap-0.7.deb
(Reading database ... 227615 files and directories currently installed.)
Preparing to unpack jpcap-0.7.deb ...
Unpacking jpcap (0.7) over (0.7) ...
dpkg: dependency problems prevent configuration of jpcap:
 jpcap depends on sun-java6-jdk.
 jpcap depends on libpcap0.8.

dpkg: error processing package jpcap (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 jpcap

어떤 제안이 있으십니까?

답변1

apt-get은 이 패키지의 32비트 버전인 sun-java6-jdk:i386및 누락됨을 알려줍니다 . libpcap0.8:i38664비트 버전을 설치했습니다.

실행해 보세요 apt-get install sun-java6-jdk:i386 libpcap0.8:i386. 출력을 통해 이러한 패키지 설치에 실패한 이유에 대해 자세히 알 수 있습니다.

관련 정보