OpenSUSE 12.3 Virtualbox installation error Solution

Source: Internet
Author: User

OpenSUSE 12.3 solves an error when installing Virtualbox. the following error occurs:

Sincerefly @ linux-eq1f :~ /Downloads/iso $ sudo rpm-Uivh dkms-2.2.0.3-1.noarch.rpm
Root's password:
Preparing... ################################# [100%]
Package dkms-2.2.0.3-1.noarch is already installed
Sincerefly @ linux-eq1f :~ /Downloads/iso $ sudo/etc/init. d/vboxdrv setup
Stopping VirtualBox kernel modules done
Uninstalling old VirtualBox DKMS kernel modules done
Trying to register the VirtualBox kernel modules using DKMSError! Echo
Your kernel headers for kernel 3.7.10-1.16-desktop cannot be found
/Lib/modules/3.7.10-1.16-desktop/build or/lib/modules/3.7.10-1.16-desktop/source.
Failed
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules failed

I don't know what the reason is. I don't know why the virtual machine doesn't work. I learned CentOS, and I didn't know why the experiment was not safe in the real system. But fortunately, there was Baidu. Is there a problem to be solved?

Found

Sudo apt-get install dkms build-essential linux-headers-$ (uname-r)
Sudo/etc/init. d/vboxdrv setup

It's just a debian command (not sure)

Later, the group prompts and helps solve the problem.
The reason is that the corresponding kernel package is missing. Although I have run the kernel-devel installation command before, the kernel-devel corresponding to the uek kernel is not installed, the correct method is kernel-uek-devel.

The "kernel-devel installation command" misled me for half a day and suddenly woke up as a software package.

This is easy to do. search by zypper search kernel-devel.

After installation, run

Successful!

At this time, my VB will be able to run.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.