如何在 Ubuntu Linux 上更新谷歌 Chrome
Chrome
![](/data/attachment/album/202210/22/085013gihsi4rtmpkmj4yb.png)



> 
> 你设法在你的 Ubuntu 系统上安装了谷歌 Chrome 浏览器。现在你想知道如何让浏览器保持更新。
> 
> 
> 


在 Windows 和 macOS 上，当 Chrome 上有可用更新时，你会在浏览器中收到通知，你可以从浏览器中点击更新选项。


Linux 中的情况有所不同。你不会从浏览器更新 Chrome。你要使用系统更新对其进行更新。


是的。当 Chrome 上有可用的新更新时，Ubuntu 会通过系统更新工具通知你。


![当有新版本的 Chrome 可用时，Ubuntu 会发送通知](/data/attachment/album/202210/22/084900dkrurnz4wrr9wwwk.png)


你只需单击“<ruby> 立即安装 <rt>  Install Now </rt></ruby>”按钮，在被提示时输入你的帐户密码并将 Chrome 更新到新版本。


让我告诉你为什么会在系统级别看到更新，以及如何在命令行中更新谷歌 Chrome。


### 方法 1：使用系统更新更新谷歌浏览器


你最初是如何安装 Chrome 的？你从 [Chrome 网站](https://www.google.com/chrome/) 获得了 deb 安装程序文件，并使用它来 [在 Ubuntu 上安装 Chrome](https://itsfoss.com/install-chrome-ubuntu/)。


当你这样做时，谷歌会在你系统的源列表中添加一个仓库条目。这样，你的系统就会信任来自谷歌仓库的包。


![谷歌 Chrome 存储库添加到 Ubuntu 系统](/data/attachment/album/202210/22/084901ew433zpsuyple1gx.png)


对于添加到系统中的所有此类条目，包更新通过 Ubuntu 更新程序集中进行。


这就是为什么当 Google Chrome（和其他已安装的应用）有可用更新时，你的 Ubuntu 系统会向你发送通知。


![Chrome 更新可通过系统更新与其他应用一起使用](/data/attachment/album/202210/22/084900dkrurnz4wrr9wwwk.png)


**单击“<ruby> 立即安装 <rt>  Install Now </rt></ruby>”按钮并在要求时输入你的密码**。很快，系统将安装所有可升级的软件包。


根据更新偏好，通知可能不是立即的。如果需要，你可以手动运行更新程序工具并查看适用于你的 Ubuntu 系统的更新。


![运行软件更新程序以查看你的系统有哪些可用更新](/data/attachment/album/202210/22/084901mcbrpbwbep7qbbkq.jpg)


### 方法 2：在 Ubuntu 命令行中更新 Chrome


如果你更喜欢终端而不是图形界面，你也可以使用命令更新 Chrome。


打开终端，并依次运行以下命令：



```
sudo apt update

sudo apt --only-upgrade install google-chrome-stable

```

第一条命令更新包缓存，以便你的系统知道可以升级哪些包。


第二条命令 [仅更新单个包](https://itsfoss.com/apt-upgrade-single-package/)，即谷歌 Chrome（安装为 `google-chrome-stable`）。


### 总结


如你所见，Ubuntu 比 Windows 更精简。你会随其他系统更新一起更新 Chrome。


顺便一提，如果你对它不满意，你可以了解 [从 Ubuntu 中删除 Google Chrome](https://itsfoss.com/uninstall-chrome-from-ubuntu/)。


Chrome 是一款不错的浏览器。你可以通过 [使用 Chrome 中的快捷方式](https://itsfoss.com/google-chrome-shortcuts/) 来试验它，因为它使浏览体验更加流畅。


在 Ubuntu 上享受 Chrome！




---


via: <https://itsfoss.com/update-google-chrome-ubuntu/>


作者：[Abhishek Prakash](https://itsfoss.com/) 选题：[lkxed](https://github.com/lkxed) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

So, you managed to [install Google Chrome browser on your Ubuntu system](https://itsfoss.com/install-chrome-ubuntu/). And now you wonder how to keep the browser updated.

On Windows and macOS, when there is an update available on Chrome, you are notified in the browser itself and you can hit the update option from the browser.

Things are different in Linux. You don’t update Chrome from the browser. You update it with the system updates.

Yes. When a new update is available on Chrome, Ubuntu notifies you via the system updater tool.

![chrome edge update ubuntu](https://itsfoss.com/content/images/wordpress/2021/06/chrome-edge-update-ubuntu.png)

You just have to click on the **Install Now** button, enter your account’s password when asked for it and have Chrome updated to a new version.

Let me tell you why you see the updates on the system level and how you can update Google Chrome in the command line.

## Method 1: Updating Google Chrome with system updates

How did you install Chrome in the first place? You got the deb installer file from the [Chrome website](https://www.google.com/chrome/?ref=itsfoss.com) and used it to [install Chrome on Ubuntu](https://itsfoss.com/install-chrome-ubuntu/).

The thing is that when you do that, Google adds a repository entry into your system’s sources list. This way, your system trusts the packages coming from the Google repository.

![google chrome repo ubuntu](https://itsfoss.com/content/images/wordpress/2021/06/google-chrome-repo-ubuntu.png)

The package updates are centralized through the Ubuntu Updater for all such entries added to your system.

And this is why when an update is available to Google Chrome (and other installed applications), your Ubuntu system sends you a notification.

![chrome edge update ubuntu](https://itsfoss.com/content/images/wordpress/2021/06/chrome-edge-update-ubuntu.png)

**Click the “Install Now” button and enter your password when asked for it**. Soon, the system will install all the upgradeable packages.

Depending on the update preference, the notification may not be immediate. You can manually run the updater tool and see what updates are available for your Ubuntu system.

![software updater ubuntu 22 04](https://itsfoss.com/content/images/wordpress/2022/04/software-updater-ubuntu-22-04.jpg)

## Method 2: Updating Chrome in the Ubuntu command line

If you prefer the terminal over the graphical interface, you can also update Chrome with commands.

Open a terminal and run the following commands one by one:

```
sudo apt update
sudo apt --only-upgrade install google-chrome-stable
```


The first command updates the package cache so that your system is aware of what packages can be upgraded.

The second command [only updates the single package](https://itsfoss.com/apt-upgrade-single-package/) which is Google Chrome (installed as google-chrome-stable).

## Conclusion

As you can see, things are more streamlined in Ubuntu than in Windows. You get Chrome updated along with other system updates.

On a related note, you may learn about [removing google Chrome from Ubuntu](https://itsfoss.com/uninstall-chrome-from-ubuntu/) if you are unhappy with it.

[How to Completely Uninstall Google Chrome From UbuntuSo, you managed to install Google Chrome on Ubuntu. It is the most popular web browser in the world, after all. But perhaps you dislike Google products for the heavy tracking and data mining they employ on its users. You decided to opt for other web browsers on Ubuntu, perhaps](https://itsfoss.com/uninstall-chrome-from-ubuntu/)![](https://itsfoss.com/content/images/wordpress/2021/09/removing-google-chrome-ubuntu.png)


![](https://itsfoss.com/content/images/wordpress/2021/09/removing-google-chrome-ubuntu.png)

Chrome is a fine browser. You can experiment with it by [using shortcuts in Chrome](https://itsfoss.com/google-chrome-shortcuts/) as it makes the browsing experience even smoother.

[11 Essential Keyboard Shortcuts for Google ChromeMaster these Google Chrome keyboard shortcuts for a better, smoother and more productive web browsing experience. A downloadable cheatsheet is also included.](https://itsfoss.com/google-chrome-shortcuts/)![](https://itsfoss.com/content/images/wordpress/2019/08/Chrome-Keyboard-Shortcuts.png)


![](https://itsfoss.com/content/images/wordpress/2019/08/Chrome-Keyboard-Shortcuts.png)

Enjoy Chrome on Ubuntu!