Find packages based on files they contain inside-debian/ubuntu

error: linux/config.h: No such file or directory

Problems with source code compilation are very common. Usually it is because missing files or packages as in example above.

To Search for package which contains config.h files is very easy:

first install apt-file

apt-get install apt-file

then update apt-file

apt-file update

All you need to do is now instruct apt-file command to search for linux/config.h file :

apt-file search linux/config.h

Leave a Reply

You must be logged in to post a comment.