Ubuntu 14.10 的 APT 文件中出现重复源,可以吗?

Ubuntu 14.10 的 APT 文件中出现重复源,可以吗?

所以我正准备升级到 ubuntu 15.04,我正在经历并清理一些东西,这是对我来说很突出的事情之一。

W: Duplicate sources.list entry http://download.opensuse.org/repositories/home:/p_conrad:/coins/xUbuntu_14.10/  Packages (/var/lib/apt/lists/download.opensuse.org_repositories_home:_p%5fconrad:_coins_xUbuntu%5f14.10_Packages)
W: You may want to run apt-get update to correct these problems

现在更新什么sudo apt-get update也没做,所以我进入 vim 尝试看看是否可以删除引用。我没有发现任何东西,但这是目录的内容。

archive.canonical.com_ubuntu_dists_utopic_partner_binary-amd64_Packages                         security.ubuntu.com_ubuntu_dists_vivid-security_restricted_source_Sources
archive.canonical.com_ubuntu_dists_utopic_partner_binary-i386_Packages                          security.ubuntu.com_ubuntu_dists_vivid-security_universe_binary-amd64_Packages
archive.canonical.com_ubuntu_dists_utopic_partner_i18n_Translation-en                           security.ubuntu.com_ubuntu_dists_vivid-security_universe_binary-i386_Packages
archive.canonical.com_ubuntu_dists_utopic_partner_source_Sources                                security.ubuntu.com_ubuntu_dists_vivid-security_universe_i18n_Translation-en
archive.canonical.com_ubuntu_dists_utopic_Release                                               security.ubuntu.com_ubuntu_dists_vivid-security_universe_source_Sources
archive.canonical.com_ubuntu_dists_utopic_Release.gpg                                           us.archive.ubuntu.com_ubuntu_dists_utopic-backports_main_binary-amd64_Packages
archive.canonical.com_ubuntu_dists_vivid_partner_binary-amd64_Packages                          us.archive.ubuntu.com_ubuntu_dists_utopic-backports_main_binary-i386_Packages
archive.canonical.com_ubuntu_dists_vivid_partner_binary-i386_Packages                           us.archive.ubuntu.com_ubuntu_dists_utopic-backports_main_i18n_Translation-en
archive.canonical.com_ubuntu_dists_vivid_partner_i18n_Translation-en                            us.archive.ubuntu.com_ubuntu_dists_utopic-backports_main_source_Sources
archive.canonical.com_ubuntu_dists_vivid_partner_source_Sources                                 us.archive.ubuntu.com_ubuntu_dists_utopic-backports_multiverse_binary-amd64_Packages
archive.canonical.com_ubuntu_dists_vivid_Release                                                us.archive.ubuntu.com_ubuntu_dists_utopic-backports_multiverse_binary-i386_Packages
archive.canonical.com_ubuntu_dists_vivid_Release.gpg                                            us.archive.ubuntu.com_ubuntu_dists_utopic-backports_multiverse_i18n_Translation-en

download.opensuse.org_repositories_home:_p%5fconrad:_coins_xUbuntu%5f14.10_Packages             us.archive.ubuntu.com_ubuntu_dists_utopic-backports_multiverse_source_Sources
download.opensuse.org_repositories_home:_p%5fconrad:_coins_xUbuntu%5f14.10_Release              us.archive.ubuntu.com_ubuntu_dists_utopic-backports_Release
download.opensuse.org_repositories_home:_p%5fconrad:_coins_xUbuntu%5f14.10_Release.gpg          us.archive.ubuntu.com_ubuntu_dists_utopic-backports_Release.gpg

现在,这就是我认为我应该寻找的内容,但这看起来并不具有重复项。

download.videolan.org_pub_debian_stable_Packages                                                us.archive.ubuntu.com_ubuntu_dists_utopic-backports_restricted_binary-amd64_Packages
download.videolan.org_pub_debian_stable_Release                                                 us.archive.ubuntu.com_ubuntu_dists_utopic-backports_restricted_binary-i386_Packages
download.videolan.org_pub_debian_stable_Release.gpg                                             us.archive.ubuntu.com_ubuntu_dists_utopic-backports_restricted_i18n_Translation-en
download.videolan.org_pub_debian_stable_Sources                                                 us.archive.ubuntu.com_ubuntu_dists_utopic-backports_restricted_source_Sources

