解决Ubuntu kylin14.04下apt-get update警告Duplicate sources.list entry问题
这两天 apt-get update 升级 Ubuntu kylin 14.04 中文界面系统时,出现以下问题 W: Duplicate sources.list entry http://archive.ubuntukylin.com:10006/ubuntukylin/ trusty/main amd64 Packages (/var/lib/apt/lists/archive.ubuntukylin.com:10006_ubuntukylin_dists_trusty_main_binary-amd64_Packages) W: Duplicate sources.list entry http://archive.ubuntukylin.com:10006/ubuntukylin/ trusty/main i386 Packages (/var/lib/apt/lists/archive.ubuntukylin.com:10006_ubuntukylin_dists_trusty_main_binary-i386_Packages) 致 apt-get dist-upgrade 无法使用,具体如下所示:
root:# apt-get update 忽略 http://cn.archive.ubuntu.com trusty InRelease 命中 http://cn.archive.ubuntu.com trusty-updates InRelease 命中 http://cn.archive.ubuntu.com trusty-backports InRelease 命中 http://cn.archive.ubuntu.com trusty Release.gpg 忽略 http://archive.ubuntukylin.com:10006 trusty InRelease 命中 http://archive.ubuntukylin.com:10006 trusty Release.gpg 命中 http://cn.archive.ubuntu.com trusty Release 命中 http://archive.ubuntukylin.com:10006 trusty Release 命中 http://security.ubuntu.com trusty-security InRelease 命中 http://cn.archive.ubuntu.com trusty-updates/main Sources 命中 http://cn.archive.ubuntu.com trusty-updates/restricted Sources 命中 http://cn.archive.ubuntu.com trusty-updates/universe Sources 命中 http://archive.ubuntukylin.com:10006 trusty/main amd64 Packages 命中 http://cn.archive.ubuntu.com trusty-updates/multiverse Sources 命中 http://archive.ubuntukylin.com:10006 trusty/main i386 Packages 命中 http://cn.archive.ubuntu.com trusty-updates/main amd64 Packages 忽略 http://archive.ubuntukylin.com:10006 trusty/main Translation-en 命中 http://cn.archive.ubuntu.com trusty-updates/restricted amd64 Packages 命中 http://cn.archive.ubuntu.com trusty-updates/universe amd64 Packages 命中 http://security.ubuntu.com trusty-security/main Sources 命中 http://cn.archive.ubuntu.com trusty-updates/multiverse amd64 Packages 命中 http://cn.archive.ubuntu.com trusty-updates/main i386 Packages 命中 http://cn.archive.ubuntu.com trusty-updates/restricted i386 Packages 命中 http://cn.archive.ubuntu.com trusty-updates/universe i386 Packages 命中 http://cn.archive.ubuntu.com trusty-updates/multiverse i386 Packages 命中 http://cn.archive.ubuntu.com trusty-updates/main Translation-en 命中 http://security.ubuntu.com trusty-security/restricted Sources 命中 http://cn.archive.ubuntu.com trusty-updates/multiverse Translation-en 命中 http://cn.archive.ubuntu.com trusty-updates/restricted Translation-en 命中 http://cn.archive.ubuntu.com trusty-updates/universe Translation-en 命中 http://cn.archive.ubuntu.com trusty-backports/main Sources 命中 http://cn.archive.ubuntu.com trusty-backports/restricted Sources 命中 http://cn.archive.ubuntu.com trusty-backports/universe Sources 命中 http://security.ubuntu.com trusty-security/universe Sources 命中 http://cn.archive.ubuntu.com trusty-backports/multiverse Sources 命中 http://cn.archive.ubuntu.com trusty-backports/main amd64 Packages 命中 http://cn.archive.ubuntu.com trusty-backports/restricted amd64 Packages 命中 http://cn.archive.ubuntu.com trusty-backports/universe amd64 Packages 命中 http://cn.archive.ubuntu.com trusty-backports/multiverse amd64 Packages 命中 http://cn.archive.ubuntu.com trusty-backports/main i386 Packages 命中 http://cn.archive.ubuntu.com trusty-backports/restricted i386 Packages 命中 http://security.ubuntu.com trusty-security/multiverse Sources 命中 http://cn.archive.ubuntu.com trusty-backports/universe i386 Packages 命中 http://cn.archive.ubuntu.com trusty-backports/multiverse i386 Packages 命中 http://cn.archive.ubuntu.com trusty-backports/main Translation-en 命中 http://cn.archive.ubuntu.com trusty-backports/multiverse Translation-en 命中 http://cn.archive.ubuntu.com trusty-backports/restricted Translation-en 命中 http://cn.archive.ubuntu.com trusty-backports/universe Translation-en 命中 http://cn.archive.ubuntu.com trusty/main Sources 命中 http://security.ubuntu.com trusty-security/main amd64 Packages 命中 http://cn.archive.ubuntu.com trusty/restricted Sources 命中 http://cn.archive.ubuntu.com trusty/universe Sources 命中 http://cn.archive.ubuntu.com trusty/multiverse Sources 命中 http://cn.archive.ubuntu.com trusty/main amd64 Packages 命中 http://cn.archive.ubuntu.com trusty/restricted amd64 Packages 命中 http://cn.archive.ubuntu.com trusty/universe amd64 Packages 命中 http://cn.archive.ubuntu.com trusty/multiverse amd64 Packages 命中 http://cn.archive.ubuntu.com trusty/main i386 Packages 命中 http://security.ubuntu.com trusty-security/restricted amd64 Packages 命中 http://cn.archive.ubuntu.com trusty/restricted i386 Packages 命中 http://cn.archive.ubuntu.com trusty/universe i386 Packages 命中 http://cn.archive.ubuntu.com trusty/multiverse i386 Packages 命中 http://cn.archive.ubuntu.com trusty/main Translation-zh_CN 命中 http://cn.archive.ubuntu.com trusty/main Translation-en 命中 http://cn.archive.ubuntu.com trusty/multiverse Translation-zh_CN 命中 http://security.ubuntu.com trusty-security/universe amd64 Packages 命中 http://cn.archive.ubuntu.com trusty/multiverse Translation-en 命中 http://cn.archive.ubuntu.com trusty/restricted Translation-zh_CN 命中 http://cn.archive.ubuntu.com trusty/restricted Translation-en 命中 http://cn.archive.ubuntu.com trusty/universe Translation-zh_CN 命中 http://security.ubuntu.com trusty-security/multiverse amd64 Packages 命中 http://cn.archive.ubuntu.com trusty/universe Translation-en 忽略 http://cn.archive.ubuntu.com trusty/main Translation-zh 忽略 http://cn.archive.ubuntu.com trusty/multiverse Translation-zh 忽略 http://cn.archive.ubuntu.com trusty/restricted Translation-zh 忽略 http://cn.archive.ubuntu.com trusty/universe Translation-zh 命中 http://security.ubuntu.com trusty-security/main i386 Packages 命中 http://security.ubuntu.com trusty-security/restricted i386 Packages 命中 http://security.ubuntu.com trusty-security/universe i386 Packages 命中 http://security.ubuntu.com trusty-security/multiverse i386 Packages 命中 http://security.ubuntu.com trusty-security/main Translation-en 命中 http://security.ubuntu.com trusty-security/multiverse Translation-en 命中 http://security.ubuntu.com trusty-security/restricted Translation-en 命中 http://security.ubuntu.com trusty-security/universe Translation-en 正在读取软件包列表... 完成 W: Duplicate sources.list entry http://archive.ubuntukylin.com:10006/ubuntukylin/ trusty/main amd64 Packages (/var/lib/apt/lists/archive.ubuntukylin.com:10006_ubuntukylin_dists_trusty_main_binary-amd64_Packages) W: Duplicate sources.list entry http://archive.ubuntukylin.com:10006/ubuntukylin/ trusty/main i386 Packages (/var/lib/apt/lists/archive.ubuntukylin.com:10006_ubuntukylin_dists_trusty_main_binary-i386_Packages) W: 您可能需要运行 apt-get update 来解决这些问题 root:#
百度网盘 https://pan.baidu.com/s/1cKxajG
软件仓库 https://github.com/digitser https://digitser.sourceforge.io/ https://pan.baidu.com/s/1TV70__Be1ta0ney1-tudFQ
快速高效 智能编辑 重构 批处理 "数字化 Python IDE" 集成开发环境 http://idepy.digitser.cn/ http://forum.digitser.cn/thread-2266-1-1.html 快速解决办法
递归移除 /etc/apt/sources.list.d/ 目录下的所有文件及目录
rm -r /etc/apt/sources.list.d/
"长按二维码" 或 "扫一扫" 关注 "德云社区" 微信公众号 参考: http://askubuntu.com/questions/120621/how-to-fix-duplicate-sources-list-entry
版权声明: 本文为独家原创稿件,版权归 德云社区,未经许可不得转载;否则,将追究其法律责任。
|