如何在 Ubuntu 中安装语音聊天工具 Discord
Discord 聊天
![](/data/attachment/album/201705/09/084319dz6kiwn6mjh9ngw4.jpg "How to Install Discord on Ubuntu Linuxs")


Discord 是一个非常受欢迎的文字和语音聊天程序。虽然开始时主要面向游戏玩家，但它几乎获得了所有人的了广泛青睐。


Discord 不仅仅是一个很好的聊天客户端。当你安装它时，你还可以获得其强大的服务端功能，强力而自足。游戏玩家和非玩家都可以在几分钟内开启自己的私人聊天服务，这使 Discord 成为团队、公会和各种社区的明显选择。


Linux 用户经常被游戏世界遗忘。但 Discord 并不是这样。它的开发人员也在 Linux 下积极构建并维护其流行聊天平台。Ubuntu 用户甚至拥有更好的待遇，Discord 捆绑在方便的 Debian/Ubuntu .deb 包中。


### 获取并安装软件包


有几种方法在 Ubuntu 下获取 Discord。你可以都看一下，并选择一个你喜欢的。


### 依赖


在 Discord 的下载页面上没有什么关于依赖的内容，但是在 Ubuntu 上安装之前，你需要安装一些依赖。没什么大不了的。打开你的终端，并输入以下命令以获得所需内容：



```
sudo apt install libgconf-2-4 libappindicator1

```

### 图形化安装


图形化安装会耗时长一点，但是这对 Linux 新手而言更简单。


![Download Discord for Linux](/data/attachment/album/201705/09/084321c4o9d54m388ca24o.jpg "Download Discord for Linux")


