Answers:
首先从Google Linux存储库下载并安装密钥。或在终端中运行以下命令,在出现提示时键入用户密码。
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
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
安装:
sudo apt-get install google-chrome-beta
仅更新:
sudo apt-get --only-upgrade install google-chrome-stable
然后更新(如果有)网络安全服务库(libnss),否则Chrome会表现得很奇怪
sudo apt-get install libnss3-1d
在Ubuntu 18.04或更高版本中,libnss3-1d-网络安全服务库-过渡包已弃用,并包含在通用libnss3库中。(感谢Bishoy Melek)
sudo apt-get install libnss3
现在,您必须杀死旧版Google Chrome的所有实例(可能是隐藏的)。
sudo pkill -15 google-chrome
sudo pkill -15 chrome
然后在启动时启动google-chrome。
killall google-chrome
也很好用。
google-chrome-stable is in the latest version available
。但是我使用的是Chrome 30.0.1599.101,显然现在存在版本32。debian软件包也定期更新吗?
Note: Installing Google Chrome will add the Google repository so your system will automatically keep Google Chrome up to date. If you don't want Google's repository, do "sudo touch /etc/default/google-chrome" before installing the package.
[emphasis theirs]
So, as mgpyone indicated Ubuntu's update-manager
should take care of that for you.
Here are the contents of my /etc/apt/sources.list.d/google-chrome.list
deb http://dl.google.com/linux/deb/ stable main
From Google Chrome Help
Use your package manager to check for updates.
Privacy information
Google Chrome uses a process called Google Update to periodically check for updates. This process sends information, such as version number, language, operating system, and other installation or update-related details, back to Google servers. This information is not associated with you or your Google Account.
If it does not update properly, just download the last .deb
file from:
https://www.google.com/chrome/browser/desktop/
The deb file like google-chrome-stable_current_amd64.deb
Then you can:
sudo dpkg -i /path/to/google-chrome-stable_current_amd64.deb
Replace /path/to
with your proper path.
It just worked for me on Ubuntu 14.04
I had similar problem with broken package in Chrome 20.0.xxx. I could see two chrome packages in Synaptic package manager. I deleted the new version of chrome package then marked older version on chrome package for upgrade. Then upgrade all packages through, which took care of everything and my Chrome was upgraded to the latest version.