Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I run

sudo dpkg --configure -a

I get

Error! Your kernel headers for kernel 3.2.0-48-generic-pae cannot be found. Please install the linux-headers-3.2.0-48-generic-pae package.

and gets stuck at

update-initramfs: Generating /boot/initrd.img-3.2.0-48-generic-pae

How do I fix this?

share|improve this question

2 Answers 2

Install the package using your favourite package management tool. Use this link for use with software centre: linux-headers-3.2.0-48-generic-pae Install linux-headers-3.2.0-48-generic-pae or use apt-get for example:

sudo apt-get install linux-headers-3.2.0-48-generic-pae

It would be better to include the metapackage as well, so that newer kernel updates also pull in the new headers: linux-headers-generic-pae Install linux-headers-generic-pae

sudo apt-get install linux-headers-generic-pae

Please note that this answer is specific to your PAE kernel. Most users will run a i386 or amd64 kernel probably.

share|improve this answer
    
I cannot install anything on the software centre as it shows applying changes but does not tell me to what. It has shown me this since yesterday. –  Jim Bob Jun 23 '13 at 17:01
    
@JimBob What is the error you're getting there? Please include this in your question. –  gertvdijk Jun 23 '13 at 17:01

Go here (in your case 3.2.0-48) and download your respective headers or the entire new kernel files if you wish (currently 3.9.7 is the most stable). In terminal change the directory to the folder where you would be having these downloaded files(the headers, headers_all, and/or image files for your architecture) and type

dpkg -i linux*.deb

This should probably solve the problem.

share|improve this answer
    
If you don't find the kernel headers for 3.2.0-48 try the second solution that is to download a new stable kernel for your distribution and architecture. –  meteors Jun 23 '13 at 17:24
    
Why would you advise to install kernel packages not backed by a repository? One would not receive any updates anymore (security wise a very bad idea). Moreover, the files you're linking to are in the repository already. –  gertvdijk Jun 23 '13 at 19:45
    
I'm sorry @gertvdijk I'm not getting what you are saying? Why won't one get any updates? I myself updated to linux kernel 3.10 rc3 and am still getting all the updates. In fact Even though I have updated to kernel 3.10, I still receive updates regarding latest kernels that are flagged by Ubuntu as stable. Like I recently received an kernel 3.8.* update. –  meteors Jun 24 '13 at 12:53

Your Answer

 
discard

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.