2017-02-10 20:31:05 +08:00
|
|
|
|
如何在 Kali Linux 中安装 Google Chrome 浏览器
|
|
|
|
|
====================
|
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
### 介绍
|
|
|
|
|
|
|
|
|
|
**目的**
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
|
|
|
|
我们的目标就是在 Kali Linux 上安装好 Google Chrome Web 浏览器。同时,请参阅附录为可能出现的问题进行排查。
|
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
**要求**
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
|
|
|
|
需要获得已安装 Kali Linux 或者 Live 系统的特权。
|
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
**困难程度**
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
|
|
|
|
容易。
|
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
**惯例**
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
- `#` - 给定命令需要以 root 用户权限运行或者使用 `sudo` 命令
|
|
|
|
|
- `$` - 给定命令以常规权限用户运行
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
### 步骤说明
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
**下载 Google Chrome**
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
|
|
|
|
首先,使用 `wget` 命令来下载最新版本的 Google Chrome 的 debian 安装包。
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
|
|
|
```
|
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
**安装 Google Chrome**
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
在 Kali Linux 安装 Google Chrome 最容易的方法就是使用 `gdebi`,它会自动帮你下载所有的依赖包。
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# gdebi google-chrome-stable_current_amd64.deb
|
|
|
|
|
```
|
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
**启动 Google Chrome**
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
开启一个终端(terminal),执行 `google-chrome` 命令来启动 Google Chrome 浏览器。
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$ google-chrome
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 附录
|
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
**非法指令 (Illegal Instruction)**
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
当以 root 用户特权来运行 `google-chrome` 命令是,会出现 非法指令 (Illegal Instruction) 错误信息。因为通常情况下,Kali Linux 默认情况下的默认用户是 root 用户,我们需要创建一个虚的非特权用户,比如 `linuxconfig`,然后使用这个用户来启动 Google Chrome 浏览器。如下:
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# useradd -m -d /home/linuxconfig linuxconfig
|
|
|
|
|
# su linuxconfig -c google-chrome
|
|
|
|
|
```
|
|
|
|
|
|
2017-02-14 23:28:09 +08:00
|
|
|
|
**libappindicator1 包未安装**
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
dpkg: dependency problems prevent configuration of google-chrome-stable:
|
|
|
|
|
google-chrome-stable depends on libappindicator1; however:
|
|
|
|
|
Package libappindicator1 is not installed.
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
使用 `gdebi` 命令来安装 Google Chrome 的 debian 包可以解决依赖问题。参阅上文。
|
|
|
|
|
|
|
|
|
|
![在 Kali Linux 中以普通用户启动 google chrome](https://linuxconfig.org/images/kali-linux-google-chome-browser-start.jpg)
|
|
|
|
|
|
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
|
|
译者简介:
|
|
|
|
|
|
|
|
|
|
[GHLandy](http://GHLandy.com) —— 生活中所有欢乐与苦闷都应藏在心中,有些事儿注定无人知晓,自己也无从说起。
|
|
|
|
|
|
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
|
|
via: https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux
|
|
|
|
|
|
|
|
|
|
作者:[Lubos Rendek][a]
|
|
|
|
|
译者:[GHLandy](https://github.com/GHLandy)
|
2017-02-14 23:28:09 +08:00
|
|
|
|
校对:[wxy](https://github.com/wxy)
|
2017-02-10 20:31:05 +08:00
|
|
|
|
|
|
|
|
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
|
|
|
|
|
|
|
|
|
[a]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux
|
|
|
|
|
[1]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h5-4-1-illegal-instruction
|
|
|
|
|
[2]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h5-4-2-package-libappindicator1-is-not-installed
|
|
|
|
|
[3]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h5-1-download-google-chrome
|
|
|
|
|
[4]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h5-2-install-google-chrome
|
|
|
|
|
[5]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h5-3-start-google-chrome
|
|
|
|
|
[6]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h5-4-appendix
|
|
|
|
|
[7]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h1-objective
|
|
|
|
|
[8]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h2-requirements
|
|
|
|
|
[9]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h3-difficulty
|
|
|
|
|
[10]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h4-conventions
|
|
|
|
|
[11]:https://linuxconfig.org/how-to-install-google-chrome-browser-on-kali-linux#h5-instructions
|