[已解决]使用 apt-get update 命令提示 ...中被配置了多次

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
Hello World!
帖子: 3051
注册时间: 2008-06-23 15:19
系统: ���������
来自: 北欧某国
联系:

[已解决]使用 apt-get update 命令提示 ...中被配置了多次

#1

帖子 Hello World! » 2016-04-27 2:53

使用 sudo apt-get update 命令,结果收到如下提示:

代码: 全选

命中:1 http://archive.canonical.com/ubuntu xenial InRelease
获取:2 http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu wily InRelease [20,9 kB]
忽略:2 http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu wily InRelease 
命中:3 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial InRelease
命中:4 http://archive.ubuntu.com/ubuntu xenial InRelease               
命中:5 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu wily InRelease
命中:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease      
命中:7 http://archive.ubuntu.com/ubuntu xenial-security InRelease
已下载 20,9 kB,耗时 0秒 (40,8 kB/s)
正在读取软件包列表... 完成
W: 目标 Sources (restricted/source/Sources) 在 /etc/apt/sources.list:7 和 /etc/apt/sources.list:60 中被配置了多次
W: 目标 Packages (restricted/binary-amd64/Packages) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Packages (restricted/binary-i386/Packages) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Packages (restricted/binary-all/Packages) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh_CN) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-en) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 DEP-11 (restricted/dep11/Components-amd64.yml) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 DEP-11-icons (restricted/dep11/icons-64x64.tar) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Sources (restricted/source/Sources) 在 /etc/apt/sources.list:12 和 /etc/apt/sources.list:65 中被配置了多次
W: 目标 Packages (restricted/binary-amd64/Packages) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Packages (restricted/binary-i386/Packages) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Packages (restricted/binary-all/Packages) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh_CN) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-en) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 DEP-11 (restricted/dep11/Components-amd64.yml) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 DEP-11-icons (restricted/dep11/icons-64x64.tar) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Sources (restricted/source/Sources) 在 /etc/apt/sources.list:39 和 /etc/apt/sources.list:84 中被配置了多次
W: 目标 Packages (restricted/binary-amd64/Packages) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 Packages (restricted/binary-i386/Packages) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 Packages (restricted/binary-all/Packages) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh_CN) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-en) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 DEP-11 (restricted/dep11/Components-amd64.yml) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 DEP-11-icons (restricted/dep11/icons-64x64.tar) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: GPG 错误:http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu wily InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 9BDB3D89CE49EC21
W: 仓库 “http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu wily InRelease” 没有数字签名。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: 以下 ID 的密钥没有可用的公钥:
9BDB3D89CE49EC21  
W: 目标 Sources (restricted/source/Sources) 在 /etc/apt/sources.list:7 和 /etc/apt/sources.list:60 中被配置了多次
W: 目标 Packages (restricted/binary-amd64/Packages) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Packages (restricted/binary-i386/Packages) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Packages (restricted/binary-all/Packages) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh_CN) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-en) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 DEP-11 (restricted/dep11/Components-amd64.yml) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 DEP-11-icons (restricted/dep11/icons-64x64.tar) 在 /etc/apt/sources.list:6 和 /etc/apt/sources.list:59 中被配置了多次
W: 目标 Sources (restricted/source/Sources) 在 /etc/apt/sources.list:12 和 /etc/apt/sources.list:65 中被配置了多次
W: 目标 Packages (restricted/binary-amd64/Packages) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Packages (restricted/binary-i386/Packages) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Packages (restricted/binary-all/Packages) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh_CN) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-en) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 DEP-11 (restricted/dep11/Components-amd64.yml) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 DEP-11-icons (restricted/dep11/icons-64x64.tar) 在 /etc/apt/sources.list:11 和 /etc/apt/sources.list:64 中被配置了多次
W: 目标 Sources (restricted/source/Sources) 在 /etc/apt/sources.list:39 和 /etc/apt/sources.list:84 中被配置了多次
W: 目标 Packages (restricted/binary-amd64/Packages) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 Packages (restricted/binary-i386/Packages) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 Packages (restricted/binary-all/Packages) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh_CN) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-zh) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 Translations (restricted/i18n/Translation-en) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 DEP-11 (restricted/dep11/Components-amd64.yml) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
W: 目标 DEP-11-icons (restricted/dep11/icons-64x64.tar) 在 /etc/apt/sources.list:38 和 /etc/apt/sources.list:83 中被配置了多次
之前没见过呀?

