安装caffe2时遇到:Ubuntu:apt-get update出错:由于没有公钥,无法验证下列签名

安装caffe2时,遇到如下的情况

获取:1 http://storage.googleapis.com/bazel-apt stable InRelease [2,450 B]
忽略:1 http://storage.googleapis.com/bazel-apt stable InRelease                
获取:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]    
忽略:3 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  InRelease
命中:4 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release
命中:6 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                    
命中:7 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease            
获取:8 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
命中:9 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease       
已下载 216 kB,耗时 5秒 (36.7 kB/s)
正在读取软件包列表... 完成
W: GPG 错误:http://storage.googleapis.com/bazel-apt stable InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 3D5919B448457EE0
W: 仓库 “http://storage.googleapis.com/bazel-apt stable InRelease” 没有数字签名。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

解决方法

 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3D5919B448457EE0

问题解决

正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
build-essential 已经是最新版 (12.1ubuntu2)。
libleveldb-dev 已经是最新版 (1.18-5)。
libprotobuf-dev 已经是最新版 (2.6.1-1.3)。
libsnappy-dev 已经是最新版 (1.1.3-2)。
protobuf-compiler 已经是最新版 (2.6.1-1.3)。
libgoogle-glog-dev 已经是最新版 (0.3.4-0.1)。
libgtest-dev 已经是最新版 (1.7.0-4ubuntu1)。
libiomp-dev 已经是最新版 (3.7.0-3)。
liblmdb-dev 已经是最新版 (0.9.17-3)。
libopencv-dev 已经是最新版 (2.4.9.1+dfsg-1.5ubuntu1)。
libopenmpi-dev 已经是最新版 (1.10.2-8ubuntu1)。
openmpi-bin 已经是最新版 (1.10.2-8ubuntu1)。
openmpi-doc 已经是最新版 (1.10.2-8ubuntu1)。
cmake 已经是最新版 (3.5.1-1ubuntu3)。
git 已经是最新版 (1:2.7.4-0ubuntu1.4)。
python-dev 已经是最新版 (2.7.12-1~16.04)。
python-pip 已经是最新版 (8.1.1-2ubuntu0.4)。
下列软件包是自动安装的并且现在不需要了:
  linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic
  linux-headers-4.10.0-42 linux-headers-4.10.0-42-generic
  linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic
  linux-headers-4.13.0-37 linux-headers-4.13.0-37-generic
  linux-headers-4.4.0-116 linux-headers-4.4.0-116-generic
  linux-image-4.10.0-28-generic linux-image-4.10.0-42-generic
  linux-image-4.13.0-36-generic linux-image-4.13.0-37-generic
  linux-image-4.4.0-116-generic linux-image-extra-4.10.0-28-generic
  linux-image-extra-4.10.0-42-generic linux-image-extra-4.13.0-36-generic
  linux-image-extra-4.13.0-37-generic linux-image-extra-4.4.0-116-generic
  linux-signed-image-4.10.0-28-generic linux-signed-image-4.10.0-42-generic
  linux-signed-image-4.13.0-36-generic linux-signed-image-4.13.0-37-generic
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 210 个软件包未被升级。

猜你喜欢

转载自blog.csdn.net/qq_31442743/article/details/80807659