Environnement Linux Mint Debian Edition 4 Ryzen3500U J'élève la version du noyau au moment de l'installation
python
$ uname -a
Nom du PC Linux 5.6.0-0.bpo.2-amd64 #1 SMP Debian 5.6.14-2~bpo10+1 (2020-06-09) x86_64 GNU/Linux
Lorsque vous essayez d'importer Je me fâche avec une erreur comme celle-ci
Code de fin: NS_ERROR_FAILURE (0x80004005) Composant: MachineWrap Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
Pour le moment
étape 1
$ sudo /sbin/vboxconfig
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-5.6.0-0.bpo.2-amd64
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-5.6.0-0.bpo.2-amd64
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may 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.
Je suis en colère qu'il n'y ait pas de fichier d'en-tête du noyau, alors installez l'en-tête
Étape 2
$ sudo apt install -y linux-headers-amd64 linux-headers-5.6.0-0.bpo.2-amd64
ensuite
Étape 3
$ sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
Bon début La fin
Recommended Posts