添加PPA
從Google Linux Repository(http://www.google.com/linuxrepositories/)下載安裝Key,或把下面的代碼復(fù)制進終端,回車,需要管理員密碼
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
Key安裝好后,在終端輸入:
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
更新
在終端輸入:
sudo apt-get update
安裝
安裝穩(wěn)定版Chrome,在終端輸入:
sudo apt-get install google-chrome-stable
安裝Beta版Chrome,在終端輸入:
sudo apt-get install google-chrome-beta
安裝不穩(wěn)定版Chrome,在終端輸入:
sudo apt-get install google-chrome-unstable
上面的方法裝成功了第一次,后面再裝好像被封了,唉!
又在網(wǎng)上搜索,下面方法可行:
32 bit :
sudo dpkg -i google-chrome-stable_current_i386.deb
64 bit :
sudo dpkg -i google-chrome-stable_current_amd64.deb
錯誤解決
下面這個報錯
dpkg: dependency problems prevent configuration of google-chrome-stable:
google-chrome-stable depends on libnss3-1d (>= 3.12.3); however:
Package libnss3-1d is not installed.
google-chrome-stable depends on libxss1; however:
Package libxss1 is not installed.
dpkg: error processing google-chrome-stable (--install):
dependency problems - leaving unconfigured
主要是依賴項沒有安裝全,用命令安裝下面3個包,具體哪個包要看linux發(fā)行版本
sudo apt-get install libnss3-1d libxss1 libcurl3
開控制臺轉(zhuǎn)到chrome.deb包的目錄
用命令安裝
sudo dpkg -i google-chrome-stable_current_i386.deb