
Al intentar instalar encabezados de Linux para Ubuntu 2204 Desktop (uname -r = 5.13.0-40-generic) obtengo:
sudo apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package linux-headers-5.13.0-40-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-5.13.0-40-generic' has no installation candidate
¿Cuál es la solución? Gracias.
Respuesta1
Actualizaste desde una versión anterior. Intente instalar el kernel actual con sus encabezados mediante sudo apt install linux-generic
. (Probablemente ya esté instalado). Luego reinicie para comenzar a usar ese kernel.