📌  相关文章
📜  如何在 ubuntu 20.04 中更新 google chrome - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:52:35.730000             🧑  作者: Mango

如何在 Ubuntu 20.04 中更新 Google Chrome

Google Chrome 是一款常用的网页浏览器,本文将介绍如何在 Ubuntu 20.04 中更新 Google Chrome。

方法一:使用 apt 命令

首先,我们可以使用 apt 命令来更新 Google Chrome。请按照以下步骤进行操作:

  1. 打开终端:在菜单中搜索 "终端" 并打开。

  2. 使用以下命令将系统的软件包索引更新为最新:

sudo apt update
  1. 更新 Google Chrome:
sudo apt upgrade google-chrome-stable
  1. 系统将提示您确认更新,按下 Y 确认即可。

  2. 更新完成后,您的 Google Chrome 将是最新版本。

方法二:使用 Google Chrome 官方源

另一种更新 Google Chrome 的方法是使用 Google Chrome 官方源。请按照以下步骤进行操作:

  1. 打开终端:在菜单中搜索 "终端" 并打开。

  2. 添加 Google Chrome 官方源的密钥:

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
  1. 添加 Google Chrome 官方源到软件源列表:
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
  1. 更新系统的软件包索引为最新:
sudo apt update
  1. 更新或安装 Google Chrome:
sudo apt install google-chrome-stable
  1. 系统将提示您确认更新,按下 Y 确认即可。

  2. 更新完成后,您的 Google Chrome 将是最新版本。

以上就是在 Ubuntu 20.04 中更新 Google Chrome 的两种方法。您可以根据自己的喜好选择其中一种来完成更新。