我该如何安装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/

最佳答案

现在可以正常工作了。在开始安装libpcap之前,我没有关闭linux softwareupdater

10-04 13:22