How do I install the current version of the `linux-headers-generic` package?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I am trying to install virtualbox
which requires a kernel module to be compiled. This gives me an error saying :
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-4.13.0-31-generic
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-4.13.0-31-generic
Its figuring out the version of linux-headers
required from uname -r
which returns 4.13.0-31-generic
. However that version of the kernel headers has no installation candidate.
sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-4.13.0-31-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-4.13.0-31-generic' has no installation candidate
dpkg-query
shows the old version is installed:
sudo dpkg-query -l "linux-headers*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================================-============================-============================-==================================================================================================
un linux-headers <none> <none> (no description available)
un linux-headers-2.6-686 <none> <none> (no description available)
un linux-headers-2.6-amd64 <none> <none> (no description available)
un linux-headers-3.0 <none> <none> (no description available)
ii linux-headers-4.13.0-16 4.13.0-16.19 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-16-generic 4.13.0-16.19 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
un linux-headers-4.13.0-21-generic <none> <none> (no description available)
un linux-headers-4.13.0-25-generic <none> <none> (no description available)
un linux-headers-4.13.0-31-generic <none> <none> (no description available)
un linux-headers-686-pae <none> <none> (no description available)
un linux-headers-amd64 <none> <none> (no description available)
ii linux-headers-generic 4.13.0.16.17 amd64 Generic Linux kernel headers
un linux-headers-generic-pae <none> <none> (no description available)
How do I install the linux-headers-4.13.0-31-generic
package?
[EDIT] :
Manually installing the package from https://packages.ubuntu.com/xenial-updates/linux-headers-4.13.0-31 works!
apt 17.10
add a comment |Â
up vote
0
down vote
favorite
I am trying to install virtualbox
which requires a kernel module to be compiled. This gives me an error saying :
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-4.13.0-31-generic
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-4.13.0-31-generic
Its figuring out the version of linux-headers
required from uname -r
which returns 4.13.0-31-generic
. However that version of the kernel headers has no installation candidate.
sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-4.13.0-31-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-4.13.0-31-generic' has no installation candidate
dpkg-query
shows the old version is installed:
sudo dpkg-query -l "linux-headers*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================================-============================-============================-==================================================================================================
un linux-headers <none> <none> (no description available)
un linux-headers-2.6-686 <none> <none> (no description available)
un linux-headers-2.6-amd64 <none> <none> (no description available)
un linux-headers-3.0 <none> <none> (no description available)
ii linux-headers-4.13.0-16 4.13.0-16.19 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-16-generic 4.13.0-16.19 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
un linux-headers-4.13.0-21-generic <none> <none> (no description available)
un linux-headers-4.13.0-25-generic <none> <none> (no description available)
un linux-headers-4.13.0-31-generic <none> <none> (no description available)
un linux-headers-686-pae <none> <none> (no description available)
un linux-headers-amd64 <none> <none> (no description available)
ii linux-headers-generic 4.13.0.16.17 amd64 Generic Linux kernel headers
un linux-headers-generic-pae <none> <none> (no description available)
How do I install the linux-headers-4.13.0-31-generic
package?
[EDIT] :
Manually installing the package from https://packages.ubuntu.com/xenial-updates/linux-headers-4.13.0-31 works!
apt 17.10
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to install virtualbox
which requires a kernel module to be compiled. This gives me an error saying :
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-4.13.0-31-generic
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-4.13.0-31-generic
Its figuring out the version of linux-headers
required from uname -r
which returns 4.13.0-31-generic
. However that version of the kernel headers has no installation candidate.
sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-4.13.0-31-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-4.13.0-31-generic' has no installation candidate
dpkg-query
shows the old version is installed:
sudo dpkg-query -l "linux-headers*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================================-============================-============================-==================================================================================================
un linux-headers <none> <none> (no description available)
un linux-headers-2.6-686 <none> <none> (no description available)
un linux-headers-2.6-amd64 <none> <none> (no description available)
un linux-headers-3.0 <none> <none> (no description available)
ii linux-headers-4.13.0-16 4.13.0-16.19 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-16-generic 4.13.0-16.19 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
un linux-headers-4.13.0-21-generic <none> <none> (no description available)
un linux-headers-4.13.0-25-generic <none> <none> (no description available)
un linux-headers-4.13.0-31-generic <none> <none> (no description available)
un linux-headers-686-pae <none> <none> (no description available)
un linux-headers-amd64 <none> <none> (no description available)
ii linux-headers-generic 4.13.0.16.17 amd64 Generic Linux kernel headers
un linux-headers-generic-pae <none> <none> (no description available)
How do I install the linux-headers-4.13.0-31-generic
package?
[EDIT] :
Manually installing the package from https://packages.ubuntu.com/xenial-updates/linux-headers-4.13.0-31 works!
apt 17.10
I am trying to install virtualbox
which requires a kernel module to be compiled. This gives me an error saying :
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-4.13.0-31-generic
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-4.13.0-31-generic
Its figuring out the version of linux-headers
required from uname -r
which returns 4.13.0-31-generic
. However that version of the kernel headers has no installation candidate.
sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-4.13.0-31-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-4.13.0-31-generic' has no installation candidate
dpkg-query
shows the old version is installed:
sudo dpkg-query -l "linux-headers*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================================-============================-============================-==================================================================================================
un linux-headers <none> <none> (no description available)
un linux-headers-2.6-686 <none> <none> (no description available)
un linux-headers-2.6-amd64 <none> <none> (no description available)
un linux-headers-3.0 <none> <none> (no description available)
ii linux-headers-4.13.0-16 4.13.0-16.19 all Header files related to Linux kernel version 4.13.0
ii linux-headers-4.13.0-16-generic 4.13.0-16.19 amd64 Linux kernel headers for version 4.13.0 on 64 bit x86 SMP
un linux-headers-4.13.0-21-generic <none> <none> (no description available)
un linux-headers-4.13.0-25-generic <none> <none> (no description available)
un linux-headers-4.13.0-31-generic <none> <none> (no description available)
un linux-headers-686-pae <none> <none> (no description available)
un linux-headers-amd64 <none> <none> (no description available)
ii linux-headers-generic 4.13.0.16.17 amd64 Generic Linux kernel headers
un linux-headers-generic-pae <none> <none> (no description available)
How do I install the linux-headers-4.13.0-31-generic
package?
[EDIT] :
Manually installing the package from https://packages.ubuntu.com/xenial-updates/linux-headers-4.13.0-31 works!
apt 17.10
apt 17.10
asked Mar 19 at 14:35
Tejas Kale
11118
11118
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017326%2fhow-do-i-install-the-current-version-of-the-linux-headers-generic-package%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password