ubuntu 18.04 failed to respond to startup after installing virtualbox

Keywords: VirtualBox sudo Ubuntu

1. ubuntu 18.04

After the Ubuntu 18.04 AMD64 corresponding to the virtualbox is installed, the startup of virtualbox does not respond. After a flash, the startup fails

2. Direct command line start

Find the command cd /usr/bin
Start / usr / bin $. / VirtualBox

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.15.0-33-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
VirtualBox: Error -10 in SUPR3HardenedMain!
VirtualBox: Effective UID is not root (euid=1000 egid=1000 uid=1000 gid=1000)

VirtualBox: Tip! It may help to reinstall VirtualBox.

Then execute / usr / bin $sudo / SBIN / vboxconfig, which is still not easy to use, and continue to report mercilessly

sudo: /sbin/vboxconfig: command not found

3. restoration

After that, I wanted to check the version number of the software. To install a version viewing tool / usr / bin $sudo apt get install apt show versions, the result is as follows:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 virtualbox-5.2 : Depends: libcurl4 (>= 7.16.2) but it is not going to be installed
                  Depends: libqt5opengl5 (>= 5.0.2) but it is not going to be installed
                  Depends: libqt5printsupport5 (>= 5.0.2) but it is not going to be installed
                  Depends: libqt5x11extras5 (>= 5.6.0) but it is not going to be installed
                  Depends: libsdl1.2debian (>= 1.2.11) but it is not going to be installed
                  Recommends: libsdl-ttf2.0-0 but it is not going to be installed
                  Recommends: gcc but it is not going to be installed
                  Recommends: make or
                              build-essential but it is not going to be installed or
                              dpkg-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

In this case, execute / usr / bin $sudo apt -- fix broken install honestly
And then there's a lot of stuff, and finally

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

Then run as root

/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 gcc make perl packages from your distribution.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

After that, you can start virtualbox from the win key. I wonder if your problem has been solved

Posted by yahelb on Sun, 05 Jan 2020 13:37:19 -0800