線上書籍

Home

VirtualBox

以套件庫方式安裝

  1.  準備加入套件庫,先連到官網 https://www.virtualbox.org/wiki/Linux_Downloads
  2. 先查看你的作業系統是屬於那一個版本 
  3.  
    1. 修改套件庫設定:
      把 VirtualBox 加入套件庫 # pico /etc/apt/sources.list 在最後面加入這一行(我們是使用 ACFS , 是由 Ubuntu 所製作的,而 Ubuntu 是由 Deb 所改寫的。) deb http://download.virtualbox.org/virtualbox/debian vivid contrib
    2. 存檔: 按 Ctrl-O ,並按 Enter 儲存後 按 Ctrl-X 離開.
    3. 匯入金鑰 wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
    4. 更新套件庫,並安裝 VirtualBox sudo apt-get update sudo apt-get install virtualbox-5.0  

      Note: Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade. For Debian it is available in Lenny backports and in the normal repository for Squeeze and later. The dkms package can be installed through the Synaptic Package manager or through the following command:

      sudo apt-get install dkms

      What to do when experiencing The following signatures were invalid: BADSIG ... when refreshing the packages from the repository?

      # sudo -s -H # apt-get clean # rm /var/lib/apt/lists/* # rm /var/lib/apt/lists/partial/* # apt-get clean # apt-get update