我致力于 Linux Mint Debian Edition 2“Betsy”。
运行时
sudo apt-get update
我在输出末尾收到以下错误代码
W: Duplicate sources.list entry http://security.debian.org/
jessie/updates/main amd64 Packages (/var/lib/apt/lists
/security.debian.org_dists_jessie_updates_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.debian.org/ jessie/updates
/contrib amd64 Packages (/var/lib/apt/lists
/security.debian.org_dists_jessie_updates_contrib_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.debian.org/ jessie/updates
/non-free amd64 Packages (/var/lib/apt/lists
/security.debian.org_dists_jessie_updates_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.debian.org/
jessie/updates/main i386 Packages (/var/lib/apt/lists
/security.debian.org_dists_jessie_updates_main_binary-i386_Packages)
W: Duplicate sources.list entry http://security.debian.org/ jessie/updates
/contrib i386 Packages (/var/lib/apt/lists
/security.debian.org_dists_jessie_updates_contrib_binary-i386_Packages)
W: Duplicate sources.list entry http://security.debian.org/ jessie/updates
/non-free i386 Packages (/var/lib/apt/lists
/security.debian.org_dists_jessie_updates_non-free_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
但是,我的 etc/apt/sources.list 文件看起来不错。这里是,
#/etc/apt/sources.list
deb http://http.debian.net/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
我该如何解决这个问题?
答案1
查找和朋友/etc/sources.d
使用的其他文件。apt-get
就我个人而言,我将其内容归零/etc/sources.list
并移至其中,/etc/sources.d
这样我不仅可以轻松识别稳定版或测试版,还可以轻松识别第三方添加内容,例如 Google Chrome 提供的内容。