之前我使用的是 ubuntu 15.04。我安装了 ubuntu 14.04 LTS,因为有人告诉我 14.04 比较稳定。
现在,当我尝试安装 Virtual Box 时显示以下错误:
vatsa@code-8-21:~$ sudo apt-get install virtualbox
Readingpackage lists... Done
Building dependency tree
Reading state information... Done
The following extra packageswill be installed:
virtualbox-dkms virtualbox-qt
Suggestedpackages:
virtualbox-guest-additions-iso vde2
Thefollowing NEW packages will be installed:
virtualboxvirtualbox-dkms virtualbox-qt
0 upgraded, 3 newly installed, 0 toremove and 0 not upgraded.
Need to get 0 B/20.6 MB ofarchives.
After this operation, 84.1 MB of additional disk spacewill be used.
Do you want to continue? [Y/n] y
Selectingpreviously unselected package virtualbox.
(Reading database ...225930 files and directories currently installed.)
Preparing tounpack .../virtualbox_4.3.10-dfsg-1ubuntu5_amd64.deb ...
Unpacking virtualbox (4.3.10-dfsg-1ubuntu5) ...
Selectingpreviously unselected package virtualbox-dkms.
Preparing tounpack .../virtualbox-dkms_4.3.10-dfsg-1ubuntu5_all.deb ...
Unpacking virtualbox-dkms (4.3.10-dfsg-1ubuntu5) ...
Selectingpreviously unselected package virtualbox-qt.
Preparing to unpack.../virtualbox-qt_4.3.10-dfsg-1ubuntu5_amd64.deb ...
Unpackingvirtualbox-qt (4.3.10-dfsg-1ubuntu5) ...
Processing triggers forureadahead (0.100.0-16) ...
ureadahead will be reprofiled on nextreboot
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1)...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Settingup virtualbox (4.3.10-dfsg-1ubuntu5) ...
* StoppingVirtualBox kernel modules [ OK ]
* Starting VirtualBox kernel modules
* No suitable module for running kernel found [fail]
invoke-rc.d: initscript virtualbox, action "restart" failed.
Setting up virtualbox-dkms(4.3.10-dfsg-1ubuntu5) ...
Loading new virtualbox-4.3.10 DKMSfiles...
First Installation: checking all kernels...
Building only for 3.19.0-31-generic
Building initial module for3.19.0-31-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad returnstatus for module build on kernel: 3.19.0-31-generic (x86_64)
Consult /var/lib/dkms/virtualbox/4.3.10/build/make.log for moreinformation.
* Stopping VirtualBox kernel modules [ OK ]
* Starting VirtualBox kernel modules
* No suitable module for running kernel found [fail]
invoke-rc.d: initscript virtualbox, action "restart" failed.
Setting up virtualbox-qt (4.3.10-dfsg-1ubuntu5)...
请帮帮我。
答案1
我也运行着内核为 3.19.0 的 ubuntu 14.04。对我有用的方法是从 virtualbox 中手动抓取 vbox 4.3.34 的 .deb 包。
然后可以安装“sudo dpkg -i /path/to/deb/file”
希望这可以帮助