ubuntu 22.4 install chrome -stable
Google Chrome 是 Google 发布的一款用户友好、可靠且安全的跨平台网络浏览器。 Chrome 因其速度快且易于使用而成为最常用的网络浏览器。它有一个广泛的插件和附加商店。这些插件和扩展增强了用户的浏览体验,并添加了其他浏览器所没有的功能。
在本指南中,我们将学习通过两种不同的方法在 Ubuntu 22.04 上安装 Google Chrome。
如何使用终端/控制台界面在 Ubuntu 22.04 上安装 Google Chrome
Chrome Web 浏览器不附带 Ubuntu 22.04 的默认存储库。因此我们必须使用“wget”命令。
启动终端并使用以下命令更新 apt:
执行下面给出的命令来安装 wget(如果尚未安装):
现在您已准备好在系统上安装 Chrome。输入以下命令下载Google Chrome最新稳定包:
现在执行以下命令来安装最近下载的软件包:
Chrome 浏览器已成功安装在您的系统上。要运行 Google Chrome,只需在终端上输入 google-chrome:
如何使用 GUI 在 Ubuntu 22.04 上安装 Google Chrome
如果您更喜欢图形界面而不是 CLI,那么这种安装 Google Chrome 的方法适合您。只需打开您当前的网络浏览器并访问以下 URL:
按“下载”按钮,然后选择所需的 Linux 发行版(本例中为 Ubuntu)。选择“接受并安装”:
现在转到您的默认下载目录并双击下载的 stable-chrome 软件包:
软件中心将打开。单击“安装”按钮:
Google Chrome 已成功安装在您的 Ubuntu 22.04 系统上!
您可以从屏幕左侧的活动菜单运行 Google Chrome:
如何在 Ubuntu 上更新 Google Chrome
您可以运行给定的命令来更新系统上的 Google Chrome。这些命令的组合将自动更新系统上安装的所有软件包。
如何将 Google Chrome 设置为默认浏览器
Ubuntu 的默认浏览器是 Firefox,但可以更改为 Chrome。转到“活动”菜单并搜索“默认应用程序”以打开面板,如屏幕截图所示:
现在从“Web”选项中选择默认的网络浏览器:
如何从 Ubuntu 22.04 卸载 Chrome
您可以使用下面给出的命令从系统中卸载稳定的 Chrome 软件包:
结论
如上所述,Ubuntu 将 Firefox 作为默认浏览器,但可以更改。如果还使用其他 Google 产品,则应选择 Google Chrome。 Google Chrome 提供了一个可以轻松与 Google 产品集成的环境。本文提供了有关如何使用不同方法在 Ubuntu 22.04 (Jammy Jellyfish) 上安装 Google Chrome 的详细信息。
https://cn.linux-console.net/?p=14993
###################################################################################################################################
How to Install Google Chrome on Ubuntu 24.04, 22.04 or 20.04
This guide will cover how to install Google Chrome on Ubuntu 24.04, 22.04, or 20.04 LTS releases, utilizing the command-line terminal and Google’s official APT repository for accessing the latest stable, beta, and dev (unstable) builds.
Google Chrome stands as a powerhouse in the realm of web browsers, renowned for its speed, simplicity, and efficiency. Whether you are a developer, a student, or just someone who enjoys browsing the web, Chrome offers a suite of features tailored to enhance your online experience. To delve into its capabilities:
- Rapid Page Loading: Experience swift and responsive browsing.
- Customization and Extensions: Tailor your browser with themes and extensions.
- Sync Across Devices: Seamlessly access bookmarks, history, and settings across devices.
- Enhanced Security: Benefit from built-in protection against malware and phishing.
- Intuitive User Interface: Enjoy a clean and user-friendly design.
Transitioning into the technical aspects, the installation of Google Chrome on Ubuntu is not just about adding another application to your system. It’s about equipping your workspace with a tool that brings the world to your fingertips, efficiently and securely. The following sections will guide you through a straightforward process to get Google Chrome up and running on your Ubuntu system, leveraging the command-line interface for precision and control.
Table of Contents
- Install Google Chrome on Ubuntu via APT
- Install Google Chrome on Ubuntu via Flatpak and Flathub
- Launching Google Chrome on Ubuntu
- Getting Started with Google Chrome on Ubuntu
- Personalize Google Chrome Experience with Themes and Extensions on Ubuntu
- Enhance Google Chrome Performance with Tab Management on Ubuntu
- Use Google Chrome’s Built-in Task Manager with Ubuntu
- Utilize Google Chrome Flags for Experimental Features on Ubuntu
- Learn Google Chrome Keyboard Shortcuts on Ubuntu
- Configure Google Chrome Privacy and Security Settings with Ubuntu
- Additional Google Chrome Commands with Ubuntu
- Fix Terminal Error: Multiple Google Chrome Source Lists on Ubuntu
- Closing Thoughts
Install Google Chrome on Ubuntu via APT
Update Ubuntu Before Google Chrome Installation
Before we initiate the installation process, ensuring that your Ubuntu system is up to date is critical. This helps prevent potential conflicts during installation, as outdated software can sometimes interfere with new installations.
To update your system, execute the following command in the terminal:
sudo apt update
This command fetches the latest package information from all configured sources. Next, let’s upgrade any outdated packages on your system using the subsequent command:
sudo apt upgrade
This command will upgrade all the software packages with new versions available in the repositories.
Install Initial Packages For Google Chrome
Google Chrome’s installation process is usually straightforward, but you might need specific packages for a smooth and successful setup. Most Linux distributions typically include these standard packages. Nonetheless, verifying their presence doesn’t hurt.
To install these packages, run the following command:
sudo apt install curl software-properties-common apt-transport-https ca-certificates -y
The packages curl, software-properties-common, apt-transport-https, and ca-certificates are included for data transferring, software repositories management, secure package downloads, and standard SSL/TLS certificates, respectively. Running this command will not cause adverse effects if these packages are installed.
Import Google Chrome APT Repository
A crucial step in installing Google Chrome is importing the GPG key for its digital signature. The GPG key is a form of cryptographic identity that ensures the software you’re about to install is authentic, untouched, and issued by the rightful owner.
Import the GPG key using the following command:
curl -fSsL https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/google-chrome.gpg > /dev/null
With the GPG key in place, we’ll now import the Google Chrome repository. This is the official source from where we’ll download the browser. Execute the following command to accomplish this:
echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | sudo tee /etc/apt/sources.list.d/google-chrome.list
Update APT Cache After Google Repository Import
Before we install Google Chrome, let’s update our APT sources lists to include the newly added Google repository. Run the following command to do so:
sudo apt update
Install Google Chrome via APT Command
Next, we’ll install the stable version of Google Chrome. This is the most tested and reliable version, recommended for most users.
To install Google Chrome Stable, execute the following command:
sudo apt install google-chrome-stable
Optional: Install Google Chrome Beta or Unstable Edition
For some users, the stable version of Google Chrome might not be enough. If you want a sneak peek at the upcoming features before they make their way to the stable version, you might want to install the beta version. However, be aware that the beta version may contain bugs as it’s a preview version still under testing.
To install the Google Chrome Beta build, run the following command:
sudo apt install google-chrome-beta
Google offers an unstable version for developers or those who love being on the cutting edge. This version includes the latest features, but they are experimental and may have some bugs or even lead to crashes.
To install the Google Chrome Unstable version, use the following command:
sudo apt install google-chrome-unstable
Note that installing the beta or unstable versions will not replace your stable version since the system installs these versions separately. This approach lets your system have multiple Google Chrome versions to cater to different needs.
Install Google Chrome on Ubuntu via Flatpak and Flathub
Flatpak, an innovative package management system designed for
Linux, ensures application compatibility across various distributions.
It encapsulates applications in isolated environments, reducing
conflicts with system libraries. Meanwhile, Flathub is the central
repository for Flatpak applications, providing a user-friendly platform
with numerous ready-to-deploy applications, and is an excellent
secondary method to install Google Chrome on your Ubuntu system.
Note: If you are unfamiliar with the installation of Flatpak, kindly refer to our comprehensive guide on how to install Flatpak on Ubuntu, which utilizes the official LaunchPAD PPA provided by the Flatpak team.
Enable Flathub For Google Chrome
Before proceeding, activating the Flathub repository on your system is imperative, granting access to its extensive list of applications, including Google Chrome.
To activate the Flathub repository, input the following command in your terminal:
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
This command integrates the Flathub repository into your Flatpak configuration, setting the stage for various application installations.
Install Google Chrome via Flatpak Command
With the Flathub repository in place, you can install Google Chrome. The flatpak install
command is instrumental in this process.
Installing the Stable Version of Google Chrome
For routine usage, the stable version of Google Chrome is advisable. This version promises a consistent and reliable browsing experience backed by thoroughly tested features. To install the stable version, execute the following command:
flatpak install flathub com.google.Chrome -y
Installing the Unstable Version of Google Chrome
Google Chrome provides an Unstable version for those keen on exploring cutting-edge features. While it offers a sneak peek into the latest features, it may be unstable. To install this version, run the command:
flatpak install flathub com.google.ChromeDev
It’s pertinent to note that, as of now, the Flatpak and Flathub systems do not support a beta version of Google Chrome. Thus, users can only opt between the stable and unstable versions when using this installation method.
Launching Google Chrome on Ubuntu
The subsequent step is to initiate its launch upon successfully integrating Google Chrome into your Ubuntu environment. Whether you lean towards the command line or the graphical user interface, Ubuntu offers multiple avenues to activate Google Chrome.
CLI Methods to Launch Google Chrome on Ubuntu
The Command-Line Interface (CLI) is preferred for users comfortable with terminal commands or those managing a server without a graphical interface. Each variation of Google Chrome has a specific command for its activation.
To engage the stable release of Google Chrome, execute the following:
google-chrome
For users keen on probing features still in the testing phase, the beta release of Google Chrome can be activated with:
google-chrome-beta
For enthusiasts eager to explore the most recent, albeit potentially unstable features, the command is:
google-chrome-unstable
The activation commands differ slightly if you’ve integrated Google Chrome through the Flatpak method.
To start the stable iteration of Google Chrome, use:
flatpak run com.google.Chrome
To engage the experimental version, the required command is:
flatpak run com.google.ChromeDev
GUI Method to Launch Google Chrome on Ubuntu
While the command line is a powerful tool, not every Ubuntu user is comfortable with it, and that’s perfectly fine. Ubuntu’s graphical user interface is intuitive and easy to navigate, providing an alternative way to launch Google Chrome.
To open Google Chrome using the GUI, follow these steps:
- Click on ‘Activities’ located at the top-left corner of your screen.
- Next, click ‘Show Applications,’ typically represented by a grid of dots at the screen’s bottom-left corner.
- Finally, look for ‘Google Chrome’ among the list of applications. If you have multiple versions installed, they will be listed as ‘Google Chrome (Stable),’ ‘Google Chrome (Beta),’ and ‘Google Chrome (Unstable).’ Click on the one you wish to launch.
Getting Started with Google Chrome on Ubuntu
Once you have Google Chrome on your Ubuntu system, it’s time to delve deeper and maximize your browsing experience. Whether you’re a seasoned user or new to Chrome, these tips will guide you through customizations, performance tweaks, and other aspects that can enhance your browsing experience on Ubuntu.
Personalize Google Chrome Experience with Themes and Extensions on Ubuntu
Google Chrome is renowned for its flexibility and customization options. You can personalize the look of your browser with a wide variety of themes and extend its functionality with extensions.
To add a theme:
- Open Google Chrome and navigate to the Chrome Web Store.
- Select Themes from the left-hand side panel.
- Choose a theme that suits your aesthetic and click on it.
- Click on the Add to Chrome button.
To add an extension:
- Navigate to the Chrome Web Store.
- Select Extensions from the left-hand side panel.
- Search for the extension you want and click on it.
- Click on the Add to Chrome button.
Enhance Google Chrome Performance with Tab Management on Ubuntu
Chrome is known to be a bit of a memory hog, especially when you have multiple tabs open. To enhance performance, consider using tab management extensions like The Great Suspender, which puts unused tabs to sleep, freeing up resources.
Use Google Chrome’s Built-in Task Manager with Ubuntu
Much like your Ubuntu system has a task manager, so does Google Chrome. It can help see what’s consuming memory or processing power. Access it by clicking the three-dot menu > More tools > Task Manager.
Utilize Google Chrome Flags for Experimental Features on Ubuntu
Google Chrome Flags are experimental features that aren’t ready for prime time. They can enable new functionality, improve performance, or customize your browsing experience. Access them by typing chrome://flags into the address bar. However, use them cautiously as they might affect the browser’s stability.
Learn Google Chrome Keyboard Shortcuts on Ubuntu
Keyboard shortcuts can significantly enhance your browsing speed and efficiency. Here are a few to get you started:
- Ctrl+T: Opens a new tab
- Ctrl+Shift+T: Reopens the last closed tab
- Ctrl+W or Ctrl+F4: Closes the current tab
- Ctrl+Tab: Switches to the next tab
- Ctrl+Shift+Tab: Switches to the previous tab
Configure Google Chrome Privacy and Security Settings with Ubuntu
Google Chrome provides various settings to protect your privacy and keep your browsing secure. You can access these settings by clicking the three-dot menu > Settings > Privacy and Security.
Additional Google Chrome Commands with Ubuntu
As you venture deeper into Ubuntu Linux and Google Chrome, you might need to perform more advanced operations, such as updating or uninstalling Chrome. Let’s walk through these operations step by step.
Update Google Chrome
Google Chrome receives frequent updates to introduce new features, fix bugs, and patch security vulnerabilities. Ensuring your browser is up-to-date is crucial for a smooth and secure browsing experience.
We will utilize Ubuntu’s built-in Advanced Package Tool (APT) to update Google Chrome. First, update the package list on your Ubuntu system by running the following command in your terminal:
sudo apt update
This command fetches the latest package information from all configured sources, including the Google Chrome repository we added earlier.
Following this, you might need to upgrade your system’s packages. You can do this by executing the command:
sudo apt upgrade
This command will upgrade all outdated packages on your system. However, if you wish to specifically update Google Chrome, use the following command:
sudo apt upgrade google-chrome-stable
This command directs APT to only upgrade the google-chrome-stable
package, leaving the rest of your system’s packages untouched.
For Flatpak installations, just run the following command that will blanket check for available updates for all Flatpak installations such as Google Chrome stable or Dev:
flatpak update
Remove Google Chrome
APT Remove Commands of Google Chrome
There might be instances where you need to uninstall Google Chrome from your Ubuntu system. Perhaps you’re troubleshooting an issue or want to switch to a different browser.
The command to remove Google Chrome is as follows:
sudo apt remove google-chrome-stable
If you’ve installed the beta or unstable builds of Google Chrome, you can remove them with the following commands:
sudo apt remove google-chrome-beta
sudo apt remove google-chrome-unstable
Finally, if you wish to remove the Google Chrome repository from your system entirely, use the following command:
sudo rm /etc/apt/sources.list.d/google-chrome.list
This command removes the file that contains the Google Chrome repository information, effectively removing the repository from your system.
Flatpak Remove Commands of Google Chrome
If you’ve opted for the Flatpak route to integrate Google Chrome into your system, the uninstallation procedure varies a bit:
flatpak uninstall com.google.Chrome
For those who ventured with the experimental edition:
flatpak uninstall com.google.ChromeDev
Fix Terminal Error: Multiple Google Chrome Source Lists on Ubuntu
Ubuntu Linux allows for installing all three Google Chrome builds: stable, beta, and unstable. However, it’s crucial to note that each installation creates a new source list file in your /etc/apt/sources.list.d/ directory. This scenario could confuse the APT package manager during updates, as it may encounter multiple source lists for Google Chrome, and some will be ignored.
Do not worry; the solution is straightforward.
Remove Extra Source Lists for Google Chrome
Firstly, you must remove the surplus source lists and retain only the original ones. You can accomplish this by running the following command:
sudo rm /etc/apt/sources.list.d/google*
This command removes all source lists that start with “google” in the /etc/apt/sources.list.d/
directory. If you accidentally delete them all, don’t panic. You can recreate the required source list with the next step.
Re-Add Google Chrome Repository
Now that the surplus source lists have been dealt with, let’s re-add the Google Chrome repository. Use the following command to accomplish this:
echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | sudo tee /etc/apt/sources.list.d/google-chrome.list
This command creates a new source list for the Google Chrome repository in the /etc/apt/sources.list.d/
directory.
Update APT Package Lists for Google Chrome Fix
The final step is to update the APT package lists. By doing this, APT will recognize the new (or restored) Google Chrome repository. To do so, run:
sudo apt update
This command instructs APT to update its package lists, including the Google Chrome one we restored.
Closing Thoughts
In summary, installing and managing Google Chrome on an Ubuntu Linux system is a straightforward process, but it’s essential to understand the various steps involved. We’ve discussed the installation process, how to launch the application, utilizing additional commands for update and removal, and troubleshooting multiple sources for a smooth operation.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
2019-02-20 硬件工程师要学习的东西
2019-02-20 硬件工程师需要掌握什么基础知识