Salve, ho una Debian 9.11 (stretch) ed avrei un problema con virtualbox, quando provo ad avviare una vm mi da il seguente errore:
Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing '/sbin/vboxconfig' as root. If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information. where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
facendo un giro in rete scropro che la motivazione è legata al fatto che io dovrei avere un kernel headers cosa che non ho, facendo un uname -r ottengo questo 4.9.0-7-amd64, cosi provo a fare /sbin/rcvboxdrv setup e il terminale mi restituisce questo
root@debian:~# /sbin/rcvboxdrv setup vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Starting VirtualBox services. 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-amd64 linux-headers-4.9.0-7-amd64
provo ad isntallare linux-headers-amd64 e va a buon fine, ma il problema virtualbox persiste, provo ad installare quindi linux-headers-4.9.0-7-amd64 ma mi dice questo
root@debian:~# apt install linux-headers-4.9.0-7-amd64 Lettura elenco dei pacchetti... Fatto Generazione albero delle dipendenze Lettura informazioni sullo stato... Fatto E: Impossibile trovare il pacchetto linux-headers-4.9.0-7-amd64 E: Impossibile trovare alcun pacchetto tramite il glob "linux-headers-4.9.0-7-amd64" E: Impossibile trovare alcun pacchetto tramite l'espressione regolare "linux-headers-4.9.0-7-amd64"
praticamente non mi trova per la mia debian il kernel headers relativo alla mia versione. Non so proprio come risolvere il problema.
Il tuo sistema sembrerebbe avere un kernel non aggiornato (risulta che stai cercando di installare gli headers per il kernel 4.9.0-7-amd64); prova ad impartire i seguenti comandi come utente root per aggiornare il sistema operativo ed installare il pacchetto linux-headers-amd64 (che installa il linux-headers-4.9.0-11-amd64):