Page 1 of 1

VirtualBox won't install EVER on Ubuntu 18.04 5.4.0-52-generic

Posted: 27. Oct 2020, 00:58
by agym
I have been scouting for two hours now on support pages and stackoverflow, tried almost everything: install dkms, uninstall dkms and reinstall, disable secure boot, dpkg --purge all and repeat fresh, NOTHING works

I tried all versions 5.2.x up to the latest test build 6.1.17
I would purge and delete before trying another version
Run through VirtualBox-6.1.x-xxxx-Linux_amd64.run almost all of them

Same story: VirtualBox installed please run sudo /sbin/vboxconfig which fails > vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong

I am on Ubuntu 18.04 5.4.0-52-generic, tried on 5.3.x, 5.4.0-48
Same story

Why won't it install? I can't make sense of that log file, what is going on?

Please help I got work tomorrow and I need those machines running I can't even use them on a different software.

Thank you!

Re: VirtualBox won't install EVER on Ubuntu 18.04 5.4.0-52-generic

Posted: 27. Oct 2020, 13:00
by fth0
agym wrote:Why won't it install? I can't make sense of that log file, what is going on?
I don't really know what is the best solution for you, but I can give you some hints:

In Linux kernel 5.4, there have been changes around the asm_inline macro, and you'll probably need a VirtualBox package that expects the Linux kernel version that you're using. On the Download VirtualBox for Linux Hosts page, the VirtualBox distribution specific packages expect the Linux kernel version of the initial delivery of the corresponding Linux distribution, and the All distributions version probably expects an older Linux kernel version.

In consequence, you'll either need go back to Linux kernel 4.15 (Ubuntu 18.04), or maybe try the VirtualBox package for Ubuntu 20.04. I've no idea what the chances are for the latter to succeed. Alternatively, you can google for workarounds to try.

Re: VirtualBox won't install EVER on Ubuntu 18.04 5.4.0-52-generic

Posted: 31. Oct 2020, 00:06
by agym
Thank you, I actually had to downgrade to 4.15.0-122-generic for it to work as normal.