软件更新:这需要从未经验证的来源安装软件包。

在尝试通过Ubuntu 14.04.1 LTS上的软件更新器安装软件包时,我遇到了以下错误:

Software Updater error

关于这些软件包的问题: 我已经从以下位置选择了更新安装的设置: 我运行了以下命令:
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

sudo apt-get update 给出以下输出:
Reading package lists... Done
W: GPG error: https://download.01.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A902DDA375E52366
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)

sudo apt-get upgrade 给出以下输出:
The following packages have been kept back:
  libegl1-mesa libegl1-mesa-drivers libgbm1 libgl1-mesa-dri libgl1-mesa-glx
  libglapi-mesa libgles1-mesa libgles2-mesa libosmesa6 liboxideqt-qmlplugin
  liboxideqtcore0 libwayland-egl1-mesa libxatracker2 linux-generic
  linux-generic-pae linux-headers-generic linux-headers-generic-pae
  linux-image-generic linux-image-generic-pae oxideqt-codecs
  python-cupshelpers system-config-printer-gnome
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.

更新

软件中心中如何处理“未经验证的来源”错误?问题上,发出以下命令:

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

仍然会产生以下输出:
Reading package lists... Done
W: GPG error: https://download.01.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A902DDA375E52366
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)

跟随第二个答案:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A902DDA375E52366
sudo apt-get update

但是收到以下错误:
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无法解决问题。

sudo apt-get update 的输出是什么? - g_p
@g_p 我添加了输出。我猜测 GPG 错误可能是问题所在? - Noosrep
@g_p 还是不行,我编辑了问题。 - Noosrep
由于您现在没有GPG错误,所以您将不会再收到之前的警告。有关重复的sources.list警告,请参阅此帖子:链接 - g_p
我在14.10版本也遇到了同样的问题,无法升级"Ubuntu Base"的更新,它们都是一些内核相关的东西。 - Dustin
除了混乱的命令列表外,答案很少涉及如何解决问题的主题。 - matanster
5个回答

你可以运行:
sudo apt-get update && sudo apt-get dist-upgrade

哇!第一次就成功了! - GFPF

修复sources.list文件中的重复条目的方法:
使用具有root/sudo权限的编辑器打开它,例如:
sudo nano /etc/apt/sources.list

删除重复的行(无论是哪一行)
http://dl.google.com/linux/chrome/deb/

然后使用Ctrl-X退出(y保存)。 按照正常的方式进行apt-get更新和升级。

没有重复的条目。Desgua在http://askubuntu.com/questions/120621/how-to-fix-duplicate-sources-list-entry给出的答案解决了问题。 - Noosrep
啊,好的,我错过了编辑/评论。那么你的问题都解决了吗?如果是这样,请回答自己的问题并标记为已解决 :) - NGRhodes

注释掉那些产生错误的行。
打开终端(Ctrl+Alt+T)并运行以下命令。
切换到/etc/apt目录。
cd /etc/apt/

编辑文件 sources.list:
sudo nano sources.list

在错误日志中,用#符号注释掉被提及的行。

更新sources.list文件后,使用以下命令行升级您的软件。

sudo apt-get clean    
sudo apt-get update 
sudo apt-get upgrade

打开“软件和更新”,然后进入“其他软件”。 取消勾选在更新时显示错误的软件。 刷新并重新运行更新。

嗨,最好的方法是每当你遇到这个问题时,使用终端来了解实际上是什么在阻止它,所以打开终端并使用以下命令。
sudo apt-get clean    
sudo apt-get update 

更新命令会显示出导致问题的URL或软件包,通常是由于不可靠的软件包引起的,就像我在终端上运行时遇到了下面的错误一样。
W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
W: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.

所以这意味着http://dl.google.com/linux/chrome/deb可能对我的电脑有害,你需要在更新设置面板中取消勾选此项,或者可以更新安装文件。

4http://dl.google.com/linux/chrome/deb 被标记为潜在有害。http://dl.google.com/linux/chrome/deb 是谷歌Chrome的官方软件库。我不明白为什么它对你有害。GPG错误通常意味着您已将“外来”软件库添加到系统中。这些“外来”软件库可能会根据来源和开发者是否有害。 - Kulfy