以下是官方安裝說明:
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 安裝官方手冊安裝,提示依賴關(guān)系未滿足
1.2 到Debian軟件倉庫搜索提示中的依賴包,并下載
1.3 安裝下載好的依賴包,其中有依賴包提示沖突,怎么辦?本來想把有沖突的依賴包卸載掉,但是仔細(xì)一看,該依賴包上有許多常用軟件依賴,不可以卸載。另辟蹊徑吧。
2號坑
2.1 安裝完成后,啟動virtualbox,提示嚴(yán)重錯誤,信息如下:
'''
創(chuàng)建 VirtualBoxClient COM 對象失敗.
應(yīng)用程序?qū)⒈恢袛?
被召者 RC: NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)
'''
2.2 網(wǎng)上查了一圈,有說是文件被鎖,有說是磁盤空間不夠,等等。試了一下,沒有解決問題。以下記錄了一下嘗試操作,沒有什么用處哈(請直接忽略該部分)。
'''
rm: 無法刪除'p3x-onenote/63/locales/am.pak': 只讀文件系統(tǒng)
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 再執(zhí)行安裝,成功咯??!
完整安裝:
方法一:手動下載安裝包安裝
1.查看當(dāng)前kali linux kernel版本
root@kali:~# uname -r
可以看到當(dāng)前系統(tǒng)是kernel 5.4.0,說明是基于Debian 10(版本代號:buster)
2.官方下載對應(yīng)版本安裝包
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.設(shè)置更新源
將原來的/etc/apt/source.list備份:cp /etc/apt/source.list /etc/apt/source.list.bak
再把/etc/apt/source.list里面的內(nèi)容全部刪掉,重新寫入以下信息,保存關(guān)閉文檔。
#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.注冊O(shè)racle 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.記得恢復(fù)source.list文檔原來的內(nèi)容
方法二:apt安裝
前面5步和方法一相同,第6步如下:
apt-get update
apt-get upgrade
apt-get install virtualbox-6.1
如遇到提示依賴包未滿足,請到Debian軟件倉庫搜索,若搜索不到,可以嘗試到Ubuntu軟件倉庫查找。
下載好后,dpkg -i手動安裝依賴包,之后在進(jìn)行virtualbox安裝。
啟動virtualbox,在終端中輸入virtualbox,成功了。
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
本文題目:kalilinux安裝virtualbox的問題以及解決方法-創(chuàng)新互聯(lián)
瀏覽地址:http://jinyejixie.com/article16/dphggg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站維護(hù)、面包屑導(dǎo)航、網(wǎng)站排名、企業(yè)網(wǎng)站制作、營銷型網(wǎng)站建設(shè)、移動網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容