您好,登錄后才能下訂單哦!
以下是官方安裝說明:
Debian-based Linux distributions
Add the following line to your /etc/apt/sources.list. According to your distribution, replace '<mydist>' with 'eoan', 'bionic', 'xenial', 'buster', 'stretch', or 'jessie' (older versions of VirtualBox supported different distributions):
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian <mydist> contrib
The Oracle public key for apt-secure can be downloaded
here for Debian 8 ("Jessie") / Ubuntu 16.04 ("Xenial") and later
here for older distributions.
You can add these keys with
sudo apt-key add oracle_vbox_2016.asc
sudo apt-key add oracle_vbox.asc
or combine downloading and registering:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
The key fingerprint for oracle_vbox_2016.asc is
B9F8 D658 297A F3EF C18D 5CDF A2F6 83C5 2980 AECF
Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
The key fingerprint for oracle_vbox.asc is
7B0F AB3A 13B9 0743 5925 D9C9 5442 2A4B 98AB 5139
Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
(As of VirtualBox 3.2, the signing key was changed. The old Sun public key for apt-secure can be downloaded here.)
To install VirtualBox, do
sudo apt-get update
sudo apt-get install virtualbox-6.1
Replace virtualbox-6.1 by virtualbox-6.0 or virtualbox-5.2 to install the latest VirtualBox 6.0 or 5.2 build.
What to do when experiencing The following signatures were invalid: BADSIG ... when refreshing the packages from the repository?
1.1 安裝官方手冊安裝,提示依賴關系未滿足
1.2 到Debian軟件倉庫搜索提示中的依賴包,并下載
1.3 安裝下載好的依賴包,其中有依賴包提示沖突,怎么辦?本來想把有沖突的依賴包卸載掉,但是仔細一看,該依賴包上有許多常用軟件依賴,不可以卸載。另辟蹊徑吧。
2號坑
2.1 安裝完成后,啟動virtualbox,提示嚴重錯誤,信息如下:
'''
創建 VirtualBoxClient COM 對象失敗.
應用程序將被中斷.
被召者 RC: NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)
'''
2.2 網上查了一圈,有說是文件被鎖,有說是磁盤空間不夠,等等。試了一下,沒有解決問題。以下記錄了一下嘗試操作,沒有什么用處哈(請直接忽略該部分)。
'''
rm: 無法刪除'p3x-onenote/63/locales/am.pak': 只讀文件系統
root@kali:/snap/p3x-onenote/63# mount
root@kali:/snap/p3x-onenote/63# mount -o remount,rw /snap/p3x-onenote/63
'''
2.3 重新回到錯誤提示上來,"被召者 RC: NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)",是不是沒有注冊呢?
前面安裝時,有一步是下載并注冊key,會不會是這一步出了問題?
卸載virtualbox,重新獲取key,再注冊。
wget https://www.virtualbox.org/download/oracle_vbox_2016.asc
apt-key add oracle_vbox_2016.asc
wget https://www.virtualbox.org/download/oracle_vbox.asc
apt-key add oracle_vbox.asc
2.4 再執行安裝,成功咯!!
完整安裝:
方法一:手動下載安裝包安裝
1.查看當前kali linux kernel版本
root@kali:~# uname -r
可以看到當前系統是kernel 5.4.0,說明是基于Debian 10(版本代號:buster)
2.官方下載對應版本安裝包
https://www.virtualbox.org/wiki/Linux_Downloads
https://download.virtualbox.org/virtualbox/6.1.4/virtualbox-6.1_6.1.4-136177~Debian~buster_amd64.deb
3.設置更新源
將原來的/etc/apt/source.list備份:cp /etc/apt/source.list /etc/apt/source.list.bak
再把/etc/apt/source.list里面的內容全部刪掉,重新寫入以下信息,保存關閉文檔。
#VirtualBox Debian Stretch
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian buster contrib
deb https://download.virtualbox.org/virtualbox/debian buster contrib
4.下載Oracle public key
cd /tmp
wget https://www.virtualbox.org/download/oracle_vbox_2016.asc
wget https://www.virtualbox.org/download/oracle_vbox.asc
5.注冊Oracle public key
apt-key add oracle_vbox_2016.asc
apt-key add oracle_vbox.asc
6.安裝virtualbox
apt-get update
apt-get upgrade
dpkg -i virtualbox-6.1_6.1.4-136177~Debian~buster_amd64.deb
7.記得恢復source.list文檔原來的內容
方法二:apt安裝
前面5步和方法一相同,第6步如下:
apt-get update
apt-get upgrade
apt-get install virtualbox-6.1
如遇到提示依賴包未滿足,請到Debian軟件倉庫搜索,若搜索不到,可以嘗試到Ubuntu軟件倉庫查找。
下載好后,dpkg -i手動安裝依賴包,之后在進行virtualbox安裝。
啟動virtualbox,在終端中輸入virtualbox,成功了。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。