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

前端之家收集整理的这篇文章主要介绍了无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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
原文链接:https://www.f2er.com/javaschema/285844.html

猜你在找的设计模式相关文章