我无法在我的 ubuntu 机器上安装 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 告诉您缺少sun-java6-jdk:i386
和libpcap0.8:i386
,它们是这些软件包的 32 位版本。您已安装 64 位版本。
尝试跑步apt-get install sun-java6-jdk:i386 libpcap0.8:i386
。输出应该告诉您更多关于为什么这些软件包无法安装的信息。