我在 ubuntu 12.10 64 位中更新时遇到问题?

我在 ubuntu 12.10 64 位中更新时遇到问题?

当我跑步时sudo apt-get upgrade

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: You may want to run apt-get update to correct these problems

答案1

您已从 12.04 升级,Canonical Precise PPA 被遗弃了。在终端中输入ls /var/lib/apt/lists/archive.canonical.com_ubuntu_dists*。结果应该是这样的:

/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-amd64_Packages /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_Release /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_Release.gpg

...加上他们的量子对应物

/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_quantal_partner_binary-amd64_Packages /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_quantal_partner_binary-i386_Packages /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_quantal_Release /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_quantal_Release.gpg

...如果是这样,只需删除精确的版本。

相关内容