如何使用 gedit 開啟 VirtualBox?

如何使用 gedit 開啟 VirtualBox?

我已下載 VirtualBox 並收到以下訊息:

Could not open the file /home/mike/Downloads/vir...16-105871-Linux_amd64.run.

gedit has not been able to detect the character encoding. Please check that you are not trying to open a binary file. Select a character encoding from the menu and try again.

字元編碼有 2 個選項可供選擇:

  • 目前區域設定 (UTF-8)
  • 西方 (ISO-8859-15)

兩者均未檢測到。我嘗試運行該文件並最初更改文件屬性以允許從 cmd 執行:

chmod +x filename

我正在運行 Linux Mint 17.3 Cinnamon 64 位元。我這裡需要 gedit 嗎?

答案1

你到底想在這裡做什麼?您有 VirtualBox 的可執行檔。為什麼要涉及 gedit 和 Vagrant?

您對 .run 檔案真正能做的就是運行它。

打開終端機並輸入:

./VirtualBox-5.0.16-105871-Linux_amd64.run

答案2

@Tom Yan 謝謝,但由於某種原因,我無法在這裡發表評論。我嘗試過在完整路徑中運行它並使用位於管理中的套件管理器。我的問題是我安裝了 Vagrant,當我輸入:

vagrant up

我收到以下訊息:

No usable default provider could be found for your system.

Vagrant relies on interactions with 3rd party systems, known as "providers", to provide Vagrant with resources to run development environments. Examples are VirtualBox, VMWare, Hyper-V.

The easiest solution to this message is to install VirtualBox, which is available for free on all major platforms.

我試過:

vagrant up --provider=PROVIDER

我收到訊息:

The provider 'PROVIDER' could not be found, but was requested to back the machine 'default'. Please use a provider that exists.

相關內容