如何在 Debian 和 Kali Linux 上安装 Chrome 浏览器
Chrome

> 
> Debian 和基于 Debian 的 Kali Linux 将 Firefox 作为默认的网页浏览器。但这并不意味着你不能在其中安装其他网页浏览器。
> 
> 
> 


![](/data/attachment/album/202110/18/175716cfvxnvf05b5je1ax.jpg)


Chrome 浏览器非常流行，你可能已经在其他系统上使用它了。如果你想在 Debian 上安装 Chrome，你肯定可以这样做。


你在 Debian 的软件库中找不到 Chrome，因为它不是开源软件，但你可以从 Chrome 网站下载并安装它。


在本教程中，我将向你展示在 Debian 上安装 Chrome 的两种方法：


* GUI 方法
* 命令行方法


让我们先从 GUI 方法开始。



> 
> 注意：我在这里的例子中使用的是 Debian，但由于 Kali Linux 是基于 Debian 的，所以同样的方法也适用于 Kali Linux。
> 
> 
> 


### 方法 1: 在 Debian 上以图形方式安装 Chrome 浏览器


这是一个不费吹灰之力的方法。你去 Chrome 网站，下载 deb 文件，然后双击它来安装它。我将详细地展示这些步骤，这样你就能很容易地掌握了。


前往 Chrome 的网站。


