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

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

当我尝试通过 Ubuntu 14.04.1 LTS 上的软件更新程序安装软件包时出现以下错误:

软件更新程序错误

与这些包有关: 软件更新包

我已选择从以下设置安装更新: 软件和更新设置

我已经运行以下命令:

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 无法解决问题

答案1

你可以运行:

sudo apt-get update && sudo apt-get dist-upgrade

答案2

要修复 sources.list 文件中的重复条目:

使用 root/sudo 权限在编辑器中打开它,例如:

sudo nano /etc/apt/sources.list

并删除重复的行(无论哪一行):

http://dl.google.com/linux/chrome/deb/

然后使用 ctrl-x 退出(y 保存)。像平常一样执行 apt-get update 和 upgrade。

答案3

  1. 打开“软件和更新”并转到“其他软件”。
  2. 取消选中更新时显示错误的软件。
  3. 刷新并重新运行更新。

答案4

嗨,最好的办法是,每当你遇到这个问题时,使用终端来了解是什么真正阻止了它,因此打开终端并使用以下命令

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对我的电脑有潜在危害,因此您需要从更新设置面板中取消选中此项,或者您可以更新您的安装文件。

相关内容