首先进入 Discord 的[网站](https://discordapp.com/download)。该网站应该能自动检测到你正在运行的 Linux，并在页面正中建议正确的包。


如果没有，只需向下滚动一下。页面的下一部分会显示其他可用的下载，而 Linux 包就在那里。


找到 Linux 的下载链接后，请检查是否选择了 “deb”，然后单击 “Download” 按钮。


![Ubuntu prompt to install Discord](/data/attachment/album/201705/09/084322ircv4753zbb3443l.jpg "Ubuntu prompt to install Discord")


浏览器会询问你想要用 Ubuntu 软件安装器打开或者下载文件。你可以选择任意一个，但是自动用软件安装器打开会更快。


![Ubuntu Software Center Discord Inst all](/data/attachment/album/201705/09/084323qmmn31jcw7vmx3ku.jpg "Ubuntu Software Center Discord Inst all")


下载很快，所以安装程序会立即打开，并允许你安装新下载的软件包。这是一个非常简单的窗口，没有漂亮的图标或很多描述性的文本，所以不要犹豫。这是正常的。单击 “Install” 开始安装。


安装过程不会耗费太长时间。之后，Discord 就可以使用了。


### 命令行安装


“懒惰”的 Linux 熟手并不在意花哨的 GUI 工具。如果你是这个阵营的人，那么你有一个更直接的命令行选项。


首先，打开一个终端并进入你的下载目录。在那里可以使用 `wget` 直接下载 .deb 包。



```
cd ~/Downloads 
wget -O discord-0.0.1.deb https://discordapp.com/api/download?platform=linux&format=deb

```

下载完成后，你可以使用 `dpkg` 直接安装 .deb 软件包。运行下面的命令：



```
sudo dpkg -i discord-0.0.1.deb

```

### 测试一下


![Discord icon in Unity](/data/attachment/album/201705/09/084324rnrtrt7iffcgrym6.jpg "Discord icon in Unity")


现在你可以打开软件启动器并搜索 Discord。单击图标运行。


![Login to Discord on Ubuntu](/data/attachment/album/201705/09/084325r9h5d90uvsoh09xp.jpg "Login to Discord on Ubuntu")


首次启动，根据你需求，创建一个帐户或者登录。


![Discord running on Ubuntu Linux](/data/attachment/album/201705/09/084328b0j79cx9c84tq509.jpg "Discord running on Ubuntu Linux")


登录后，你就进入 Discord 了。它会提供一些介绍教程和建议。你可以直接略过并开始尝试。欢迎进入你新的 Linux 聊天体验！




---


via: <https://www.maketecheasier.com/install-discord-ubuntu/>


作者：[Nick Congleton](https://www.maketecheasier.com/author/nickcongleton/) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Install Discord on Ubuntu Linux](https://www.maketecheasier.com/assets/uploads/2017/04/discord-feat.jpg)

Discord is a wildly popular text and voice chat application. Though it began life catering primarily to gamers, it has gained widespread favor across nearly all audiences.

Discord isn’t just a great chat client. When you install it you also get its powerful server capabilities, batteries included. Gamers and non-gamers alike can spin up their own private chat servers in minutes, making Discord an obvious choice for teams, guilds, and all sorts of communities.

All too often, Linux users are left out in the gaming world. That’s not the case with Discord. Its developers actively build and maintain their popular chat platform for Linux too. Ubuntu users have it even better. Discord is bundled in a convenient Debian/Ubuntu .deb package.

**Also read:** [How to Set Up a Discord Server](https://www.maketecheasier.com/set-up-discord-server/)

## Get and Install the Packages

There are a couple of ways that you can get Discord for Ubuntu. You can take a look at both and choose the one that you’re more comfortable with.

### Via Snap

The easiest way to install Discord is definitely via Snap. Discord is available as a Snap package. You can easily install it with the command:

sudo snap install discord

### Dependencies

If you decide to install via the traditional method, then there are a couple of dependencies that you need before you can install it on Ubuntu. It’s not a big deal. Open up your terminal and enter in the following command to get what you need:

sudo apt install libgconf-2-4 libappindicator1

### Graphical Install

The graphical install process takes a bit longer, but it also tends to be simpler for newer Linux users.

Start by heading over to the Discord [website](https://discordapp.com/download). The site should automatically detect that you’re running Linux and suggest the correct package right in the main section of the page.

If it doesn’t, just scroll down a bit. The next section of the page shows the other available downloads, and Linux will be there.

Once you’ve found the download link for Linux, check to see that “deb” is selected, and click the “Download” button.

Your browser will ask if you would prefer to open the file with the Ubuntu software installer or download the file. You can do either, but it is quicker to automatically open the package with the software installer.

The download is fairly quick, so the installer will open right up and allow you the option of installing your newly-downloaded package. It’s a fairly plain window without a nice icon or a lot of descriptive text, so don’t be put off by that. It’s normal. Click “Install” to begin the installation.

The install process won’t take long. Afterward, Discord will be available and ready to use.

### Command Line Install

Lazy Linux veterans don’t care much for fancy GUI tools. If you fall into this camp, there’s a more direct command line option for you.

First, open up a terminal and change into your download directory. From there, you can use `wget`

to grab the .deb package directly.

cd ~/Downloads wget -O discord-0.0.1.deb https://discordapp.com/api/download?platform=linux&format=deb

When the download completes, you can use dpkg to install the .deb package directly. Run the following command:

sudo dpkg -i discord-0.0.1.deb

**Also read:** [11 Ways to Prevent Discord from Disconnecting and Reconnecting](https://www.maketecheasier.com/prevent-discord-disconnecting-reconnecting/)

## Testing It Out

Now you can open your software launcher and search for Discord. Click the icon to launch it.

On your first run you will be prompted to create an account or sign in. Do whichever you need to.

After you sign in, you’ll be dropped right in to Discord. It will offer some introductory tutorials and advice. You can jump right in and play around, though. Welcome to your new Linux chat experience!

**Also read:** [How to Make a Discord Bot](https://www.maketecheasier.com/make-discord-bot/)

Our latest tutorials delivered straight to your inbox