sudo apt-get update,会提示如下警告:
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner amd64 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages)
W: 您可能需要运行 apt-get update 来解决这些问题
解决方法:
进入/etc/apt/目录,将该目录下sources.list.d/及里面的内容全部删除,运行一下命令:
sudo rm -r /etc/apt/sources.list.d/
然后重新运行:
sudo apt-get update
已测试,可用。