Ubuntu resolve error virtualbox install the enhanced package

Error message:

the system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel “header” files matching the current kernel
for adding new hardware support to the system.

Solution:

python@python-VirtualBox:~$ uname -r
4.15.0-20-generic
python@python-VirtualBox:~$ sudo apt-get update
python@python-VirtualBox:~$ sudo apt-get install build-essential linux-headers-4.15.0-20-generic

 

Guess you like

Origin www.cnblogs.com/Hannibal-2018/p/11204580.html