[Resolved] VirtualBox 6.0 will not install due to missing Python(abi)

Discussions related to using VirtualBox on Linux hosts.
Post Reply
bgee22
Posts: 35
Joined: 25. May 2009, 17:20
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Windows XP, Centos, Fedora 10, FreeDOS

[Resolved] VirtualBox 6.0 will not install due to missing Python(abi)

Post by bgee22 »

I am trying to install VirtualBox-6.0-6.0.14 on a Fedora 31 computer. DNF issues an error message that no provider for python(abi) can be found. This problem started while the computer had Fedora 30 on it.

Code: Select all

Problem: cannot install the best update candidate for package VirtualBox-6.0-6.0.10_132072_fedora26-1.x86_64
  - nothing provides python(abi) = 3.6 needed by VirtualBox-6.0-6.0.14_133895_fedora26-1.x86_64
=========================================================================================================
 Package                  Architecture     Version                            Repository            Size
=========================================================================================================
Skipping packages with broken dependencies:
 VirtualBox-6.0           x86_64           6.0.14_133895_fedora26-1           virtualbox           103 M

Transaction Summary
=========================================================================================================
Skip  1 Package

Nothing to do.
Complete!
[root@laptop2 ~]# 
The computer has 6.0.10 installed but it will no longer run. It worked as recently as about August of this year. The kernel module will not load. When I try to rebuild the kernel module, it throws other errors:

Code: Select all

[root@laptop2 ~]# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

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.
[root@laptop2 ~]# 
The last few lines of /var/log/vbox-setup.log look like this:

Code: Select all

/tmp/vbox.0/r0drv/linux/mp-r0drv-linux.c: In function ‘VBoxHost_RTMpOnAll’:
/tmp/vbox.0/r0drv/linux/mp-r0drv-linux.c:287:18: error: void value not ignored as it ought to be
  287 |         int rc = smp_call_function(rtmpLinuxAllWrapper, &Args, 0 /* wait */);
      |                  ^~~~~~~~~~~~~~~~~
/tmp/vbox.0/r0drv/linux/mp-r0drv-linux.c: In function ‘VBoxHost_RTMpOnOthers’:
/tmp/vbox.0/r0drv/linux/mp-r0drv-linux.c:341:8: error: void value not ignored as it ought to be
  341 |     rc = smp_call_function(rtmpLinuxWrapper, &Args, 1 /* wait */);
      |        ^
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --uaccess /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o
make[2]: *** [scripts/Makefile.build:281: /tmp/vbox.0/r0drv/linux/mp-r0drv-linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --uaccess /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --uaccess /tmp/vbox.0/r0drv/linux/process-r0drv-linux.o
make[1]: *** [Makefile:1630: _module_/tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:111: vboxdrv] Error 2
[root@laptop2 ~]# 
What's going on? What can I do to get VirtualBox installed on this computer?

Thanks - Bill Gee
Last edited by bgee22 on 13. Nov 2019, 17:25, edited 1 time in total.
Martin
Volunteer
Posts: 2558
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Re: VirtualBox 6.0 will not install due to missing Python(abi)

Post by Martin »

Something seems to be wrong with your VirtualBox repository setup.
Using the repo file from https://www.virtualbox.org/wiki/Linux_Downloads should give you the "fedora29" builds on Fedora 31, not the older "fedora26" builds.
bgee22
Posts: 35
Joined: 25. May 2009, 17:20
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Windows XP, Centos, Fedora 10, FreeDOS

Re: VirtualBox 6.0 will not install due to missing Python(abi)

Post by bgee22 »

Hi Martin -

Wow, good catch! That was exactly the problem. For reasons I do not remember, I had modified the repo file to specify "/28/x86_64" instead of "/$releasever/$basearch". Switching it back made everything work.

Thjanks!

Bill Gee
Martin
Volunteer
Posts: 2558
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Re: [Resolved] VirtualBox 6.0 will not install due to missing Python(abi)

Post by Martin »

I had a similar "problem" some weeks ago after updating to Fedora 30.
My repo file did specify the version 26, probably from the time I updated to Fedora 27. ;)
Post Reply