[Linux] deepin系统添加PHP仓库源出错Error: could not find a distribution template for Deepin/stable

前端之家收集整理的这篇文章主要介绍了[Linux] deepin系统添加PHP仓库源出错Error: could not find a distribution template for Deepin/stable前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

 

猜你在找的Linux相关文章