[Get Google Chrome](https://www.google.com/chrome/)


你会看到下载 Chrome 的选项。


![Click on the Download Chrome button](/data/attachment/album/202110/18/175725iz9ccliceep0m8vp.jpg)


当你点击下载按钮时，它会给你两个下载安装文件的选项。选择写着 Debian/Ubuntu 的那个。


![Download the Chrome installer file for Debian](/data/attachment/album/202110/18/175725pax5x8ph8xhxhz8p.jpg)


**请注意，Chrome 浏览器不适用于 32 位系统。**


接下来，你应该选择将文件保存到电脑中，而不是在软件中心打开进行安装。这样一来，下载的文件将被保存在下载文件夹中，而不是临时目录中。


![Save the downloaded DEB file for Google Chrome](/data/attachment/album/202110/18/175726ds1mmsmzvvmvn8v1.jpg)


进入下载文件夹，右击下载的 DEB 文件，选择用 “Software Install” 打开它。


![Right click on the downloaded DEB file and open with Software Install](/data/attachment/album/202110/18/175726yqgcvh3anu3oauv6.jpg)


它将打开软件中心，你应该看到现在安装 Chrome 浏览器的选项。点击安装按钮。


![Click on the install button](/data/attachment/album/202110/18/175726x74uaj9z73mjb4h3.jpg)


你会被要求输入账户的密码。这是你用来登录系统的同一密码。


![Enter your account’s password](/data/attachment/album/202110/18/175726a7fh0voere7lo89m.jpg)


在不到一分钟的时间里，Chrome 就会安装完毕。你现在应该看到一个删除选项，这表明软件已经安装完毕。


![Chrome is now installed](/data/attachment/album/202110/18/175727klpw3cv1eszi5q1w.png)


当 Chrome 在 Debian 上安装完毕，在系统菜单中搜索它并启动它。


![Start Google Chrome](/data/attachment/album/202110/18/175727xrqpybukyaaybqby.jpg)


它将要求成为你的默认浏览器，并将崩溃报告发送给谷歌。你可以取消勾选这两个选项。然后你就可以看到谷歌浏览器的窗口。


![](/data/attachment/album/202110/18/175727n0x8aq2ix2swkvc0.jpg)


如果你登录了你的谷歌账户，你应该可以在这里同步你的密码、书签和其他浏览数据。好好体验吧！


还有一点，安装完 Chrome 后，你可以从系统中删除下载的 DEB 文件。不再需要它了，甚至在卸载 Chrome 时也不需要。


### 方法 2：在 Debian 上从终端安装 Chrome


你刚才看到的内容可以在终端中轻松实现。


首先，确保你的软件包缓存已经刷新，并且你已经安装了 `wget`，用于 [在终端中从网上下载文件](https://itsfoss.com/download-files-from-linux-terminal/)。



```
sudo apt update && sudo apt install wget

```

接下来是下载 Chrome 的 .deb 文件。



```
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

```

下载后，你可以用 `apt` 命令 [在终端安装 deb 文件](https://itsfoss.com/install-deb-files-ubuntu/)，像这样：



```
sudo apt install ./google-chrome-stable_current_amd64.deb

```

安装完成后，你就可以开始使用 Chrome 了。


### 额外提示：更新 Chrome


这两种方法都会将谷歌的软件库添加到你的系统中。你可以在你的 `sources.list.d` 目录中看到它：



```
cat /etc/apt/sources.list.d/google-chrome.list

```

这意味着 Chrome 将与 Debian 和 Kali Linux 中的其他系统更新一起被更新。你知道 [如何在命令行中更新你的 Kali Linux](https://linuxhandbook.com/update-kali-linux/) 或 Debian 系统么？只要使用这个命令：



```
sudo apt update && sudo apt upgrade -y

```

### 从你的系统中卸载 Chrome


即使你选择用 GUI 方法在 Debian 上安装 Chrome，你也必须使用终端来删除它。


不要担心。这其实只是一个命令：



```
sudo apt purge google-chrome-stable

```

根据要求输入你的账户密码。当你输入密码时，屏幕上没有任何显示。这没关系。输入它并按回车键，确认删除。


![](/data/attachment/album/202110/18/175727owyyskokkodzhwto.jpg)


好了，就这些了。我希望你觉得这个教程有帮助。




---


via: <https://itsfoss.com/install-chrome-debian-kali-linux/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[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)

Debian and Debian-based Kali Linux come with Firefox as the default web browser. But this does not mean that you cannot install other web browsers in it.

Google Chrome is hugely popular and you probably already use it on other systems. If you want to install Chrome on Debian, you can surely do so.

You won’t find Google Chrome in the repositories of Debian because it is not open source software but you can download and install it from Chrome website.

In this tutorial, I’ll show you two methods of installing Chrome on Debian:

- GUI method
- Command line method

Let’s start with the GUI method first.

*Note: I am using Debian in the examples here but since Kali Linux is based on Debian, the same methods are also applicable to Kali Linux.*

## Method 1: Installing Chrome on Debian Graphically

This is a no-brainer. You go to the Google Chrome website, download the deb file and double lick on it to install it. I am going to show the steps in detail so that it is easy for you to follow it.

Go to Google Chrome’s website.

You’ll see the option to download Google Chrome.

![Download Google Chrome on Debian](https://itsfoss.com/content/images/wordpress/2021/09/download-chrome-on-debian-800x344.webp)

When you click on the download button, it gives you two options for downloading the installer file. Go with the one that says Debian/Ubuntu.

![downloading google chrome](https://itsfoss.com/content/images/wordpress/2021/09/downloading-google-chrome-800x512.webp)

**Please note that Google Chrome is NOT available for 32-bit systems.**

In the next screen, you should opt for saving the file to the computer instead of opening it in software center for installation. This way, the downloaded file will be saved in the Downloads folder instead of the temp directory.

![save downloaded chrome installer file debian](https://itsfoss.com/content/images/wordpress/2021/09/save-downloaded-chrome-installer-file-debian-800x430.webp)

Go to the Download folders and right click on the downloaded deb file and choose to open it with Software Install.

![open deb file with software install](https://itsfoss.com/content/images/wordpress/2021/09/open-deb-file-with-software-install-800x419.webp)

It will then open the software center and you should see the option to install Chrome now. Click on the install button.

![installing chrome debian](https://itsfoss.com/content/images/wordpress/2021/09/installing-chrome-debian-800x408.webp)

You’ll be asked to enter your account’s password. This is the same password you use to log into your system.

![enter account password while installing deb file](https://itsfoss.com/content/images/wordpress/2021/09/enter-account-password-while-installing-deb-file-800x420.webp)

In less than a minute, Google Chrome will be installed. You should see a remove option now which indicates that the software is installed.

![chrome installed debian](https://itsfoss.com/content/images/wordpress/2021/09/chrome-installed-debian-800x384.webp)

Once Chrome is installed on Debian, search for it in the system menu and start it.

![start chrome debian](https://itsfoss.com/content/images/wordpress/2021/09/start-chrome-debian-800x276.webp)

It will ask to be your default browser and send the crash reports to Google. You can uncheck either or both options. And then you can see Google Chrome browser window.

![Google Chrome in Debian](https://itsfoss.com/content/images/wordpress/2021/09/Chrom-in-Debian-800x450.webp)

If you log into your Google account, you should be able to sync your passwords, bookmarks and other browsing data here. Enjoy it!

Another thing, after installing Chrome, you can delete the downloaded DEB file from your system. It is not needed anymore, not even for uninstalling Chrome.

## Method 2: Install Google Chrome on Debian from the terminal

What you just saw above can be easily achieved in the terminal.

First, make sure that your package cache is refreshed and you have wget installed for [downloading files from the web in the terminal](https://itsfoss.com/download-files-from-linux-terminal/).

`sudo apt update && sudo apt install wget`


The next option is to download the .deb file of Google Chrome:

`wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb`


Once downloaded, you can [install the deb file in the terminal](https://itsfoss.com/install-deb-files-ubuntu/) with apt command like this:

`sudo apt install ./google-chrome-stable_current_amd64.deb`


Once the installation completes, you can start using Chrome.

## Bonus tip: Updating Google Chrome

Both methods add Google’s repository to your system. You can see it in your sources.lis.d directory:

`cat /etc/apt/sources.list.d/google-chrome.list `


This means that Google Chrome will be updated with other system updates in Debian and Kali Linux. You know [how to update your Kali Linux](https://linuxhandbook.com/update-kali-linux/?ref=itsfoss.com) or Debian system in command line? Just use this command:

`sudo apt update && sudo apt upgrade -y`


## Uninstall Google Chrome from your system

Even if you chose to install Chrome on Debian using the GUI method, you’ll have to use the terminal to remove it.

Don’t worry. It’s really just one command:

`sudo apt purge google-chrome-stable`


Enter your account password when asked. Nothing is displayed on the screen when you type the password. That’s okay. Type it and press enter and confirm the deletion.

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

Well, that’s about it. I hope you find this tutorial helpful.