sudo apt-get update
我在终端输入时收到以下错误消息:
W: Duplicate sources.list entry cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release i386 (20131016.1)/ saucy/main i386 Packages (/var/lib/apt/lists/Ubuntu%2013.10%20%5fSaucy%20Salamander%5f%20-%20Release%20i386%20(20131016.1)_dists_saucy_main_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release i386 (20131016.1)/ saucy/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2013.10%20%5fSaucy%20Salamander%5f%20-%20Release%20i386%20(20131016.1)_dists_saucy_restricted_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
我正在从闪存驱动器运行 Ubuntu。我多次运行 apt get update,但无济于事。我该如何纠正这些问题?
答案1
首先尝试删除 /var/lib/apt/lists 目录中的所有内容(sudo rm /var/lib/apt/lists/*
),然后再次更新。