zoukankan      html  css  js  c++  java
  • Ubuntu无法安装nginx

    1、问题
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
     nginx : Depends: nginx-core (>= 1.9.15-0ubuntu1) but it is not going to be installed or
                      nginx-full (>= 1.9.15-0ubuntu1) but it is not going to be installed or
                      nginx-light (>= 1.9.15-0ubuntu1) but it is not going to be installed or
                      nginx-extras (>= 1.9.15-0ubuntu1) but it is not going to be installed
             Depends: nginx-core (< 1.9.15-0ubuntu1.1~) but it is not going to be installed or
                      nginx-full (< 1.9.15-0ubuntu1.1~) but it is not going to be installed or
                      nginx-light (< 1.9.15-0ubuntu1.1~) but it is not going to be installed or
                      nginx-extras (< 1.9.15-0ubuntu1.1~) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    2、解决办法
    sudo apt-get install software-properties-common sudo add-apt-repository ppa:nginx/stable sudo apt-get update sudo apt-get install nginx
  • 相关阅读:
    新博客-测试
    OpenJDK1.8.0 源码解析————HashMap的实现(一)
    Servlet和JSP读书笔记(三)之Cookie
    Servlet和JSP读书笔记(二)
    Servlet和JSP读书笔记(一)
    Java深入解析读书笔记(一)
    hibernate学习(二)
    hibernate学习(一)
    JAVA泛型之<? extends T>:(通配符上限)和<? super T>(通配符下限)
    Java泛型之<T>
  • 原文地址:https://www.cnblogs.com/xypbk/p/10149781.html
Copyright © 2011-2022 走看看