问题描述
在 Ubuntu 14.04.1 LTS 上尝试通过软件更新程序安装软件包时出现以下错误:
它是关于这些包的:\n
我已从安装更新的位置选择了以下设置:\n
我运行了以下命令:
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.
更新
有问题 How do I deal with “unauthenticated sources” errors in the Software Center?
发出以下命令:
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 更新没有解决问题
最佳思路
你可以运行:
sudo apt-get update && sudo apt-get dist-upgrade