用心打造
VPS知识分享网站

如何在Debian 13 “Trixie”上安装Google Chrome?最新教程来了!

Google Chrome 是全球最受欢迎的浏览器。尽管 Linux 用户有众多选择,但许多人仍然偏爱 Chrome,因为它是业界的首选。

在本教程中,小编将指导大家通过两种简单的方法在 Debian 13 “Trixie” 上安装并运行 Chrome。第一种方法很简单:直接从 Google 下载软件包并安装。第二种方法略有不同——您需要将 Google Chrome 官方仓库添加到您的系统中,然后从那里安装。

无论你选择哪种方式,只需几分钟即可在 Debian 13 系统上安装 Chrome。让我们开始吧。

使用 DEB 文件在 Debian 13 上安装 Google Chrome

这种方法适合新的 Linux 用户,因为它涉及最少的命令行工作。

点击此处 或复制粘贴以下地址到浏览器, 访问 Google Chrome 下载页面 : https://www.google.com/chrome/。然后点击“下载 Chrome ”按钮。

下载 Google Chrome Linux 安装包。

下载 Google Chrome Linux 安装包。

选择“ 64 位 .deb(适用于 Debian/Ubuntu) ”选项,它会提供一个可立即安装的 DEB 软件包——这是 Debian 软件的标准格式。然后点击“接受并安装”进行确认。

下载适用于 Debian 的 Google Chrome Linux 安装包。

下载适用于 Debian 的 Google Chrome Linux 安装包。

一个名为“ google-chrome-stable_current_amd64.deb ”的文件将被下载。剩下唯一要做的就是安装它。只需打开终端并运行以下APT 命令,确保包含该文件的完整路径。

sudo apt install ./Downloads/google-chrome-stable_current_amd64.deb代码语言: Bash  bash 

从 DEB 文件在 Debian 13 上安装 Google Chrome。

从 DEB 文件在 Debian 13 上安装 Google Chrome。

就这样。您可以从桌面环境的应用程序菜单启动 Chrome,开始使用它。

启动 Google Chrome 浏览器。

启动 Google Chrome 浏览器。

首次启动 Chrome 时,系统会提示您将其设置为默认浏览器。您还可以选择“自动向 Google 发送使用情况统计信息和崩溃报告”。是否启用此功能由您自行决定。

Google Chrome 初始设置。

Google Chrome 初始设置。

Google Chrome 浏览器即将启动。尽情体验吧!

在 Debian 13“Trixie”上运行的 Google Chrome 浏览器。

在 Debian 13“Trixie”上运行的 Google Chrome 浏览器。

最后,需要注意的是,从 DEB 软件包安装 Google Chrome 还会将 Google 官方浏览器存储库(“ /etc/apt/sources.list.d/google-chrome.list ”)添加到您的 Debian 13 系统中。这可确保 Chrome 通过标准系统更新流程自动接收更新。

通过命令行在 Debian 13 上安装 Google Chrome

在 Debian 13 上安装 Chrome 的第二种方法完全基于命令行。

第1步:导入 Google 的签名密钥

首先,将 Google 签名的密钥导入您的 Trixie 系统,以确保我们从此 repo 安装的软件的真实性。

sudo wget -q -O /etc/apt/keyrings/linux_signing_key.pub https://dl-ssl.google.com/linux/linux_signing_key.pub代码语言: JavaScript  javascript 

导入 Google 的签名密钥。

导入 Google 的签名密钥。

请注意,该命令没有产生任何输出。

第2步:添加官方 Google Chrome 存储库

然后,将官方 Google Chrome 存储库添加到您的 Debian 13 系统。这意味着,如果有新版本发布,更新包将与系统的其他常规更新一起提供。

下面的命令创建现在首选的 deb822 样式的 repo 定义文件,而不是旧的“每个 repo 一行”样式格式。

sudo tee /etc/apt/sources.list.d/google-chrome.sources > /dev/null <<'EOF'
Types: deb
URIs: http://dl.google.com/linux/chrome/deb/
Suites: stable
Components: main
Architectures: amd64
Signed-By: /etc/apt/keyrings/linux_signing_key.pub
EOF代码语言: Bash  bash 

第3步:刷新包库

在 Trixie 系统上安装 Chrome 之前,我们应该刷新可用软件包列表。运行以下命令来更新 APT 存储库索引。

sudo apt update代码语言: Bash  bash 
更新可用包的列表。

如您所见,我们的新 Google Chrome 存储库现已可用并可供使用。

第4步:在 Debian 13 “Trixie” 上安装 Google Chrome

我们已准备好在 Debian 13 系统上安装最新版本的 Google 浏览器。运行以下命令:

sudo apt install google-chrome-stable代码语言: Bash  bash 

在 Debian 13“Trixie”上安装 Google Chrome。

在 Debian 13“Trixie”上安装 Google Chrome。

等待安装完成。一切就绪。运行 Chrome,尽情享受吧。

在 Debian 13“Trixie”上运行的 Google Chrome 浏览器。

在 Debian 13“Trixie”上运行的 Google Chrome 浏览器。

需要注意的是,当你以这种方式安装 Chrome 时,它​​会自动将名为“ google-chrome.list ”的仓库文件添加到“ /etc/apt/sources.list.d/ ”目录中。由于我们之前已经手动设置了 Google 仓库,所以不需要这个额外的文件,所以完全可以删除它。

sudo rm /etc/apt/sources.list.d/google-chrome.list代码语言: Bash  bash 

如果您跳过此步骤,下次刷新包数据库时,APT 将发出一系列有关重复存储库配置的警告。

卸载 Google Chrome

如果您出于任何原因想要从 Debian 13 系统中卸载 Google 浏览器,您可以通过运行以下命令轻松完成。

sudo apt remove google-chrome-stable代码语言: Bash  bash 
赞(0)
未经允许不得转载;国外VPS测评网 » 如何在Debian 13 “Trixie”上安装Google Chrome?最新教程来了!
分享到