如何安装libpcap?

问题描述 投票:0回答:2

如何安装 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/
pcap
2个回答
0
投票

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


-1
投票

使用以下命令并重试

rm /var/lib/apt/lists/lock
rm /var/cache/apt/archives/lock
rm /var/lib/dpkg/lock
© www.soinside.com 2019 - 2024. All rights reserved.