和其他軟件一樣,比較常用的安裝方法。
1.下載deb包
對於谷歌Chrome32位版本,使用如下鏈接:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
對於64位版本可以使用如下鏈接下載:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
或者直接從百度自行搜索,但是要和你的Ubuntu版本對應(32位還是64位)
2.安裝deb包
sudo dpkg -i google-chrome-stable_current_amd64.deb
3.要是依賴出現問題(修復依賴關系)
sudo apt-get -f install
但是可能會出現問題,我安裝的時候遇到的問題:

FATAL:nss_util.cc(632)] 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 (Network Security Services )
https://en.wikipedia.org/wiki/Network_Security_Services
的版本太低,錯誤原因可能是由於chrome升級造成的。
解決方法
方法一:chrome 版本降低(沒有嘗試,看別的博客有提到)
-
卸載目前的chrome
-
https://www.slimjet.com/chrome/google-chrome-old-version.php 下載相應的chrome舊版本安裝。
方法二:NSS升級
運行命令
sudo apt install --reinstall libnss3
