Como instalo a versão atual do pacote 'linux-headers-generic'?

0

Estou tentando instalar o virtualbox , que requer que um módulo do kernel seja compilado. Isso me dá um erro dizendo:

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

Está descobrindo a versão de linux-headers exigida de uname -r , que retorna 4.13.0-31-generic . No entanto, essa versão dos cabeçalhos do kernel não tem candidato de instalação.

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 mostra a versão antiga instalada:

 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)

Como instalo o pacote linux-headers-4.13.0-31-generic ?

[EDITAR]: A instalação manual do pacote do link funciona!

    
por Tejas Kale 19.03.2018 / 15:35

0 respostas