6

I am using Ubuntu 12.04 64 bit whenever, i am giving following command in the teminal

dpkg -s kernel

or

dpkg -s kernel-headers

both the output shows kernel or kernel headers are not installed .. How to solve this issue?

I have already tried to install the same

using ,

sudo apt-get install linux-headers-$(uname -r)

but the problem is not solved.

I am new to Ubuntu .. Please help me

4
  • 3
    What is the real problem? What are you trying to do?
    – ignis
    Jun 27, 2013 at 13:32
  • Try sudo apt-get update before running the Kernel header command
    – Mitch
    Jun 27, 2013 at 13:32
  • i want to install Exata virutal interface on it .. For which it is prerequisite to install kernel and kernel header. In the manual it says try the following command: dpkg -s kernel or dpkg -s kernel-headers. if the output is none then install them first
    – Subhajit
    Jun 28, 2013 at 4:14
  • This installs lots of zero byte files that can not be used yet. e.g. /usr/src/linux-headers-5.8.0-55-generic/include/config/modversions.h seems some kind of make command is needed as well
    – teknopaul
    Jun 12, 2021 at 17:51

1 Answer 1

4

kernel headers are provided by linux-headers-$(uname -r)-generic packages. Run:

dpkg -l | grep linux-headers

to see the installed headers.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .