本文介绍了Virtualbox未在High Sierra上安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过brew cask install virtualbox安装Virtualbox时,出现以下错误:

When installing Virtualbox via brew cask install virtualbox I get the following error:

==> Satisfying dependencies
==> Downloading http://download.virtualbox.org/virtualbox/5.1.28/VirtualBox-5.1.28-117968-OSX.dmg
Already downloaded: /Users/romanderlemenko/Library/Caches/Homebrew/Cask/virtualbox--5.1.28-117968.dmg
==> Verifying checksum for Cask virtualbox
==> Installing Cask virtualbox
==> Running installer for virtualbox; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password:
==> installer: Package name is Oracle VM VirtualBox
==> installer: Installing at base path /
==> installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
Error: Command failed to execute!

==> Failed command:
/usr/bin/sudo -E -- /usr/sbin/installer -pkg /usr/local/Caskroom/virtualbox/5.1.28-117968/VirtualBox.pkg -target /

==> Standard Output of failed command:
installer: Package name is Oracle VM VirtualBox
installer: Installing at base path /
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)


==> Standard Error of failed command:


==> Exit status of failed command:
#<Process::Status: pid 3578 exit 1>

通过.dmg软件包安装时,安装程​​序只会说安装失败

When installing it via .dmg package the installer just says that installation failed

在两种情况下,我最终都需要安装Virtualbox.但是,当我使用vagrant up启动我的Vagrant框时,这就是我得到的:

In both situations I end up with having Virtualbox installed. But when I start my Vagrant box using vagrant up here's what I get:

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "dda26a7b-cc0e-440c-b0db-9b3d3bac5925", "--type", "headless"]

Stderr: VBoxManage: error: The virtual machine 'rooxie-vm' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

这可能是因为High Sierra的新文件系统吗?

Can this be because of High Sierra's new filesystem?

推荐答案

我遇到了同样的问题.这是Mac OS的问题.转到系统偏好设置/安全性和隐私.有允许Oracle安装软件.之后,重试安装虚拟盒.它为我工作.祝你好运!

I had the same problem. It's a Mac OS issue.Go to system preferences/Security & Privacy. There Allow Oracle to install software.Retry installing virtual box after that.It worked for me.Good Luck!

这篇关于Virtualbox未在High Sierra上安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 06:03
查看更多