当前位置: 移动技术网 > IT编程>开发语言>PHP > [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

2019年10月13日  | 移动技术网IT编程  | 我要评论

卧底狼妃,完美世界 最新章节,955短网址

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

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网