aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/stable
網上的答案是修改系統的版本信息
/etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
這個答案測試完不管用,還是報錯
直接編輯源文件,把php的倉庫源添加進去,當然要看清楚自己的系統版本信息對應上
/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