Fetched 5,388 B in 9s (547 B/s)
Reading package lists... Done
W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ precise/contrib amd64 Packages (/var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_precise_contrib_binary-amd64_Packages)
W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ precise/contrib i386 Packages (/var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_precise_contrib_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
我一次又一次地更新apt-get,它显示了警告。我使用的是ubuntu12.04lts和我的内核信息。 Linux siva-pt130 3.2.0-23-generic#36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU / Linux
答案 0 :(得分:0)
您的/etc/apt/sources.list文件包含重复项。用像vim这样的编辑器打开它并删除它。再次运行apt-get update。
答案 1 :(得分:0)
我认为virtualbox会创建新的列表文件夹,因此您可以使用以下命令将其删除:
sudo rm -rf /etc/apt/sources.list.d/virtualbox.list
sudo rm -rf /etc/apt/sources.list.d/virtualbox.list~
然后运行:
sudo apt-get update