本文记录 Ubuntu 下安装 Chrome 的方法.
1. 安装 Chrome 的两种方式
1.1 通过 apt install 安装
1.进入 Ubuntu 16.04 桌面,按下 Ctrl + Alt + t 键盘组合键,启动终端。
2.在终端中,输入以下命令:
sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/
将下载源加入到系统的源列表
3.在终端中,输入以下命令:
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
导入谷歌软件的公钥,用于下面步骤中对下载软件进行验证
4.在终端中,输入以下命令:
sudo apt-get update
可能会报错:
Reading package lists... Done W: GPG error: https://repo.fdzh.org/chrome/deb stable Release: The following signatures were invalid: >KEYEXPIRED 1555048520 KEYEXPIRED 1579833932 KEYEXPIRED 1555048520 KEYEXPIRED >1555048520 KEYEXPIRED 1579833932 KEYEXPIRED 1555048520 KEYEXPIRED 1579833932 W: The repository 'https://repo.fdzh.org/chrome/deb stable Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.
签名未验证,不影响后续安装.
安装完成后,可按 Q&A 3. 解决方法处理.
5.在终端中,输入以下命令:
sudo apt-get install google-chrome-stable
执行对谷歌 Chrome 浏览器(稳定版)的安装.
至此,安装完成.
1.2 通过下载 deb 包安装
1.下载 chrome 的 deb 包:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
2.安装 chrome 的 deb 包:
sudo dpkg -i google-chrome-stable_current_amd64.deb
安装可以成功进行,但会报依赖错误.
... ... dpkg: dependency problems prevent configuration of google-chrome-stable: google-chrome-stable depends on libnss3 (>= 2:3.22); however: Version of libnss3:amd64 on system is 2:3.21-1ubuntu4. ... ... dpkg: error processing package google-chrome-stable (--install): dependency problems - leaving unconfigured ... ... Errors were encountered while processing: google-chrome-stable
进行依赖修复即可
3.修复依赖关系
sudo apt-get install -f
至此,安装完成.
2. 使用 Chrome
1.在启动栏搜索框搜索‘chrome’,出图标,点击打开.
2.自行选择选项,然后点击 OK.
3.右键点击启动栏上的 Chrome 图标,选择 ‘Lock to Launcher’,以后便可直接在启动栏打开 Chrome.