ubuntu安装chrome-stable教程,解决chrome浏览器打不开问题

安装chrome稳定版教程

本人在Ubuntu14.04下安装chrome-stable版本时遇到了很多问题,现特写下如下教程留作纪念,同时为大家提供力所能及的指导。

1.卸载之前安装的chrome(可选择)

sudo apt-get auotremove google-chrome-stable

2.安装 Google Chrome

2.1 将下载源加入到系统的源列表

sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/ 

2.2 导入谷歌软件的公钥,用于下面步骤中对下载软件进行验证,

 wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -

2.3

sudo apt-get update
 这时报错,N: 忽略‘google-chrome.list.1’(于目录‘/etc/apt/sources.list.d/’),鉴于它的文件扩展名无效

百度贴吧一个回答

    sudo gedit /etc/apt/sources.list.d/google-chrome.list.1(复制下载源)
    sudo gedit /etc/apt/sources.list.d/google-chrome.list (清空后粘进去)
    sudo rm -f /etc/apt/sources.list.d/google-chrome.list.1

2.4

 sudo apt-get install google-chrome-stable

这时报错[0807/144244.712736:FATAL:nss_util.cc(627)] NSS_VersionCheck(“3.26”) failed. NSS >= 3.26 is required Please upgrade to the latest NSS, and if you still get this error, contact your distribution maintainer.
原因说NSS版本过低, Chrome 升级导致.
解决办法:

sudo apt-get update
sudo apt-get install libnss3

接下来要利用vi编辑器修改,vi编辑器按i进入插入模式,按Esc退出插入模式,按”:q!”不保存退出,按“:wq”存盘退出

sudo vi /etc/apt/sources.list
按 i 进入插入编辑模式
手动添加  deb http://security.ubuntu.com/ubuntu precise-security main 
按 Esc 退出插入模式
按  “ :wq ”保存退出
sudo apt-get update
sudo apt-get -f install
/usr/bin/google-chrome-stable

最后搞定!

参考简书链接

猜你喜欢

转载自blog.csdn.net/yanrong1095/article/details/79478212