Ubuntu 安装chrome浏览器
目录
方式1
方式2
方法1:apt安装
1. 将下载源加入到系统的源列表。
sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
如果失败,可以把google-chrome.list放在/etc/apt/sources.list.d/目录下
### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost. deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
2. 导入谷歌软件的公钥,用于下面步骤中对下载软件进行验证。命令完成的标识是输出OK
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
error log:
gpg: no valid OpenPGP data found.
solution: 第2步中有“|”,把前面和后面分开不同执行
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub sudo apt-key add linux_signing_key.pub
又 error log:
ERROR: cannot verify dl.google.com's certificate, issued by ‘CN=GTS CA 1C3,O=Google Trust Services LLC,C=US’: Issued certificate not yet valid. To connect to dl.google.com insecurely, use `--no-check-certificate'.
solution:
wget --no-check-certificate https://dl.google.com/linux/linux_signing_key.pub sudo apt-key add linux_signing_key.pub
3. 对当前系统的可用更新列表进行更新
sudo apt-get update
4. 谷歌 Chrome 浏览器(稳定版)的安装
sudo apt-get install google-chrome-stable
5. 启动谷歌 Chrome 浏览器
/usr/bin/google-chrome-stable
方式2
1. wget下载最新的Google Chrome.deb软件包
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
2. 安装Google Chrome
sudo apt-get install ./google-chrome-stable_current_amd64.deb
3. 启动chrome浏览器
再“Show Applications”中搜索“google chrome”