zoukankan      html  css  js  c++  java
  • E: Package xxx has no installation candidate成功解决

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

    分析

    首先这个问题的最主要的原因就是因为当前Linux系统的下载源中找不到相应的文件,所以说我们需要更新下载源

    步骤

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

    vi /etc/apt/sources.list

    在下载源中添加源

    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

  • 相关阅读:
    内存警告
    倒影效果
    设计模式六大原则
    设计模式
    GCD线程
    字符串颜色值转换
    下划线按钮
    电池栏上弹窗
    项目发布相关
    UINib xib加载
  • 原文地址:https://www.cnblogs.com/JonnyJiang-zh/p/14094726.html
Copyright © 2011-2022 走看看