E: Package xxx has no installation candidate成功解决

E: Package 'php5' has no installation candidate 问题

分析

首先这个问题的最主要的缘由就是由于当前Linux系统的下载源中找不到相应的文件,因此说咱们须要更新下载源php

步骤

找到记录着下载源地址的文件

vi /etc/apt/sources.listcode

在下载源中添加源

deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free

# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free

修改彻底后,执行apt-get update``apt-get upgrade更新一下,而后再次执行apt-get install get

相关文章
相关标签/搜索