在Kali上安装Chrome时,遇到一些问题,在此记录一下,也希望能帮到遇到同样问题的人。
$[timeformat('2019-04-21T11:55:44+08:00')]
#Linux

下载安装包并安装

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

如果出现以下类似依赖问题:

1

尝试安装依赖并再次安装:

apt-get -f install
dpkg -i google-chrome-stable_current_amd64.deb

运行

Kali默认使用root用户,而Chrome默认以普通用户运行,所以需修改Chrome为root用户运行。

#编辑google-chrome文件:
vim /opt/google/chrome/google-chrome
#在exec -a "$0" "$HERE/chrome" "$@"后添加参数:
exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox

这样terminal键入google-chrome即可运行Chrome。


评论