extras.ubuntu.com_ubuntu_dists_utopic_main_binary-amd64_Packages                                us.archive.ubuntu.com_ubuntu_dists_utopic-backports_universe_binary-amd64_Packages
extras.ubuntu.com_ubuntu_dists_utopic_main_binary-i386_Packages                                 us.archive.ubuntu.com_ubuntu_dists_utopic-backports_universe_binary-i386_Packages
extras.ubuntu.com_ubuntu_dists_utopic_main_source_Sources                                       us.archive.ubuntu.com_ubuntu_dists_utopic-backports_universe_i18n_Translation-en
extras.ubuntu.com_ubuntu_dists_utopic_Release                                                   us.archive.ubuntu.com_ubuntu_dists_utopic-backports_universe_source_Sources
extras.ubuntu.com_ubuntu_dists_utopic_Release.gpg                                               us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-amd64_Packages

liveusb.info_multisystem_depot_dists_all_main_binary-amd64_Packages                             us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-i386_Packages
liveusb.info_multisystem_depot_dists_all_main_binary-i386_Packages                              us.archive.ubuntu.com_ubuntu_dists_utopic_main_i18n_Translation-en
liveusb.info_multisystem_depot_dists_all_Release                                                us.archive.ubuntu.com_ubuntu_dists_utopic_main_source_Sources
liveusb.info_multisystem_depot_dists_all_Release.gpg                                            us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-amd64_Packages

lock                                                                                            us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-i386_Packages
partial                                                                                         us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_i18n_Translation-en

