如何在Ubuntu中更新Google chrome?


Answers:


83

首先从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。


4
谢谢。killall google-chrome也很好用。
Fedir RYKHTIK 2013年

1
google-chrome-stable is in the latest version available。但是我使用的是Chrome 30.0.1599.101,显然现在存在版本32。debian软件包也定期更新吗?
Augustin Riedinger 2014年

不,Debian软件包不会定期更新。这取决于您的Ubuntu版本。
ho。

1
有一种更简单的重启Chrome的方法。只需打开此链接-chrome:// restart。来源-plus.google.com/+FrancoisBeaufort/posts/VVv36sA79Mu
Ilia Barahovski

@IliaBarahovski ..是的。您可以。但是我更喜欢bash line方法,这是unix的生活方式:)
ghosh'。

16

Chrome EULA页面中

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

3

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.


2

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


1

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.

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.