當我嘗試使用下面的代碼在Ubuntu 16.04安裝PHP5:包PHP5沒有安裝候選人(Ubuntu的16.04)
sudo apt-get install php5 php5-mcrypt
我獲得以下錯誤:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'php5' has no installation candidate
我曾嘗試重新安裝但它沒有幫助。
我我15.10的Ubuntu更新到16.04後遇到了這一切錯誤
你可以在下面的鏈接中得到這個問題的答案 http://askubuntu.com/questions/756181/installing-php-5-6-on-xenial-16-04/756186# 756186 –
Stack Overflow是編程和開發問題的網站。這個問題似乎與題目無關,因爲它不涉及編程或開發。請參閱幫助中心的[我可以詢問哪些主題](http://stackoverflow.com/help/on-topic)。也許[超級用戶](http://superuser.com/)或[Unix&Linux堆棧交換](http://unix.stackexchange.com/)會是一個更好的地方。另請參閱[我在哪裏發佈關於Dev Ops的問題?](http://meta.stackexchange.com/q/134306) – jww