Page 1 of 1
Installing Virtualbox on MGA9

Posted:
Aug 30th, '23, 20:57
by gkmeyer
I have done a fresh install of Mageia 9 and I am trying to install VirtualBox from the repositories, however I am getting an error that a newer kernel is installed.
I have kernel desktop 6.4.9 installed
it looks like the virtualbox packages are built against 6.4.7, however I cannot seem to downgrade my lernel to 6.4.7 to match the vbox modules. Will the virtualbox packages be rebuilt against 6.4.9? How can I downgrade the kernel? The old methods don't seem to work.
Re: Installing Virtualbox on MGA9

Posted:
Aug 30th, '23, 21:12
by doktor5000
Hi there, it might help if you could post the output of
- Code: Select all
rpm -qa | grep -iE "virtualbox|kernel" | sort
urpmq --list-media active --list-url
FWIW, I also did a fresh install of mga9 and virtualbox installed without any issues.
Re: Installing Virtualbox on MGA9

Posted:
Aug 30th, '23, 21:15
by gkmeyer
- Code: Select all
greg@localhost ~]$ rpm -qa | grep -iE "virtualbox|kernel" | sort
kernel-desktop-6.4.9-4.mga9
kernel-desktop-devel-6.4.9-4.mga9
kernel-desktop-latest-6.4.9-4.mga9
kernel-firmware-20230625-1.mga9
kernel-firmware-nonfree-20230814-1.mga9.nonfree
kernel-userspace-headers-6.4.9-4.mga9
remove-old-kernels-0.99.21.7-1.mga9
- Code: Select all
urpmq --list-media active --list-url
Core Release https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/core/release
Core Updates https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/core/updates
Nonfree Release https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/nonfree/release
Nonfree Updates https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/nonfree/updates
Tainted Release https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/tainted/release
Tainted Updates https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/tainted/updates
google-chrome http://dl.google.com/linux/chrome/rpm/stable/x86_64
Re: Installing Virtualbox on MGA9

Posted:
Aug 30th, '23, 21:27
by gkmeyer
- Code: Select all
[greg@localhost ~]$ sudo urpmi virtualbox
[sudo] password for greg:
In order to satisfy the 'kmod(vboxdrv.ko)[== 7.0.10]' dependency, one of the following packages is needed:
1- virtualbox-kernel-6.4.7-desktop-3.mga9-7.0.10-13.mga9.x86_64: virtualbox driver for kernel-desktop-6.4.7-3.mga9 (to install)
2- virtualbox-kernel-6.4.7-server-3.mga9-7.0.10-13.mga9.x86_64: virtualbox driver for kernel-server-6.4.7-3.mga9 (to install)
3- virtualbox-kernel-6.4.6-desktop-1.mga9-7.0.10-8.mga9.x86_64: virtualbox driver for kernel-desktop-6.4.6-1.mga9 (to install)
4- virtualbox-kernel-6.4.6-server-1.mga9-7.0.10-8.mga9.x86_64: virtualbox driver for kernel-server-6.4.6-1.mga9 (to install)
5- dkms-virtualbox-7.0.10-2.mga9.x86_64: VirtualBox kernel module (to install)
What is your choice? (1-5) 1
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Arch
(medium "Core Release")
kernel-desktop 6.4.7 3.mga9 x86_64
virtualbox 7.0.10 2.mga9 x86_64
virtualbox-kernel-6.4.7-deskt> 7.0.10 13.mga9 x86_64
virtualbox-kernel-desktop-lat> 7.0.10 13.mga9 x86_64 (recommended)
211MB of additional disk space will be used.
124MB of packages will be retrieved.
Proceed with the installation of the 4 packages? (Y/n)
installing virtualbox-7.0.10-2.mga9.x86_64.rpm from /var/cache/urpmi/rpms
Installation failed: kmod(vboxdrv.ko) = 7.0.10 is needed by virtualbox-7.0.10-2.mga9.x86_64
Re: Installing Virtualbox on MGA9

Posted:
Aug 30th, '23, 22:50
by doktor5000
Not sure if your mirror is not fully updated yet or maybe it hasn't synced hdlists yet completely, but those virtualbox-kernel-6.4.7 packages don't exist on your mirror.
Check
https://mirror.math.princeton.edu/pub/m ... e/release/- Code: Select all
[ ] virtualbox-kernel-6.4.9-desktop-4.mga9-7.0.10-24.mga9.x86_64.rpm 2023-08-19 13:11 221K
[ ] virtualbox-kernel-6.4.9-server-4.mga9-7.0.10-24.mga9.x86_64.rpm 2023-08-19 13:11 220K
[ ] virtualbox-kernel-desktop-latest-7.0.10-24.mga9.x86_64.rpm 2023-08-19 13:11 26K
[ ] virtualbox-kernel-server-latest-7.0.10-24.mga9.x86_64.rpm 2023-08-19 13:11 26K
According to
https://mirrors.mageia.org/status it doesn't even have a timestamp for the base directory. Maybe try a different mirror which is up-to-date.
Re: Installing Virtualbox on MGA9

Posted:
Aug 30th, '23, 23:35
by gkmeyer
Yes, it looks like when I did the install last night the mirrors might have been out of synch. I forced an update to my media and it installed. Thanks for the help.
Re: Installing Virtualbox on MGA9

Posted:
Aug 31st, '23, 17:11
by doktor5000
Please don't forget to mark the thread as solved, by editing the subject of the first post and prefix it with [SOLVED], thanks in advance.