无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系

http://blog.sina.com.cn/s/blog_b4a60cdb0101cdhm.html

系统环境ubuntu12.04 LTS

偶然你使用sudo apt-get install xx时提示:

正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

中间是一些依赖包说明
无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

这是一些依赖关系与源出了问题


解决方法:

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
(参阅http://forum.ubuntu.org.cn/viewtopic.php?f=80&t=372236)
然后换一个源
gksu gedit /etc/apt/sources.list
从下面列表中选择合适的源,替换掉文件中所有的内容,保存编辑好的文件:
最后执行sudo apt-get update

源列表

骨头兄亲自搭建并维护的 Ubuntu源(该源位于浙江杭州百兆共享宽带的电信机房), 包含Deepin 等镜像
deb http://ubuntu.srt.cn/ubuntu/ quantal main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ quantal-security main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ quantal-proposed main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ quantal main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ quantal-backports main restricted universe multiverse


网易163更新服务器(广东广州电信/联通千兆双线接入), 包含其他开源镜像
deb http://mirrors.163.com/ubuntu/ quantal main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal-backports main restricted universe multiverse


搜狐更新服务器(山东联通千兆接入, 官方中国大陆地区镜像跳转至此) , 包含其他开源镜像
deb http://mirrors.sohu.com/ubuntu/ quantal main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ quantal main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ quantal-backports main restricted universe multiverse


LupaWorld 更新服务器(浙江杭州电信/联通双线服务器), 包含其他开源镜像
deb http://mirror.lupaworld.com/ubuntu quantal main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu quantal-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu quantal-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu quantal-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu quantal-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu quantal main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu quantal-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu quantal-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu quantal-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu quantal-proposed main restricted universe multiverse


常州贝特康姆软件技术有限公司更新服务器(江苏常州电信服务器), 包含其他开源镜像
( CN99域名 “常州市亚科技术有限公司”所注册,但此公司与常州贝特康姆的法人代表和营业地址相同。所以本镜像实际即原 CN99。但现在 CN99镜像的域名已改为跳转至 网易镜像):
deb http://centos.bitcomm.cn/ubuntu quantal main restricted universe multiverse
deb http://centos.bitcomm.cn/ubuntu quantal-security main restricted universe multiverse
deb http://centos.bitcomm.cn/ubuntu quantal-updates main restricted universe multiverse
deb http://centos.bitcomm.cn/ubuntu quantal-backports main restricted universe multiverse
deb http://centos.bitcomm.cn/ubuntu quantal-proposed main restricted universe multiverse
deb-src http://centos.bitcomm.cn/ubuntu quantal main restricted universe multiverse
deb-src http://centos.bitcomm.cn/ubuntu quantal-security main restricted universe multiverse
deb-src http://centos.bitcomm.cn/ubuntu quantal-updates main restricted universe multiverse
deb-src http://centos.bitcomm.cn/ubuntu quantal-backports main restricted universe multiverse
deb-src http://centos.bitcomm.cn/ubuntu quantal-proposed main restricted universe multiverse



以下为有教育网接入的服务器(推荐教育网用户使用,部分非教育网用户也有可观的速度。教育网用户请优先使用IPv6地址。


中国科学技术大学更新服务器(位于合肥,千兆教育网接入,百兆电信/联通线路智能路由),由 中科大 Linux用户协会中科大学网络信息中心维护, 包含其他开源镜像Deepin 官方服务器 实际亦指向此处:
deb http://debian.ustc.edu.cn/ubuntu/ quantal main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ quantal main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
IPv6-Only 地址
deb http://mirrors6.ustc.edu.cn/ubuntu/ quantal main multiverse restricted universe
deb http://mirrors6.ustc.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
deb http://mirrors6.ustc.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
deb http://mirrors6.ustc.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
deb http://mirrors6.ustc.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
deb-src http://mirrors6.ustc.edu.cn/ubuntu/ quantal main multiverse restricted universe
deb-src http://mirrors6.ustc.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
deb-src http://mirrors6.ustc.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
deb-src http://mirrors6.ustc.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
deb-src http://mirrors6.ustc.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe


清华大学更新服务器,(教育网核心节点百兆接入,已计划提高到千兆)由 清华大学学生网管会维护。 包含其他开源镜像
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ quantal main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ quantal main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
IPv4-Only 地址
deb http://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ quantal main restricted universe multiverse
deb http://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
deb http://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb http://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
deb http://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ quantal main restricted universe multiverse
deb-src http://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
IPv6-Only 地址
deb http://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/ quantal main multiverse restricted universe
deb http://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
deb http://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
deb http://mirrors.6.tuna.tsinghua.edu.cn//ubuntu/ quantal-security main multiverse restricted universe
deb http://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
deb-src http://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/ quantal main multiverse restricted universe
deb-src http://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
deb-src http://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
deb-src http://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
deb-src http://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe


北京交通大学更新服务器(教育网/电信百兆接入),由 北京交通大学信息中心赞助, 包含其他开源镜像
(域名中的 bjtu 可以替换为 njtu ,即北交旧名“北方交通大学”对应域名) :
deb http://mirror.bjtu.edu.cn/ubuntu/ quantal main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ quantal main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
IPv6-Only 地址
deb http://mirror6.bjtu.edu.cn/ubuntu/ quantal main multiverse restricted universe
deb http://mirror6.bjtu.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
deb http://mirror6.bjtu.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
deb http://mirror6.bjtu.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
deb http://mirror6.bjtu.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
deb-src http://mirror6.bjtu.edu.cn/ubuntu/ quantal main multiverse restricted universe
deb-src http://mirror6.bjtu.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
deb-src http://mirror6.bjtu.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
deb-src http://mirror6.bjtu.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
deb-src http://mirror6.bjtu.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe


北京理工大学更新服务器(仅教育网可以访问), 包含其他开源镜像
deb http://mirror.bit.edu.cn/ubuntu/ quantal main restricted universe multiverse
deb http://mirror.bit.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
deb http://mirror.bit.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb http://mirror.bit.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
deb http://mirror.bit.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://mirror.bit.edu.cn/ubuntu/ quantal main restricted universe multiverse
deb-src http://mirror.bit.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://mirror.bit.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://mirror.bit.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://mirror.bit.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


什么是设计模式一套被反复使用、多数人知晓的、经过分类编目的、代码 设计经验 的总结;使用设计模式是为了 可重用 代码、让代码 更容易 被他人理解、保证代码 可靠性;设计模式使代码编制  真正工程化;设计模式使软件工程的 基石脉络, 如同大厦的结构一样;并不直接用来完成代码的编写,而是 描述 在各种不同情况下,要怎么解决问题的一种方案;能使不稳定依赖于相对稳定、具体依赖于相对抽象,避免引
单一职责原则定义(Single Responsibility Principle,SRP)一个对象应该只包含 单一的职责,并且该职责被完整地封装在一个类中。Every  Object should have  a single responsibility, and that responsibility should be entirely encapsulated by t
动态代理和CGLib代理分不清吗,看看这篇文章,写的非常好,强烈推荐。原文截图*************************************************************************************************************************原文文本************
适配器模式将一个类的接口转换成客户期望的另一个接口,使得原本接口不兼容的类可以相互合作。
策略模式定义了一系列算法族,并封装在类中,它们之间可以互相替换,此模式让算法的变化独立于使用算法的客户。
设计模式讲的是如何编写可扩展、可维护、可读的高质量代码,它是针对软件开发中经常遇到的一些设计问题,总结出来的一套通用的解决方案。
模板方法模式在一个方法中定义一个算法的骨架,而将一些步骤延迟到子类中,使得子类可以在不改变算法结构的情况下,重新定义算法中的某些步骤。
迭代器模式提供了一种方法,用于遍历集合对象中的元素,而又不暴露其内部的细节。
外观模式又叫门面模式,它提供了一个统一的(高层)接口,用来访问子系统中的一群接口,使得子系统更容易使用。
单例模式(Singleton Design Pattern)保证一个类只能有一个实例,并提供一个全局访问点。
组合模式可以将对象组合成树形结构来表示“整体-部分”的层次结构,使得客户可以用一致的方式处理个别对象和对象组合。
装饰者模式能够更灵活的,动态的给对象添加其它功能,而不需要修改任何现有的底层代码。
观察者模式(Observer Design Pattern)定义了对象之间的一对多依赖,当对象状态改变的时候,所有依赖者都会自动收到通知。
代理模式为对象提供一个代理,来控制对该对象的访问。代理模式在不改变原始类代码的情况下,通过引入代理类来给原始类附加功能。
工厂模式(Factory Design Pattern)可细分为三种,分别是简单工厂,工厂方法和抽象工厂,它们都是为了更好的创建对象。
状态模式允许对象在内部状态改变时,改变它的行为,对象看起来好像改变了它的类。
命令模式将请求封装为对象,能够支持请求的排队执行、记录日志、撤销等功能。
备忘录模式(Memento Pattern)保存一个对象的某个状态,以便在适当的时候恢复对象。备忘录模式属于行为型模式。 基本介绍 **意图:**在不破坏封装性的前提下,捕获一个对象的内部状态,并在该
顾名思义,责任链模式(Chain of Responsibility Pattern)为请求创建了一个接收者对象的链。这种模式给予请求的类型,对请求的发送者和接收者进行解耦。这种类型的设计模式属于行为
享元模式(Flyweight Pattern)(轻量级)(共享元素)主要用于减少创建对象的数量,以减少内存占用和提高性能。这种类型的设计模式属于结构型模式,它提供了减少对象数量从而改善应用所需的对象结