大鹏一日同风起

大鹏一日同风起
记录日常,记录生活,记录时代
  1. 首页
  2. linux
  3. 正文

ubuntu14.0.4通过apt-get安装软件时错误问题解决

2015年9月13日 69点热度 0人点赞 0条评论

ubuntu14.0.4通过apt-get安装软件包时,报以下错误:

E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt-get -f install”(也可以指定一个解决办法)。

经过查找,原来ubuntu系统在新安装好后需要进行一些包的升级和清理工作,不然的话,后续安装各种软件都不顺畅,会出现各种各样的问题。

需要进行的包升级和清理工作其实很简单,只需要执行以下两条命令即可:

    apt-get -f install #用来升级一些相互依赖的包  
    apt-get autoremove #用来删除一些过时的包  

但是在执行:

apt-get -f install

报以下错误:

Could not calculate the upgrade

A unresolvable problem occurred while calculating the upgrade.

Please report this bug against the 'update-manager' package and include the following error message:
'E:错误,pkgProblemResolver::Resolve 发生故障,这可能是有软件包被要求保持现状的缘故。

这个问题可能是源的问题导致的,可以通过换源解决
我把源更换成了sohu的,如下:

#vi /etc/apt/source.list
#在文件最后添加内容如下:
deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
标签: 暂无
最后更新:2015年9月13日

pbdatacn

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

归档

  • 2023 年 1 月
  • 2022 年 12 月
  • 2022 年 9 月
  • 2022 年 8 月
  • 2017 年 10 月
  • 2017 年 9 月
  • 2015 年 12 月
  • 2015 年 11 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 3 月
  • 2015 年 1 月
  • 2014 年 12 月
  • 2014 年 10 月
  • 2014 年 9 月
  • 2014 年 8 月
  • 2014 年 7 月

分类

  • Android
  • Docker
  • hadoop
  • linux
  • Redis
  • webservice
  • 文章
  • 未分类
  • 生活
  • 算法

COPYRIGHT © 2026 大鹏一日同风起. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

京ICP备14029030号-1