openSUSE 12.3安裝Virtualbox出錯解決

來源:互聯網
上載者:User

openSUSE 12.3安裝Virtualbox出錯解決,最開始提示什麼安裝DKMS,然後下載安裝後出現的錯誤,也就是

sincerefly@linux-eq1f:~/Downloads/iso$ sudo rpm -Uivh dkms-2.2.0.3-1.noarch.rpm
root's password:
準備中...                          ################################# [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 at
/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

不知道是什麼原因,不安虛擬機器又不行,一是學習CentOS,二是做實驗在實體系統不安全,不過還好,有百度。有問題就要解決嘛

搜尋到

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

不過是debian系的命令(不知可否)

後來經過群友提示和協助解決了。
原因是缺少了對應核心的對應的包,雖然我之前已經執行過 kernel-devel的安裝命令,但是沒有安裝uek核心的對應的 kernel-devel,正確的應該是kernel-uek-devel。

那句“kernel-devel的安裝命令”誤導了我半天,忽然驚醒原來是軟體包。

這就好辦了,用zypper search kernel-devel搜尋一下,果然是

安裝完成後,再運行

成功!

這時我的VB就能運行了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.