雷达智富

首页 > 内容 > 程序笔记 > 正文

程序笔记

如何在 Ubuntu 24.04 上安装 Google Chrome

2024-07-02 59

Google Chrome 在 Linux、Windows 和 macOS 用户可用的最佳网络浏览器列表中名列前茅。 Chrome 网络浏览器的设计宗旨是安全、稳定且高度可定制。您可以在 Google Chrome 上安装数百个插件来扩展其功能和可用性。 Chrome 简单、极简的用户界面使其适合各种用户。据报道,Chrome 浏览器在网络浏览器市场占据主导地位,份额超过 60%,这是一个多么可观的数字!如果您需要个性化的 UI 体验,Chrome 有大量可以调整的扩展程序、主题和设置。

在这篇文章中,我们将在 Ubuntu 24.04 (Noble Numbat) 上安装 Google Chrome。这是假设您运行的是桌面版 Ubuntu Linux。登录到您的 Ubuntu Linux 桌面并更新操作系统软件包列表。

sudo apt update

接下来导入 Google 包签名密钥。

curl -fsSL https://dl.google.com/linux/linux_signing_key.pub| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/google.gpg

使用以下命令在 Ubuntu 系统中添加 Google Chrome 存储库:

sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

更新可用软件包列表以包含新添加的 Google Chrome 存储库:

$ sudo apt update
Hit:1 http://ke.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://ke.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://ke.archive.ubuntu.com/ubuntu noble-backports InRelease
Get:4 http://dl.google.com/linux/chrome/deb stable InRelease [1,825 B]
Hit:5 http://security.ubuntu.com/ubuntu noble-security InRelease
Get:6 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,077 B]
Fetched 2,902 B in 1s (3,713 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
...

最后,使用以下命令安装 Google Chrome:

sudo apt install google-chrome-stable

安装期间的预期输出。

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  google-chrome-stable
0 upgraded, 1 newly installed, 0 to remove and 588 not upgraded.
Need to get 107 MB of archives.
After this operation, 343 MB of additional disk space will be used.
Get:1 http://dl.google.com/linux/chrome/deb stable/main amd64 google-chrome-stable amd64 124.0.6367.60-1 [107 MB]
Fetched 107 MB in 44s (2,408 kB/s)
Selecting previously unselected package google-chrome-stable.
(Reading database ... 152693 files and directories currently installed.)
Preparing to unpack .../google-chrome-stable_124.0.6367.60-1_amd64.deb ...
Unpacking google-chrome-stable (124.0.6367.60-1) ...
Setting up google-chrome-stable (124.0.6367.60-1) ...
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for man-db (2.12.0-4build1) ...
Processing triggers for desktop-file-utils (0.27-2build1) ...

从终端或桌面启动器启动 Google Chrome。

google-chrome

从桌面:

创建新的密钥环并为其设置密码。

您可以选择同意将 Chrome 设置为您的默认浏览器。

就这样!... Google 的 Chrome 浏览器任您享用。

如果您大量使用 Google 服务(例如 Google 云端硬盘、Gmail、Google 搜索、Google Pay 和 Google Assistant),那么 Chrome 显然是赢家。您可以在 Windows、macOS、Linux、iOS 和 Android 上安装 Chrome,并使用同一 Gmail 帐户跨设备同步所有数据,例如密码、书签、浏览历史记录

您可以探索:

  • 免费的谷歌扩展
  • 谷歌主题

更新于:2个月前
赞一波!3

文章评论

全部评论