[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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM