Cannot install VirtualBox: Missing required package suse-kernel-rpm-scriptlets

After upgrade from Leap 15.2 to Leap 15.3, I had to uninstall the VirtualBox KMP kernel package. It failed complained about some missing files.

When I try to reinstall it it complains about the missing package “suse-kernel-rpm-scriptles”.

Problem: nothing provides 'suse-kernel-rpm-scriptlets' needed by the to be installed virtualbox-kmp-default-6.1.32_k5.3.18_59.40-lp153.2.21.1.x86_64
 Solution 1: do not install virtualbox-kmp-default-6.1.32_k5.3.18_59.40-lp153.2.21.1.x86_64
 Solution 2: break virtualbox-kmp-default-6.1.32_k5.3.18_59.40-lp153.2.21.1.x86_64 by ignoring some of its dependencies

When VirtualBox in the OpenSUSE Leap 15.3 Main Repository requires this package, then why is it missing?

I needed to enable these two additional repositories

Sounds like your upgrade did not add the necessary repositories, did you follow the upgrade guide?

Those should have been added and enabled at upgrade to 15.3.

And when they were not enabled until now, you are missing a lot of updates. Better do a

zypper up

to check that.