在 Ubuntu Linux 上安装 AnyDesk
AnyDesk

> 
> 这个初学者的教程讨论了在基于 Ubuntu 的 Linux 发行版上安装 AnyDesk 的 GUI 和终端方法。
> 
> 
> 


![](/data/attachment/album/202110/01/165758y9aaiix7yu88ayui.jpg)


[AnyDesk](https://anydesk.com/en) 是一个流行的远程桌面软件，可用于 Linux、Windows、BSD、macOS 和移动平台。


有了 AnyDesk，你可以用它远程访问其他电脑，或者让别人远程访问你的系统。不是每个人都可以访问它，因为需要两台设备都使用 AnyDesk。你必须接受传入的连接和/或提供一个安全连接的密码。


这对于向朋友、家人、同事甚至客户提供技术支持很有帮助。


在本教程中，我将向你展示在 Ubuntu 上安装 AnyDesk 的图形和命令行两种方法。你可以根据自己的喜好使用这两种方法。这两种方法都会在你的 Ubuntu 系统上安装相同的 AnyDesk 版本。


同样的方法应该适用于 Debian 和其他基于 Debian 和 Ubuntu 的发行版，如 Linux Mint，Linux Lite 等。



> 
> **非 FOSS 警告！**
> 
> 
> AnyDesk 不是开源软件。这里涉及它是因为它在 Linux 上可用，而文章的重点是 Linux。
> 
> 
> 


### 方法 1：使用终端在 Ubuntu 上安装 AnyDesk


在你的系统上 [打开终端程序](https://itsfoss.com/open-terminal-ubuntu/)。你需要一个像 `wget` 这样的工具来 [在终端下载文件](https://itsfoss.com/download-files-from-linux-terminal/)，使用以下命令：



```
sudo apt update
sudo apt install wget

```

下一步是下载 AnyDesk 仓库的 GPG 密钥，并将其添加到你的系统的可信密钥中。这样，你的系统就会信任来自这个[外部仓库](https://itsfoss.com/adding-external-repositories-ubuntu/)的软件。



```
wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add -

```

你可以暂时忽略关于 `apt-key` 命令的废弃警告。下一步是将 AnyDesk 仓库添加到系统的仓库源中：



```
echo "deb http://deb.anydesk.com/ all main" | sudo tee /etc/apt/sources.list.d/anydesk-stable.list

```

更新包缓存，这样你的系统就能通过新添加的仓库了解到新应用的可用性。



```
sudo apt update

```

现在，你可以安装 AnyDesk 了：



```
sudo apt install anydesk

```

完成后，你可以从系统菜单或从终端本身启动 AnyDesk：



```
anydesk

```

你现在可以享受 AnyDesk 了。


![AnyDesk running in Ubuntu](/data/attachment/album/202110/01/165804j4vaipseiva7eaed.png)


### 方法 2：在 Ubuntu 上以图形方式安装 AnyDesk


如果你不习惯使用命令行，不用担心。你也可以不进入终端安装 AnyDesk。


你可以从 AnyDesk 官网下载 Ubuntu 上的 AnyDesk：


* [下载 Linux 上的 Anydesk](https://anydesk.com/en/downloads/linux)


你会看到一个“Download Now”的按钮。点击它。


![Download AnyDesk](/data/attachment/album/202110/01/165804v8tzol77sp5so1s2.jpg)


当你点击下载按钮时，它会给你提供各种 Linux 发行版的选项。选择 Ubuntu 的那个：


![Download the appropriate file](/data/attachment/album/202110/01/165805qp45zhcq4ss95qhi.jpg)


它将下载 AnyDesk 的 DEB 文件。[安装 DEB 文件](https://itsfoss.com/install-deb-files-ubuntu/)很简单。要么双击它，要么右击并使用软件安装打开。


![Right click on deb file and open with software center](/data/attachment/album/202110/01/165805vznqmvaqycz1csfm.png)


软件中心应用将被打开，你可以在那里安装它。


![Installing AnyDesk in Ubuntu software center](/data/attachment/album/202110/01/165805x9ii1cdwwdci3vi3.png)


安装后，在系统菜单中搜索它并从那里开始。


![AnyDesk installed in Ubuntu](/data/attachment/album/202110/01/165806pfxw85s5f10xx888.png)


这就好了。不是太难，是吗？


我不打算展示使用 AnyDesk 的步骤。我想你已经对这个问题有了一些了解。如果没有，请参考 [这篇文章](https://support.anydesk.com/Access)。


#### 故障排除提示


当我试图从系统菜单中运行 AnyDesk 时，它没有启动。于是，我从终端启动它，它显示了这个错误：



```
[email protected]:~$ anydesk
anydesk: error while loading shared libraries: libpangox-1.0.so.0: cannot open shared object file: No such file or directory

```

如果你看到 “[error while loading shared libraries](https://itsfoss.com/solve-open-shared-object-file-quick-tip/)” 信息，你要安装它所报错的软件包。在我的例子中，我是这样做的：



```
sudo apt install libpangox-1.0-0

```

这解决了我的问题，我希望它也能为你解决。


如果你有任何与此主题相关的问题，请在评论区告诉我。




---


via: <https://itsfoss.com/install-anydesk-ubuntu/>


作者：[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)

[AnyDesk](https://anydesk.com/en) is a popular remote desktop software for Linux, Windows, BSD, macOS, and mobile platforms.

With this tool, you can remotely access other computers using AnyDesk or let someone else remotely access your system. Not everyone can access it just because two devices use AnyDesk. You have to accept the incoming connection and provide a password for a secure connection.

This helps provide tech support to friends, family, colleagues, or even to customers.

In this tutorial, I’ll show graphical and command-line ways of installing AnyDesk on Ubuntu. You can use either method based on your preference. Both methods will install the same AnyDesk version on your Ubuntu system.

The same method should apply to Debian and other Debian and Ubuntu-based distributions such as Linux Mint, Linux Lite, etc.

**Non-FOSS Warning!**AnyDesk is not open source software. It is covered here because it is available on Linux and the article focuses on Linux.

## Method 1: Install AnyDesk on Ubuntu using terminal

[Open the terminal application](https://itsfoss.com/open-terminal-ubuntu/) on your system. You’ll need a tool like wget to [download files in the terminal. For th](https://itsfoss.com/download-files-from-linux-terminal/)at, use the following command:

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


The next step is to download the GPG key of the AnyDesk repository and add it to your system’s trusted keys. This way, your system will trust the software from this [external repository](https://itsfoss.com/adding-external-repositories-ubuntu/).

`wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add -`


You may ignore the [deprecated warning about the apt-key command](https://itsfoss.com/apt-key-deprecated/) for now. The next step is to add the AnyDesk repository to your system’s repository sources:

`echo "deb http://deb.anydesk.com/ all main" | sudo tee /etc/apt/sources.list.d/anydesk-stable.list`


Update the package cache so your system learns about the availability of new applications through the newly added repository.

`sudo apt update`


And now, you can install AnyDesk:

`sudo apt install anydesk`


Once that is done, you can start AnyDesk from the system menu or from the terminal itself:

`anydesk`


You can enjoy AnyDesk now.

![anydesk running in ubuntu](https://itsfoss.com/content/images/wordpress/2021/09/anydesk-running-in-ubuntu-800x418.png)

## Method 2: Install AnyDesk on Ubuntu graphically

If you are not comfortable with the command line, no worries. You can also install AnyDesk without going into the terminal.

You can download AnyDesk for Ubuntu from the official AnyDesk website:

You’ll see a Download Now button. Click on it.

![any desk ubuntu download](https://itsfoss.com/content/images/wordpress/2021/09/any-desk-ubuntu-download-800x312.webp)

When you click on the download button, it gives you options for various Linux distributions. Select the one for Ubuntu:

![anydesk ubuntu download](https://itsfoss.com/content/images/wordpress/2021/09/any-desk-ubuntu-download-1-800x427.webp)

It will download the DEB file of the AnyDesk application. [Installing deb file](https://itsfoss.com/install-deb-files-ubuntu/) is easy. Either double-click on it or right-click and open it with Software Install.

![install anaydesk ubuntu](https://itsfoss.com/content/images/wordpress/2021/09/install-anaydesk-ubuntu-800x403.png)

Software Center application will be opened and you can install it from there.

![installing anydesk in ubuntu software center](https://itsfoss.com/content/images/wordpress/2021/09/installing-anydesk-in-ubuntu-software-center.png)

Once installed, search for it in the system menu and start from there.

![anydesk installed in ubuntu](https://itsfoss.com/content/images/wordpress/2021/09/anydesk-installed-in-ubuntu.png)

That’s it. Not too hard, is it?

I am not going to show the steps for using AnyDesk. I think you already have some idea about that. If not, refer to [this article](https://support.anydesk.com/Access), please.

## Troubleshooting tip

When I tried to run AnyDesk from the system menu, it didn’t start. So, I started it from the terminal and it showed me this error:

```
abhishek@its-foss:~$ anydesk
anydesk: error while loading shared libraries: libpangox-1.0.so.0: cannot open shared object file: No such file or directory
```


If you see the [error while loading shared libraries](https://itsfoss.com/solve-open-shared-object-file-quick-tip/) message, you install the package it is complaining about. Here’s what I did in my case:

`sudo apt install libpangox-1.0-0`


That solved the issue for me and I hope it works for you also.

Please let me know in the comment section if you have any questions about this topic.