Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Linux-header package is not installed.

root@pc-4:~# apt-cache policy linux-headers-3.2.46
N: Couldn't find any package by regex 'linux-headers-3.2.46'

Unable to install packages

root@pc-4:~# apt-get install linux-headers-3.2.46
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.2.46
E: Couldn't find any package by regex 'linux-headers-3.2.46'

root@pc-4:~# uname -r
root@pc-4:~# uname -a

Could you please tell me y this error message is coming? The below command doesn't solve the problem

sudo ln -fs /usr/src/linux-headers-$(uname -r) /lib/modules/$(uname -r)/build

OS: root@pc-4:/home# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.3 LTS
Release: 12.04
Codename: precise

It is running on virtual PC.

Could you please help me in solving this.

share|improve this question

Of course you will not have the package if you didn't have the package in your list cache. Normally the easiest method is using the meta-packages instead:

apt-cache depends linux-headers-generic
  Depends: linux-headers-3.8.0-31-generic
  Conflicts: linux-headers-generic:i386

Or better yet to install both headers and image from the same version use the linux generic package:

apt-cache rdepends linux-headers-generic
Reverse Depends:

apt-cache depends linux-generic
  Depends: linux-image-generic
  Depends: linux-headers-generic

So, do sudo apt-get update && sudo apt-get install linux-generic then reboot the system to get the most updated headers and image for your system.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.