apt-get google-chrome(Ubuntu 11.10)的重复sources.list条目

我正在运行Ubuntu 11.10。

这是我的/etc/apt/sources.list的唯一行,其中包含文本“google”或“chrome”:

 deb http://dl.google.com/linux/chrome/deb/ stable main 

有时(并不总是)当我运行apt-get update时,在输出结尾处得到这些警告:

 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: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages) W: You may want to run apt-get update to correct these problems 

如果我在收到这些警告后立即再次运行apt-get update ,它们不会第二次(或第三次等)显示出来。 但是,这些警告最终总会回来。

无论如何,安装/更新google-chrome工作正常,但这些警告是烦人的(因为我现在浏览他们,我可能会无意中错过一些更重要的警告,如果有的话)。

任何方式永久摆脱这些警告?

当你安装chrome时,最有可能在/etc/apt/sources.list.d/添加一个名为google-chrome.list /etc/apt/sources.list.d/ 。 你应该删除你手动添加的行,只保留在那里的文件,这是铬包使用。