6

Any time Ubuntu wants to upgrade my kernel, it doesn't seem to upgrade the headers at the same time. This results in certain drivers not being rebuilt such as wireless and virtualbox drivers. I always have to manually install the headers after the update and then rebuild the virtualbox drivers

sudo apt-get install linux-headers-3.5.0-31-generic 
sudo /etc/init.d/vboxdrv setup

Is there a way to have the headers update at the same time? It's very frustrating at times cause if I do it at home, I only use wireless and after the update I can't update the headers unless I pull out an ethernet cable to plug in.

user.dz
  • 47,137
  • 13
  • 140
  • 258
ikbenben
  • 63
  • 1
  • 1
  • 3

1 Answers1

8

if you install specific version of kernel header, then they will not be upgraded. You have to install header-generic

sudo apt-get install linux-headers-generic

The -generic header package will update headers every time linux-image is updated.

girardengo
  • 4,925
  • 1
  • 26
  • 31
  • sudo apt-get install linux-header-$(uname -r) – Qasim May 24 '13 at 10:23
  • 2
    @Qasim with $(uname -r) install current kernel header. From ubuntu.com: 'linux-header-generic: This package will always depend on the latest generic kernel headers available.' – girardengo May 24 '13 at 10:58
  • Thanks girardengo. I've installed that and will see what happens. I figured there was a wrapper package to do this. As a note for future, the package is linux-headers-generic (missing s above) – ikbenben May 25 '13 at 12:41
  • @ikbenben you are right. I edit my post. – girardengo May 26 '13 at 16:09