zoukankan      html  css  js  c++  java
  • 在ubuntu中我们使用sudo apt-get install 或者dpkg -i *.deb安装软件时,常常提示“有未能满足的依赖关系“,解决方法

    很早之前在ubuntu安装软件时遇到的问题,今天打开ubuntu看到了,总结如下:

    在ubuntu中我们使用sudo apt-get install 或者dpkg -i *.deb安装软件常常提示“有未能满足的依赖关系“,这是因为当前软件源中依赖库的版本不满足软件的要求。

    解决办法:
      步骤1:更新软件源。ubuntu自带的软件源比较旧,很多的软件版本较低,国内比较好用的源有阿里源;

          sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份
          sudo vim /etc/apt/sources.list #修改源列表,将阿里云源复制到sources.list文件中
          sudo apt-get update #更新本地源列表;

         阿里云源:

            deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

            deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

            deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

            deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

            deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

            deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

            deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

            deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

           deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

         deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

      步骤2:sudo apt-get install 软件名称。这里会提示“有未能满足的依赖关系“。
      步骤3:sudo apt-get -f install。这个命令会针对当前不满足的依赖关系,下载正确版本的依赖库。

        步骤4:sudo apt-get install 软件名称。这一步就会正确安装软件了。

  • 相关阅读:
    设计模式系列
    【ABAP系列】SAP ABAP 关于FUNCTION-POOL的理解
    【MM系列】SAP S/4 HANA 1511的BP角色创建及供应商数据的创建方法
    【ABAP系列】SAP ABAP 动态指针
    【HR系列】SAP HR PA信息类型的创建与增强
    【HANA系列】SAP UI5上传图片 用XSJS存储在HANA中的方法
    【HANA系列】SAP Vora(SAP HANA和Hadoop)简析
    【MM系列】SAP SAP库龄报表逻辑理解
    【HANA系列】SAP HANA XS Administration Tool登录参数设置
    【ABAP系列】SAP 一个完整的SAP的Abap例子(idoc,edi文件的相互转换)
  • 原文地址:https://www.cnblogs.com/junjind/p/9011547.html
Copyright © 2011-2022 走看看