歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux安裝 >> 如何在 Kali Linux 中安裝 Google Chrome 浏覽器

如何在 Kali Linux 中安裝 Google Chrome 浏覽器

日期:2017/2/25 14:43:57   编辑:Linux安裝

介紹

目的

我們的目標就是在 Kali Linux 上安裝好 Google Chrome Web 浏覽器。同時,請參閱附錄為可能出現的問題進行排查。

要求

需要獲得已安裝 Kali Linux 或者 Live 系統的特權。

困難程度

容易。

慣例

  • # - 給定命令需要以 root 用戶權限運行或者使用 sudo 命令
  • $ - 給定命令以常規權限用戶運行

步驟說明

下載 Google Chrome

首先,使用 wget 命令來下載最新版本的 Google Chrome 的 debian 安裝包。


  1. # wget http://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

安裝 Google Chrome

在 Kali Linux 安裝 Google Chrome 最容易的方法就是使用 gdebi,它會自動幫你下載所有的依賴包。


  1. # gdebi google-chrome-stable_current_amd64.deb

啟動 Google Chrome

開啟一個終端terminal,執行 google-chrome 命令來啟動 Google Chrome 浏覽器。


  1. $ google-chrome

附錄

非法指令Illegal Instruction

當以 root 用戶特權來運行 google-chrome 命令是,會出現非法指令Illegal Instruction 錯誤信息。因為通常情況下,Kali Linux 默認情況下的默認用戶是 root 用戶,我們需要創建一個虛的非特權用戶,比如 linuxconfig,然後使用這個用戶來啟動 Google Chrome 浏覽器。如下:


  1. # useradd -m -d /home/linuxconfig linuxconfig
  2. # su linuxconfig -c google-chrome

libappindicator1 包未安裝


  1. dpkg: dependency problems prevent configuration of google-chrome-stable:
  2. google-chrome-stable depends on libappindicator1; however:
  3. Package libappindicator1 is not installed.

使用 gdebi 命令來安裝 Google Chrome 的 debian 包可以解決依賴問題。參閱上文。

在 Kali Linux 中以普通用戶啟動 google chrome

在 Kali Linux 中以普通用戶啟動 google chrome


譯者簡介:

GHLandy —— 生活中所有歡樂與苦悶都應藏在心中,有些事兒注定無人知曉,自己也無從說起。


via: http://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux

Copyright © Linux教程網 All Rights Reserved