kali linux安装chrome浏览器-泓源视野

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 搞定

kali linux安装chrome浏览器插图

本文由 泓源视野 作者:admin 发表,其版权均为 泓源视野 所有,文章内容系作者个人观点,不代表 泓源视野 对观点赞同或支持。如需转载,请注明文章来源。
29
admin

发表评论

Protected with IP Blacklist CloudIP Blacklist Cloud
您是第8234244 位访客, 您的IP是:[3.136.154.103]