Deepin伪装Ubuntu

2020/01/22

首先使用 add-apt-repository 命令需要进行安装

sudo apt-get install software-properties-common

添加源时出现 aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/stable

运行 sudo gedit /etc/lsb-release

修改成如下内容,伪装为Ubuntu

#DISTRIB_ID=Deepin
#DISTRIB_RELEASE="15.11"
#DISTRIB_DESCRIPTION="Deepin 15.11"
#DISTRIB_CODENAME=stable

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
DISTRIB_CODENAME=trusty

添加完再改回来即可

提示 找不到有效的 OpenPGP 数据

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 <2EE5793634EF4A35>

运行上面命令,<> 中为提示中给出的key