Ubuntu16.04上安裝google chrome

1.將下載源加入系統源列表

sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/

2.導入谷歌軟件公鑰

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

3.更新源

sudo apt-get update

4.安裝chrome

sudo apt-get install google-chrome-stable


注意: 
1.添加源時,如果返回“地址解析錯誤”等信息,可以百度搜索其他提供 Chrome 下載的源,用其地址替換掉命令中的地址。 
2.更新源時,如果報錯,參考下面:

  1. 解決方法:

  2. 1>sudo vim /etc/apt/sources.list.d/google-chrome.list 打開文件

  3.  
  4. 2>刪除文件中的所有字符

  5. 3>寫入內容:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

  6. 4>sudo apt-get update

參考鏈接: http://www.linuxidc.com/Linux/2016-05/131096.htm http://www.infocool.net/kb/Other/201611/229642.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章