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

轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/135893.html
標籤:PHP
下一篇:[PHP] 配置vscode的語法檢測消除提示Cannot validate since no PHP executable is set
