An error occurred while installing VirtualBox in Ubuntu12.04 due to gcc version issues.

Source: Internet
Author: User
Some time ago, Ubuntu was upgraded to 12.04, and the original virtualbox can be used normally. After several kernel upgrades, virtualbox suddenly becomes unavailable. Virtualbox prompts/etc/init. d/vboxdrvsetup to perform this operation, and the system crashes directly. Prompt VBoxPciLinuxInit + 0x10 ..... The prompt should be a module problem. However, this problem is rare on the Internet. Most of them indicate that the kernel header file is missing.

Some time ago, Ubuntu was upgraded to 12.04, and the original virtualbox can be used normally. After several kernel upgrades, virtualbox suddenly becomes unavailable. Virtualbox prompts/etc/init. d/vboxdrv setup

After this operation, the system crashes.

Prompt VBoxPciLinuxInit + 0x10 .....

The prompt should be a module problem. However, this problem is rare on the Internet.

Most of them indicate that the kernel header file is missing. I updated all the kernel header files to the latest version, and downloaded the latest version from the official virtualbox website.

It is reasonable to say that Ubuntu 12.04 is an LTS version and there should be no "quality" problems. But why can't virtualbox be installed? Even installation will cause the system to crash.

After a few days of being depressed, I had a holiday and thought it was okay. I tried it again.

I suddenly thought that some time ago, I upgraded to 12.04. After the Android source code compilation failed, I downgraded the gcc version of the system from 4.6 to 4.4.

Since gcc versions may cause Android source code compilation to fail, Will virtualbox be unable to be installed in version 12.04 "culprit?

Therefore

Cd/usr/bin/

Sudo rm gcc

Sudo ln-s gcc-4.6 gcc

Dpkg-I virtualbox-4.2_4.2.6-82870 again ~ Ubuntu ~ Precise_i386.deb

The installation was successful. Then downgrade gcc to 4.4, or the Android Source Code cannot be compiled next time.

It seems that the version difference in the compiler can cause major problems!

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

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.