0

I simply couldn't install virtualbox on Ubuntu 18.04 (Kernel 5.4.0-90-generic). Trying different versions from 5.2 to 6.1 and always have the same error when requested /sbin/vboxconfig:

vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

I have tried all approaches mentioned out there, like this, that, there (already had UEFI secure boot disabled), none of them works.

It's getting really frustrating. Anyone got some ideas?

  • 2
    What is content of the file /var/log/vbox-setup.log ? – pasman pasmański Nov 12 '21 at 07:48
  • @pasmanpasmański It's a pretty long file, and this is one of the errors ./arch/x86/include/asm/tlbflush.h: In function ‘__native_flush_tlb’: ././include/linux/compiler_types.h:214:24: error: expected ‘(’ before ‘__inline’ #define asm_inline asm __inline – EternaLCompleX Nov 12 '21 at 17:58
  • @EternaL You probably has too old gcc. Best is to install newer release of Ubuntu, 20.04LTS or 21.10 (only 9 month support) – pasman pasmański Nov 12 '21 at 18:54
  • @pasmanpasmański Good point, I upgraded to gcc 9 and the error went away. Thanks a lot. – EternaLCompleX Nov 12 '21 at 23:08

0 Answers0