我该如何安装libpcap?

时间:2015-03-22 09:45:11

标签: pcap

如何安装libpcap?当我尝试使用“sudo apt-get install libpcap-dev”时,它不起作用,我收到此消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libvdpau1 screen-resolution-extra
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libpcap0.8-dev
The following NEW packages will be installed:
  libpcap-dev libpcap0.8-dev
0 upgraded, 2 newly installed, 0 to remove and 35 not upgraded.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/

2 个答案:

答案 0 :(得分:1)

现在它有效。在我开始安装libpcap之前,我没有关闭linux softwareddater

答案 1 :(得分:0)

使用以下命令,然后重试

rm /var/lib/apt/lists/lock
rm /var/cache/apt/archives/lock
rm /var/lib/dpkg/lock