Ubuntu – error: pcap library not found!

aptlibpcaplibrariessoftware installation

I want to install reaver and the error I am getting is:

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for pcap_open_live in -lpcap... no
error: pcap library not found!

I have tried the following command already:

sudo apt-get install sqlite3 libsqlite3 libsqlite3-dev libcap-dev 

and I got:

Unable to locate package libsqlite3

while all the other packages were installed successfully.

Best Answer

You actually installed libcap-dev when you wanted

 sudo apt-get install libpcap-dev 

Edit: as for libsqlite

 sudo apt-get install libsqlite3-0 

Or you can just do

 sudo apt-get install libsqlite3-dev