kali linux安装chrome浏览器

1.下载chrome浏览器

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

2. 安装通过dpkg

dpkg -i google-chrome-stable_current_amd64.deb

3.安装时可能会出现包依赖问题,依赖哪个包就安装哪个包。我遇到的是依赖libappindicator3-1.

apt-get install libappindicator3-1

4.第三步安装时又依赖libappindicator3-7,于是用apt –fix-broken install修复

5.修复完后再来重复步骤2即成功安装

6.安装完后chrome会遇到打不开的问题,需要执行nano /usr/bin/X11/google-chrome

在最后一行exec文末添加–user-data-dir –no-sandbox保存后即可打开chrome。

无法打开浏览器解决方法:

用文件资源管理器按照这个路径打开  /usr/share/applications/  如图所示,找到 google chrome 图标,鼠标右键打开属性,在命令哪行 /usr/bin/google-chrome-stable %U 的后面再加上这个语句 

– -no-sandbox – -user-data-dir &,(–no-sandbox -usr-data-dir &)注意不要少空格、不要少空格、不要少空格,重要的事情说三遍。但也不要多加空格,每次的空格只有一个。加好之后,关闭这个这个标签,谷歌浏览器就可以打开使用了。

***或使用shell脚本命令完成 sed -i ‘108c Exec=\/usr\/bin\/google-chrome-stable %U- -no-sandbox’ /usr/share/applications/google-chrome.desktop

***如果发现原来的kali开始启动栏中的默认浏览器无法打开错误,则打开/usr/share/applications/ 然后右键属性启动命令复制到开始栏中的浏览器右键打开添加快捷命令/usr/lib/firefox-esr/firefox-esr %u 搞定

未经允许不得转载:萌萌guo angline - Apprentissage » kali linux安装chrome浏览器

赞 (1) 打赏

评论 0

Protected with IP Blacklist CloudIP Blacklist Cloud

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