美文网首页
ubuntu安装谷歌浏览器

ubuntu安装谷歌浏览器

作者: louduanxiong | 来源:发表于2017-12-30 09:14 被阅读27次

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

期间可能报错,如下:

E: Problem executing scripts APT::Update::Post-Invoke-Success'if/usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli;thenappstreamcli refresh > /dev/null; fi'

E: Sub-process returned an error code

解决办法

sudo pkill -KILL appstreamcli

wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb

sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb

执行完上述命令之后再次运行sudo apt-get update就不会再出现上面的错误

5、谷歌浏览器的安装。在终端中输入以下命令:

sudo apt-get install google-chrome-stable

6、启动浏览器。此时再次点击左上角的dash,输入google将会看到刚刚安装 好的谷歌浏览器,点击即可启动。

或者在终端中执行以下命令:

/usr/bin/google-chrome-stable

将会直接启动谷歌浏览器。

期间可能报错,报错如下:

NSS_VersionCheck("3.26") failed. NSS >=3.26isrequiredPlease upgradetothelatest NSS,andifyou stillgetthiserror,contact your distribution maintainer.

原因是说 NSS (Network Security Services )

解决方案:

sudo apt install --reinstall libnss3

相关文章

网友评论

      本文标题:ubuntu安装谷歌浏览器

      本文链接:https://www.haomeiwen.com/subject/gyrggxtx.html