如何在Kali Linux中安裝Google Chrome瀏覽器
介紹
目的
我們的目標(biāo)就是在 Kali Linux 上安裝好 Google Chrome Web 瀏覽器。同時(shí),請(qǐng)參閱附錄為可能出現(xiàn)的問(wèn)題進(jìn)行排查。
要求
需要獲得已安裝 Kali Linux 或者 Live 系統(tǒng)的特權(quán)。
困難程度
容易。
慣例
- # - 給定命令需要以 root 用戶權(quán)限運(yùn)行或者使用 sudo 命令
- $ - 給定命令以常規(guī)權(quán)限用戶運(yùn)行
步驟說(shuō)明
下載 Google Chrome
首先,使用 wget 命令來(lái)下載***版本的 Google Chrome 的 debian 安裝包。
- # wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
安裝 Google Chrome
在 Kali Linux 安裝 Google Chrome 最容易的方法就是使用 gdebi,它會(huì)自動(dòng)幫你下載所有的依賴包。
- # gdebi google-chrome-stable_current_amd64.deb
啟動(dòng) Google Chrome
開(kāi)啟一個(gè)終端(terminal),執(zhí)行 google-chrome 命令來(lái)啟動(dòng) Google Chrome 瀏覽器。
- $ google-chrome
附錄
非法指令 (Illegal Instruction)
當(dāng)以 root 用戶特權(quán)來(lái)運(yùn)行 google-chrome 命令是,會(huì)出現(xiàn) 非法指令 (Illegal Instruction) 錯(cuò)誤信息。因?yàn)橥ǔG闆r下,Kali Linux 默認(rèn)情況下的默認(rèn)用戶是 root 用戶,我們需要?jiǎng)?chuàng)建一個(gè)虛的非特權(quán)用戶,比如 linuxconfig,然后使用這個(gè)用戶來(lái)啟動(dòng) Google Chrome 瀏覽器。如下:
- # useradd -m -d /home/linuxconfig linuxconfig
- # su linuxconfig -c google-chrome
libappindicator1 包未安裝
- dpkg: dependency problems prevent configuration of google-chrome-stable:
- google-chrome-stable depends on libappindicator1; however:
- Package libappindicator1 is not installed.
使用 gdebi 命令來(lái)安裝 Google Chrome 的 debian 包可以解決依賴問(wèn)題。參閱上文。
在 Kali Linux 中以普通用戶啟動(dòng) google chrome
譯者簡(jiǎn)介:
GHLandy —— 生活中所有歡樂(lè)與苦悶都應(yīng)藏在心中,有些事兒注定無(wú)人知曉,自己也無(wú)從說(shuō)起。