sudo apt-get update
当我使用命令时出现错误
Get:58 http://us.archive.ubuntu.com wily-backports/multiverse Translation-en [28 B]
Get:59 http://us.archive.ubuntu.com wily-backports/restricted Translation-en [28 B]
Get:60 http://us.archive.ubuntu.com wily-backports/universe Translation-en [1,390 B]
Fetched 32.5 MB in 23s (1,379 kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
我不熟悉 Ubuntu,如果有人知道如何解决,请帮助我
我正在使用 64 位 Ubuntu (15.10);
这是我的源列表,如下所示:
###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ wily main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily main restricted universe multiverse
###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ wily-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu wily partner
deb-src http://archive.canonical.com/ubuntu wily partner
###### Ubuntu Extras Repo
#deb http://extras.ubuntu.com/ubuntu wily main
#deb-src http://extras.ubuntu.com/ubuntu wily main
答案1
查看您的/etc/sources.list
(或中的文件/etc/sources.list.d
)并删除或修复导致错误的行。
这个答案应该有帮助。
答案2
通过 Google 存储库安装 Chrome 时经常发生这种情况。原因是大多数人按照许多网站的建议手动添加源。
问题在于,安装 Chrome 后它会自动添加和配置,/etc/apt/sources.list.d/google-chrome.list
从而导致重复。
解决方法是删除您添加的手动存储库,问题就解决了。我建议检查/etc/apt/sources.list.d/
第二个重复项。在我的例子中,文件名为google.list
。