ppa.launchpad.net_i-nex-development-team_stable_ubuntu_dists_utopic_main_binary-amd64_Packages  us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_source_Sources
ppa.launchpad.net_i-nex-development-team_stable_ubuntu_dists_utopic_main_binary-i386_Packages   us.archive.ubuntu.com_ubuntu_dists_utopic_Release
ppa.launchpad.net_i-nex-development-team_stable_ubuntu_dists_utopic_Release                     us.archive.ubuntu.com_ubuntu_dists_utopic_Release.gpg
ppa.launchpad.net_i-nex-development-team_stable_ubuntu_dists_utopic_Release.gpg                 us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-amd64_Packages
ppa.launchpad.net_kubuntu-ppa_backports_ubuntu_dists_utopic_main_binary-amd64_Packages          us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-i386_Packages
ppa.launchpad.net_kubuntu-ppa_backports_ubuntu_dists_utopic_main_binary-i386_Packages           us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_i18n_Translation-en
ppa.launchpad.net_kubuntu-ppa_backports_ubuntu_dists_utopic_main_i18n_Translation-en            us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_source_Sources
ppa.launchpad.net_kubuntu-ppa_backports_ubuntu_dists_utopic_Release                             us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-amd64_Packages
ppa.launchpad.net_kubuntu-ppa_backports_ubuntu_dists_utopic_Release.gpg                         us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-i386_Packages
ppa.launchpad.net_kubuntu-ppa_next-backports_ubuntu_dists_utopic_main_binary-amd64_Packages     us.archive.ubuntu.com_ubuntu_dists_utopic_universe_i18n_Translation-en
ppa.launchpad.net_kubuntu-ppa_next-backports_ubuntu_dists_utopic_main_binary-i386_Packages      us.archive.ubuntu.com_ubuntu_dists_utopic_universe_source_Sources
ppa.launchpad.net_kubuntu-ppa_next-backports_ubuntu_dists_utopic_main_i18n_Translation-en       us.archive.ubuntu.com_ubuntu_dists_utopic-updates_main_binary-amd64_Packages
ppa.launchpad.net_kubuntu-ppa_next-backports_ubuntu_dists_utopic_Release                        us.archive.ubuntu.com_ubuntu_dists_utopic-updates_main_binary-i386_Packages
ppa.launchpad.net_kubuntu-ppa_next-backports_ubuntu_dists_utopic_Release.gpg                    us.archive.ubuntu.com_ubuntu_dists_utopic-updates_main_i18n_Translation-en
ppa.launchpad.net_n-muench_vlc_ubuntu_dists_utopic_main_binary-amd64_Packages                   us.archive.ubuntu.com_ubuntu_dists_utopic-updates_main_source_Sources
ppa.launchpad.net_n-muench_vlc_ubuntu_dists_utopic_main_binary-i386_Packages                    us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-amd64_Packages
ppa.launchpad.net_n-muench_vlc_ubuntu_dists_utopic_main_i18n_Translation-en                     us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-i386_Packages
ppa.launchpad.net_n-muench_vlc_ubuntu_dists_utopic_Release                                      us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_i18n_Translation-en
ppa.launchpad.net_n-muench_vlc_ubuntu_dists_utopic_Release.gpg                                  us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_source_Sources
ppa.launchpad.net_noobslab_indicators_ubuntu_dists_utopic_main_binary-amd64_Packages            us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release
ppa.launchpad.net_noobslab_indicators_ubuntu_dists_utopic_main_binary-i386_Packages             us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release.gpg
ppa.launchpad.net_noobslab_indicators_ubuntu_dists_utopic_Release                               us.archive.ubuntu.com_ubuntu_dists_utopic-updates_restricted_binary-amd64_Packages
ppa.launchpad.net_noobslab_indicators_ubuntu_dists_utopic_Release.gpg                           us.archive.ubuntu.com_ubuntu_dists_utopic-updates_restricted_binary-i386_Packages
ppa.launchpad.net_otto-kesselgulasch_gimp_ubuntu_dists_utopic_main_binary-amd64_Packages        us.archive.ubuntu.com_ubuntu_dists_utopic-updates_restricted_i18n_Translation-en
ppa.launchpad.net_otto-kesselgulasch_gimp_ubuntu_dists_utopic_main_binary-i386_Packages         us.archive.ubuntu.com_ubuntu_dists_utopic-updates_restricted_source_Sources
ppa.launchpad.net_otto-kesselgulasch_gimp_ubuntu_dists_utopic_main_i18n_Translation-en          us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-amd64_Packages
ppa.launchpad.net_otto-kesselgulasch_gimp_ubuntu_dists_utopic_Release                           us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-i386_Packages
ppa.launchpad.net_otto-kesselgulasch_gimp_ubuntu_dists_utopic_Release.gpg                       us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_i18n_Translation-en
ppa.launchpad.net_spring_ppa_ubuntu_dists_utopic_main_binary-amd64_Packages                     us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_source_Sources
ppa.launchpad.net_spring_ppa_ubuntu_dists_utopic_main_binary-i386_Packages                      us.archive.ubuntu.com_ubuntu_dists_vivid-backports_main_binary-amd64_Packages
ppa.launchpad.net_spring_ppa_ubuntu_dists_utopic_main_i18n_Translation-en                       us.archive.ubuntu.com_ubuntu_dists_vivid-backports_main_binary-i386_Packages
ppa.launchpad.net_spring_ppa_ubuntu_dists_utopic_Release                                        us.archive.ubuntu.com_ubuntu_dists_vivid-backports_main_i18n_Translation-en
ppa.launchpad.net_spring_ppa_ubuntu_dists_utopic_Release.gpg                                    us.archive.ubuntu.com_ubuntu_dists_vivid-backports_main_source_Sources
ppa.launchpad.net_ubuntu-wine_ppa_ubuntu_dists_utopic_main_binary-amd64_Packages                us.archive.ubuntu.com_ubuntu_dists_vivid-backports_multiverse_binary-amd64_Packages
ppa.launchpad.net_ubuntu-wine_ppa_ubuntu_dists_utopic_main_binary-i386_Packages                 us.archive.ubuntu.com_ubuntu_dists_vivid-backports_multiverse_binary-i386_Packages
ppa.launchpad.net_ubuntu-wine_ppa_ubuntu_dists_utopic_main_i18n_Translation-en                  us.archive.ubuntu.com_ubuntu_dists_vivid-backports_multiverse_i18n_Translation-en
ppa.launchpad.net_ubuntu-wine_ppa_ubuntu_dists_utopic_Release                                   us.archive.ubuntu.com_ubuntu_dists_vivid-backports_multiverse_source_Sources
ppa.launchpad.net_ubuntu-wine_ppa_ubuntu_dists_utopic_Release.gpg                               us.archive.ubuntu.com_ubuntu_dists_vivid-backports_Release
ppa.launchpad.net_webupd8team_tor-browser_ubuntu_dists_utopic_main_binary-amd64_Packages        us.archive.ubuntu.com_ubuntu_dists_vivid-backports_Release.gpg
ppa.launchpad.net_webupd8team_tor-browser_ubuntu_dists_utopic_main_binary-i386_Packages         us.archive.ubuntu.com_ubuntu_dists_vivid-backports_restricted_binary-amd64_Packages
ppa.launchpad.net_webupd8team_tor-browser_ubuntu_dists_utopic_main_i18n_Translation-en          us.archive.ubuntu.com_ubuntu_dists_vivid-backports_restricted_binary-i386_Packages
ppa.launchpad.net_webupd8team_tor-browser_ubuntu_dists_utopic_Release                           us.archive.ubuntu.com_ubuntu_dists_vivid-backports_restricted_i18n_Translation-en
ppa.launchpad.net_webupd8team_tor-browser_ubuntu_dists_utopic_Release.gpg                       us.archive.ubuntu.com_ubuntu_dists_vivid-backports_restricted_source_Sources
ppa.launchpad.net_wfg_0ad_ubuntu_dists_utopic_main_binary-amd64_Packages                        us.archive.ubuntu.com_ubuntu_dists_vivid-backports_universe_binary-amd64_Packages
ppa.launchpad.net_wfg_0ad_ubuntu_dists_utopic_main_binary-i386_Packages                         us.archive.ubuntu.com_ubuntu_dists_vivid-backports_universe_binary-i386_Packages
ppa.launchpad.net_wfg_0ad_ubuntu_dists_utopic_main_i18n_Translation-en                          us.archive.ubuntu.com_ubuntu_dists_vivid-backports_universe_i18n_Translation-en
ppa.launchpad.net_wfg_0ad_ubuntu_dists_utopic_Release                                           us.archive.ubuntu.com_ubuntu_dists_vivid-backports_universe_source_Sources
ppa.launchpad.net_wfg_0ad_ubuntu_dists_utopic_Release.gpg                                       us.archive.ubuntu.com_ubuntu_dists_vivid_main_binary-amd64_Packages
ppa.launchpad.net_xorg-edgers_ppa_ubuntu_dists_utopic_main_binary-amd64_Packages                us.archive.ubuntu.com_ubuntu_dists_vivid_main_binary-i386_Packages
ppa.launchpad.net_xorg-edgers_ppa_ubuntu_dists_utopic_main_binary-i386_Packages                 us.archive.ubuntu.com_ubuntu_dists_vivid_main_i18n_Translation-en
ppa.launchpad.net_xorg-edgers_ppa_ubuntu_dists_utopic_main_i18n_Translation-en                  us.archive.ubuntu.com_ubuntu_dists_vivid_main_source_Sources
ppa.launchpad.net_xorg-edgers_ppa_ubuntu_dists_utopic_Release                                   us.archive.ubuntu.com_ubuntu_dists_vivid_multiverse_binary-amd64_Packages
ppa.launchpad.net_xorg-edgers_ppa_ubuntu_dists_utopic_Release.gpg                               us.archive.ubuntu.com_ubuntu_dists_vivid_multiverse_binary-i386_Packages

