如何在 Ubuntu 20.04 LTS 上安装深度（Deepin）桌面环境
深度

> 
> 本教程向你展示在 Ubuntu 上安装深度（Deepin）桌面环境的正确步骤。还提到了移除步骤。
> 
> 
> 


![](/data/attachment/album/202010/15/223607kqs5zguiq53fkkig.png)


毫无疑问，深度操作系统（Deepin OS）是一个 [漂亮的 Linux 发行版](https://itsfoss.com/beautiful-linux-distributions/)。最近发布的 [深度操作系统 V20](https://itsfoss.com/deepin-20-review/) 就更加美观了。


[深度操作系统](https://www.deepin.org/en/) 是基于 [Debian](https://www.debian.org/) 的，默认的存储库镜像太慢了。如果你更愿意使用 Ubuntu，可以选择 [UbuntuDDE Linux 发行版](https://itsfoss.com/ubuntudde/) 形式的 Ubuntu 的深度操作系统的变体。它还不是 [官方的 Ubuntu 风格](https://itsfoss.com/which-ubuntu-install/) 之一。


[重新安装新的发行版](https://itsfoss.com/reinstall-ubuntu/) 是一个麻烦，因为你会丢失数据，你将不得不在新安装的 UbuntuDDE 上重新安装你的应用程序。


一个更简单的选择是在现有的 Ubuntu 系统上安装深度桌面环境（DDE）。毕竟，你可以轻松地在一个系统中安装多个[桌面环境](https://itsfoss.com/what-is-desktop-environment/)。


不要烦恼，这很容易做到，如果你不喜欢，也可以恢复这些更改。让我来告诉你怎么做。


### 在 Ubuntu 20.04 上安装深度桌面环境


UbuntuDDE 团队已为他们的发行版创建了一个 PPA，你可以使用相同的 PPA 在 Ubuntu 20.04 上安装深度桌面环境。请记住，此 PPA 仅适用于 Ubuntu 20.04。请阅读有关 [在 Ubuntu 中使用 PPA](https://itsfoss.com/ppa-guide/)。



> 
> 没有深度桌面环境 V20
> 
> 
> 你将在此处使用 PPA 安装的深度桌面环境还不是新的 V20。它可能会在 Ubuntu 20.10 发布后出现，但是我们不能担保。
> 
> 
> 


以下是你需要遵循的步骤：


**步骤 1**：你需要首先在终端上输入以下内容，来添加 [Ubuntu DDE Remix 团队的官方 PPA](https://launchpad.net/~ubuntudde-dev/+archive/ubuntu/stable)：



```
sudo add-apt-repository ppa:ubuntudde-dev/stable

```

**步骤 2**：添加存储库以后，继而安装深度桌面环境。



```
sudo apt install ubuntudde-dde

```

![](/data/attachment/album/202010/15/223400skfft6hkztu68c87.png)


现在，安装将启动，一段时间后，将要求你选择<ruby> 显示管理器 <rt>  display manager </rt></ruby>。


![](/data/attachment/album/202010/15/223414d3ncndbzu3zb4cj8.jpg)


如果需要深度桌面主题的锁屏，则需要选择 “lightdm”。如果不需要，你可以将其设置为 “gdm3”。


如果你看不到此选项，可以通过键入以下命令来获得它，然后选择你首选的显示管理器：



```
sudo dpkg-reconfigure lightdm

```

**步骤 3**： 完成后，你必须退出并通过选择 “Deepin” 会话再次登录，或者重新启动系统。


![](/data/attachment/album/202010/15/223433w6tspf8i485ez6i7.jpg)


就是这样。马上在你的 Ubuntu 20.04 LTS 系统上享受深度桌面环境体验吧！


![](/data/attachment/album/202010/15/223449iykwyp6k561lx5bk.png)


### 从 Ubuntu 20.04 删除深度桌面


如果你不喜欢这种体验，或者由于某些原因它有 bug，可以按照以下步骤将其删除。


**步骤 1**： 如果你已将 “lightdm” 设置为显示管理器，则需要在卸载深度桌面环境之前将显示管理器设置为 “gdm3”。为此，请键入以下命令：



```
sudo dpkg-reconfigure lightdm

```

![](/data/attachment/album/202010/15/223414d3ncndbzu3zb4cj8.jpg)


然后，选择 “gdm3” 继续。


完成此操作后，你只需输入以下命令即可完全删除深度桌面环境：



```
sudo apt remove startdde ubuntudde-dde

```

你只需重启即可回到原来的 Ubuntu 桌面环境。如果图标没有响应，只需打开终端（`CTRL + ALT + T`）并输入：



```
reboot

```

### 总结


有不同的 [桌面环境选择](https://itsfoss.com/best-linux-desktop-environments/) 是件好事。如果你真的喜欢深度桌面环境的界面，那么这可能是在 Ubuntu 上体验深度操作系统的一种方式。


如果你有任何疑问或遇到任何问题，请在评论中告诉我。




---


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


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[gxlct008](https://github.com/gxlct008) 校对：[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)

Deepin is undoubtedly a [beautiful Linux distribution](https://itsfoss.com/beautiful-linux-distributions/). It is based on [Debian](https://www.debian.org/?ref=itsfoss.com) and the default repository mirrors are too slow. If you would rather stay with Ubuntu, you have the Deepin variant of Ubuntu in the form [UbuntuDDE Linux distribution](https://itsfoss.com/ubuntudde/). It is one of the [official Ubuntu flavors](https://itsfoss.com/which-ubuntu-install/) yet.

[Reinstalling a new distribution](https://itsfoss.com/reinstall-ubuntu/) is a bit of an annoyance for you would lose the data, and you’ll have to reinstall your applications on the newly installed UbuntuDDE.

A simpler option is to install the Deepin desktop environment on your existing Ubuntu system. After all, you can easily install more than one [desktop environment](https://itsfoss.com/what-is-desktop-environment/) in one system.

Fret not, it is easy to do it, and you can also revert the changes if you do not like it. Let me show you how to do that.

## Installing Deepin Desktop on Ubuntu

![Ubuntu 22.04 LTS release with Deepin Desktop Environment](https://itsfoss.com/content/images/2023/04/ubuntu-dde-desktop.webp)

The UbuntuDDE team has created a PPA for their distribution, and you can use the same PPA to install Deepin desktop on supported Ubuntu releases, which is currently up to Ubuntu 23.04 Lunar Lobster. Please read about [using PPA in Ubuntu](https://itsfoss.com/ppa-guide/).

Here are the steps that you need to follow:

**Step 1**: You need to first add the [official PPA by Ubuntu DDE Remix team](https://launchpad.net/~ubuntudde-dev/+archive/ubuntu/stable?ref=itsfoss.com) by typing this on the terminal:

`sudo add-apt-repository ppa:ubuntudde-dev/stable`


**Step 2**: Once you have added the repository, proceed with installing the Deepin desktop.

`sudo apt install ubuntudde-dde`


![Installing Deepin Desktp Environment in Ubuntu 22.04 LTS. The terminal installation progress screen.](https://itsfoss.com/content/images/2023/04/install-progress-terminal.png)

Now, the installation will start and after a while, you will be asked to choose the [display manager](https://itsfoss.com/display-manager/).

![During installation, it will ask you to select the display manager. Select Lightdm from the option and press enter.](https://itsfoss.com/content/images/2023/04/lightdm.png)

You need to select “**lightdm**” if you want Deepin desktop themed lock screen. If not, you can set it as “**gdm3**” or any other display manager you are using.

In case you don’t see this option, you can get it by typing the following command and then selecting your preferred display manager:

`sudo dpkg-reconfigure lightdm`


**Step 3:** Once done, you have to log out and log in again by choosing the “**Deepin**” session or just reboot the system.

![Th login screen of Ubuntu, when DDE is installed. It uses Lighdm display manager.](https://itsfoss.com/content/images/2023/04/DDE-login-screnn.png)

And, that is it. Enjoy the Deepin experience on your Ubuntu 20.04 LTS system in no time!

![Ubuntu with Deepin Desktop Environment](https://itsfoss.com/content/images/2023/04/Ubuntu-in-DDE-1.webp)

## Removing Deepin desktop from Ubuntu

In case you don’t like the experience or if it is buggy for some reason, you can remove it by following the steps below.

**Step 1: **If you’ve set “lightdm” as your display manager, you need to [change the display manager to GDM](https://itsfoss.com/switch-gdm-and-lightdm-in-ubuntu-14-04/) before uninstalling Deepin. To do that, type in the following command:

`sudo dpkg-reconfigure lightdm`


![Configuring LightDM message](https://itsfoss.com/content/images/2023/04/reconfigure-lightdm-to-set-gdm3-before-uninstalling-dde1.png)

![Reconfigure Lightdm by running the command and select gdm3 as display manager](https://itsfoss.com/content/images/2023/04/reconfigure-lightdm-to-set-gdm3-before-uninstalling-dde-1.png)

And select **gdm3** to proceed.

Once you’re done with that, you can enter the following command to remove Deepin completely:

`sudo apt remove startdde ubuntudde-dde`


To also remove related dependencies and other leftover packages, you can type in:

`sudo apt autoremove`


You can just [reboot to get back to your original Ubuntu desktop](https://itsfoss.com/schedule-shutdown-ubuntu/). If the icons become unresponsive, open the terminal (**CTRL + ALT + T**) and type in:

`reboot`


You can also remove the PPA from your system by entering:

```
sudo add-apt-repository --remove ppa:ubuntudde-dev/stable
sudo apt update
```


[LightDM](https://en.wikipedia.org/wiki/LightDM?ref=itsfoss.com), but for some reason, the Deepin Desktop login screen does not work with it. You will get the Deepin Desktop environment after logging in, but the lock screen stays the same as on Mint.

## Wrapping Up

It is good to have different [choices of desktop environments](https://itsfoss.com/best-linux-desktop-environments/). If you really like Deepin desktop interface, this could be a way to experience Deepin on Ubuntu.

By the way, there are several official Ubuntu flavors available and you may experiment with their looks.

[Explained: Which Ubuntu Version Should I Use?Confused about Ubuntu vs Xubuntu vs Lubuntu vs Kubuntu?? Want to know which Ubuntu flavor you should use? This beginner’s guide helps you decide which Ubuntu should you choose.](https://itsfoss.com/which-ubuntu-install/)![](https://itsfoss.com/content/images/2023/03/which-ubuntu-version-to-use.png)


![](https://itsfoss.com/content/images/2023/03/which-ubuntu-version-to-use.png)

You may also customize Ubuntu to get a better experience with it.

[15 Simple Tips to Customize Ubuntu GNOMESome basic and interesting GNOME customization tips for enriching your experience and getting more out of your Ubuntu desktop.](https://itsfoss.com/gnome-tricks-ubuntu/)![](https://itsfoss.com/content/images/2023/03/gnome-customisation-tips.png)


![](https://itsfoss.com/content/images/2023/03/gnome-customisation-tips.png)

If you have questions or if you face any issues, please let me know in the comments.