如何在Kali Linux中安装Google Chrome浏览器

介绍

目的

我们的目标就是在 Kali Linux 上安装好 Google Chrome Web 浏览器。同时,请参阅附录为可能出现的问题进行排查。

要求

需要获得已安装 Kali Linux 或者 Live 系统的特权。

困难程度

容易。

惯例

  • # - 给定命令需要以 root 用户权限运行或者使用 sudo 命令
  • $ - 给定命令以常规权限用户运行

步骤说明

下载 Google Chrome

首先,使用 wget 命令来下载最新版本的 Google Chrome 的 debian 安装包。

 
  
  1. # wget https://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 —— 生活中所有欢乐与苦闷都应藏在心中,有些事儿注定无人知晓,自己也无从说起。





作者:Lubos Rendek
来源:51CTO
  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值