附上我的 sources 文件:

代码: 全选

# deb cdrom:[Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)]/ wily main restricted
# deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu xenial universe
deb-src http://archive.ubuntu.com/ubuntu xenial universe
deb http://archive.ubuntu.com/ubuntu xenial-updates universe
deb-src http://archive.ubuntu.com/ubuntu xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.

deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted
deb http://archive.ubuntu.com/ubuntu xenial-security universe
deb-src http://archive.ubuntu.com/ubuntu xenial-security universe
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu wily main
deb-src http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu wily main

# deb http://nd-apt.s3.amazonaws.com wily main

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu xenial restricted
deb-src http://archive.ubuntu.com/ubuntu xenial restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu xenial-updates restricted
deb-src http://archive.ubuntu.com/ubuntu xenial-updates restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.

deb http://archive.ubuntu.com/ubuntu xenial-security restricted
deb-src http://archive.ubuntu.com/ubuntu xenial-security restricted

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu wily partner
# deb-src http://archive.canonical.com/ubuntu wily partner
# deb http://archive.ubuntu.com/ubuntu xenial-proposed main universe restricted multiverse #xenial 版本尚在开发阶段,不适合普通用户使用
没有手动改过。
上次由 Hello World! 在 2016-04-27 17:55,总共编辑 1 次。
http://noie.name 网站改版中。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 使用 apt-get update 命令提示 ...中被配置了多次

#2

帖子 vickycq » 2016-04-27 8:15

确实有重复条目。例如

代码: 全选

deb-src http://archive.ubuntu.com/ubuntu xenial restricted
的确在第7行和第60行都出现了
重新配置 sources.list 试试
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
qy117121
论坛版主
帖子: 50538
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 使用 apt-get update 命令提示 ...中被配置了多次

#3

帖子 qy117121 » 2016-04-27 10:25

提示信息里给出了重复的行号了
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用

邮箱 chuan@ubuntu.org.cn
头像
Hello World!
帖子: 3051
注册时间: 2008-06-23 15:19
系统: ���������
来自: 北欧某国
联系:

Re: 使用 apt-get update 命令提示 ...中被配置了多次

#4

帖子 Hello World! » 2016-04-27 17:20

第7行是 deb-src http://archive.ubuntu.com/ubuntu xenial main restricted
第60行是 deb-src http://archive.ubuntu.com/ubuntu xenial restricted

我觉得它们有区别,所以就没有删。

那么,我应该删除哪一行呢?
http://noie.name 网站改版中。
头像
qy117121
论坛版主
帖子: 50538
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 使用 apt-get update 命令提示 ...中被配置了多次

#5

帖子 qy117121 » 2016-04-27 17:43

第7行是 deb-src http://archive.ubuntu.com/ubuntu xenial main restricted
第60行是 deb-src http://archive.ubuntu.com/ubuntu xenial restricted
main 是一个仓库 restricted 也是一个仓库,60行的 restricted 重复了

图片

代码: 全选

deb http://cn.archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
sources.list 文件中一行是可以指定好几个仓库的
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用

邮箱 chuan@ubuntu.org.cn
头像
Hello World!
帖子: 3051
注册时间: 2008-06-23 15:19
系统: ���������
来自: 北欧某国
联系:

Re: 使用 apt-get update 命令提示 ...中被配置了多次

#6

帖子 Hello World! » 2016-04-27 17:53

原来如此,谢谢了。
http://noie.name 网站改版中。
回复