aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/stable
The answer is to modify the system online version information
/ etc / lsb-release
= Ubuntu DISTRIB_ID
DISTRIB_RELEASE = 18.04
DISTRIB_CODENAME = Bionic
DISTRIB_DESCRIPTION = "Ubuntu 18.04.3 LTS"
The answer finished testing does not work, or error
Directly edit the source file, add the warehouse source php go in, of course, to see their own system version information corresponding
/etc/apt/sources.list.d/php.list
deb http://ppa.launchpad.net/ondrej / PHP / Ubuntu Bionic main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu Bionic main