security.ubuntu.com_ubuntu_dists_utopic-security_main_binary-amd64_Packages                     us.archive.ubuntu.com_ubuntu_dists_vivid_multiverse_i18n_Translation-en
security.ubuntu.com_ubuntu_dists_utopic-security_main_binary-i386_Packages                      us.archive.ubuntu.com_ubuntu_dists_vivid_multiverse_source_Sources
security.ubuntu.com_ubuntu_dists_utopic-security_main_i18n_Translation-en                       us.archive.ubuntu.com_ubuntu_dists_vivid_Release
security.ubuntu.com_ubuntu_dists_utopic-security_main_source_Sources                            us.archive.ubuntu.com_ubuntu_dists_vivid_Release.gpg
security.ubuntu.com_ubuntu_dists_utopic-security_multiverse_binary-amd64_Packages               us.archive.ubuntu.com_ubuntu_dists_vivid_restricted_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_utopic-security_multiverse_binary-i386_Packages                us.archive.ubuntu.com_ubuntu_dists_vivid_restricted_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_utopic-security_multiverse_i18n_Translation-en                 us.archive.ubuntu.com_ubuntu_dists_vivid_restricted_i18n_Translation-en
security.ubuntu.com_ubuntu_dists_utopic-security_multiverse_source_Sources                      us.archive.ubuntu.com_ubuntu_dists_vivid_restricted_source_Sources
security.ubuntu.com_ubuntu_dists_utopic-security_Release                                        us.archive.ubuntu.com_ubuntu_dists_vivid_universe_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_utopic-security_Release.gpg                                    us.archive.ubuntu.com_ubuntu_dists_vivid_universe_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_utopic-security_restricted_binary-amd64_Packages               us.archive.ubuntu.com_ubuntu_dists_vivid_universe_i18n_Translation-en
security.ubuntu.com_ubuntu_dists_utopic-security_restricted_binary-i386_Packages                us.archive.ubuntu.com_ubuntu_dists_vivid_universe_source_Sources
security.ubuntu.com_ubuntu_dists_utopic-security_restricted_i18n_Translation-en                 us.archive.ubuntu.com_ubuntu_dists_vivid-updates_main_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_utopic-security_restricted_source_Sources                      us.archive.ubuntu.com_ubuntu_dists_vivid-updates_main_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_utopic-security_universe_binary-amd64_Packages                 us.archive.ubuntu.com_ubuntu_dists_vivid-updates_main_i18n_Translation-en
security.ubuntu.com_ubuntu_dists_utopic-security_universe_binary-i386_Packages                  us.archive.ubuntu.com_ubuntu_dists_vivid-updates_main_source_Sources
security.ubuntu.com_ubuntu_dists_utopic-security_universe_i18n_Translation-en                   us.archive.ubuntu.com_ubuntu_dists_vivid-updates_multiverse_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_utopic-security_universe_source_Sources                        us.archive.ubuntu.com_ubuntu_dists_vivid-updates_multiverse_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_vivid-security_main_binary-amd64_Packages                      us.archive.ubuntu.com_ubuntu_dists_vivid-updates_multiverse_i18n_Translation-en
security.ubuntu.com_ubuntu_dists_vivid-security_main_binary-i386_Packages                       us.archive.ubuntu.com_ubuntu_dists_vivid-updates_multiverse_source_Sources
security.ubuntu.com_ubuntu_dists_vivid-security_main_i18n_Translation-en                        us.archive.ubuntu.com_ubuntu_dists_vivid-updates_Release
security.ubuntu.com_ubuntu_dists_vivid-security_main_source_Sources                             us.archive.ubuntu.com_ubuntu_dists_vivid-updates_Release.gpg
security.ubuntu.com_ubuntu_dists_vivid-security_multiverse_binary-amd64_Packages                us.archive.ubuntu.com_ubuntu_dists_vivid-updates_restricted_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_vivid-security_multiverse_binary-i386_Packages                 us.archive.ubuntu.com_ubuntu_dists_vivid-updates_restricted_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_vivid-security_multiverse_i18n_Translation-en                  us.archive.ubuntu.com_ubuntu_dists_vivid-updates_restricted_i18n_Translation-en
security.ubuntu.com_ubuntu_dists_vivid-security_multiverse_source_Sources                       us.archive.ubuntu.com_ubuntu_dists_vivid-updates_restricted_source_Sources
security.ubuntu.com_ubuntu_dists_vivid-security_Release                                         us.archive.ubuntu.com_ubuntu_dists_vivid-updates_universe_binary-amd64_Packages
security.ubuntu.com_ubuntu_dists_vivid-security_Release.gpg                                     us.archive.ubuntu.com_ubuntu_dists_vivid-updates_universe_binary-i386_Packages
security.ubuntu.com_ubuntu_dists_vivid-security_restricted_binary-amd64_Packages                us.archive.ubuntu.com_ubuntu_dists_vivid-updates_universe_i18n_Translation-en
security.ubuntu.com_ubuntu_dists_vivid-security_restricted_binary-i386_Packages                 us.archive.ubuntu.com_ubuntu_dists_vivid-updates_universe_source_Sources
security.ubuntu.com_ubuntu_dists_vivid-security_restricted_i18n_Translation-en

现在,我安装了这个:sudo apt-get install nfs-kernel-server 从这里:https://askubuntu.com/questions/583279/unable-to- Correct-problems-you-have-held-broken-packages-while-installing-nfs-s

答案1

重复source.list条目并不是一个大问题,只是对性能造成一点影响。

该消息具有误导性:apt-get update单独使用并不能消除重复的条目。您需要编辑source.list文件:/etc/apt/sources.list和 中的文件/etc/apt/sources.list.d。查找错误消息中提到的存储库条目并删除重复项之一。然后跑步apt-get update

答案2

我将首先手动尝试此处的说明:如何在 /etc/apt/sources.list 中添加一行?

这是我编辑的方式:

$ ls /etc/apt 
apt.conf.d  preferences  preferences.d  sources.list  sources.list.d sources.list.save  trustdb.gpg  trusted.gpg  trusted.gpg~  trusted.gpg.d
$ vi /etc/apt/sources.list

这里有更多信息:https://wiki.debian.org/SourcesList

一旦您了解了其工作原理,我将尝试使用此处的软件生成替换sources.list文件:http://repogen.simplylinux.ch/

相关内容