Virtual Box fails to remove from system

I have been using the Oracle repo for virtualbox and have their version of Vbox5.0.6 installed

I would like to transition to the OBS Virtualization repo and load Vbox from there.

As a first step, I opened Yast and selected to delete the current Vbox 5 (from Oracle repo) first.

Yast fails to delete the package, with this error messaging

Subprocess failed. Error: RPM failed: --dkms requires a version
error: %preun(VirtualBox-5.0-5.0.6_103037_openSUSE132-1.x86_64) scriptlet failed, exit status 1
error: VirtualBox-5.0-5.0.6_103037_openSUSE132-1.x86_64: erase failed


Suggestions?

This should work:

sudo rpm -e --noscripts VirtualBox-5.0

Or try to uninstall dkms first.

It did, thanks!