ubuntu 16.04 sudo apt-get update 报错:下列签名无效: KEYEXPIRED 1538166745 KEYEXPIRED 1538166745 解决方法

版权声明:欢迎转载。转载请注明地址:https://blog.csdn.net/weixin_32820767 https://blog.csdn.net/weixin_32820767/article/details/83017479

ubuntu 16.04更新报错:

sudo apt-get update
命中:1 http://mirrors.aliyun.com/ubuntu xenial InRelease
命中:2 http://mirrors.aliyun.com/ubuntu xenial-security InRelease                                                                                                    
命中:3 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease                                                                                                     
命中:4 http://mirrors.aliyun.com/ubuntu xenial-proposed InRelease                                                                                                   
命中:5 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease                                                                                                   
命中:6 http://mirrors.aliyun.com/docker-engine/apt/repo ubuntu-xenial InRelease                                                                                      
获取:7 https://packages.microsoft.com/repos/vscode stable InRelease [2,802 B]                                                                                        
命中:8 https://download.docker.com/linux/ubuntu xenial InRelease                                                          
获取:9 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]                                               
获取:10 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  InRelease [1,106 B]                                        
获取:11 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  InRelease [1,136 B]                                                                     
获取:12 https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64  InRelease [1,129 B]                                                     
命中:13 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                                                                              
获取:14 https://packages.microsoft.com/repos/vscode stable/main amd64 Packages [70.4 kB]                 
获取:15 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]                                                              
命中:16 https://deb.nodesource.com/node_6.x xenial InRelease                                                                                         
错误:10 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  InRelease                                                                    
  下列签名无效: KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745
错误:11 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  InRelease                                                       
  下列签名无效: KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745
错误:12 https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64  InRelease                                          
  下列签名无效: KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745
命中:17 http://ppa.launchpad.net/ethereum/ethereum-dev/ubuntu xenial InRelease                                        
命中:18 http://ppa.launchpad.net/ethereum/ethereum/ubuntu xenial InRelease                                                                       
获取:19 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
获取:20 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.7 kB]
获取:21 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [68.0 kB]
获取:22 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [108 kB]
获取:23 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [856 kB]   
获取:24 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [150 kB]
忽略:25 https://dl.bintray.com/sbt/debian  InRelease                                                  
获取:26 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [767 kB]                                                                               
获取:27 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [320 kB]                                                                       
获取:28 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [227 kB]                                                                          
获取:29 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [690 kB]                                                                          
获取:30 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [632 kB]                                                                           
获取:31 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [247 kB]                                                                   
获取:32 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [333 kB]                                                                      
获取:33 https://dl.bintray.com/sbt/debian  Release [815 B]                                                                                                           
命中:33 https://dl.bintray.com/sbt/debian  Release                                                                                                                   
获取:35 http://cn.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,960 B]                                                                
获取:36 http://cn.archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]                                                                   
获取:37 http://cn.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]                                                                    
获取:38 http://cn.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,104 B]                                                                
错误:39 https://packagecloud.io/mrtazz/restclient-cpp/ubuntu xenial InRelease                                                                                        
  Connection timed out after 120990 milliseconds
已下载 4,894 kB,耗时 2分 3秒 (39.8 kB/s)
正在读取软件包列表... 完成
W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  InRelease: 下列签名无效:
 KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  InRelease: 下列签名
无效: KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64  InRelease: 下列签名无效: KEYEX
PIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745W: 无法下载 https://packagecloud.io/mrtazz/restclient-cpp/ubuntu/dists/xenial/InRelease  Connection timed out after 120990 milliseconds
W: 无法下载 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64/InRelease  下列签名无效: KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 15381667
45  KEYEXPIRED 1538166745W: 无法下载 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64/InRelease  下列签名无效: KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 153
8166745  KEYEXPIRED 1538166745W: 无法下载 https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64/InRelease  下列签名无效: KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KEYEXPIRED 1538166745  KE
YEXPIRED 1538166745W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。

表明密钥过期,需要更新
参考 ubuntu 12.04下owncloud更新出现KEYEXPIRED解决方法KEYEXPIRED for OwnCloud Ubuntu Package
最终,在 nvidia 镜像站找到更新 key的方法,参考 libnvidia-container: 的 Updating repository keysDebian-based distributions

curl -s -L https://nvidia.github.io/libnvidia-container/gpgkey | \
  sudo apt-key add -

试着更新一下:

 $ curl -s -L https://nvidia.github.io/libnvidia-container/gpgkey | \
>   sudo apt-key add -
OK

再更新软件:

$ sudo apt-get update
命中:1 http://mirrors.aliyun.com/ubuntu xenial InRelease
命中:2 http://mirrors.aliyun.com/ubuntu xenial-security InRelease                                                                                                    
命中:3 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease                                                                                                     
命中:4 http://mirrors.aliyun.com/ubuntu xenial-proposed InRelease                                                                                                    
命中:5 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease                                                                                                   
命中:6 http://mirrors.aliyun.com/docker-engine/apt/repo ubuntu-xenial InRelease                                                                                      
获取:7 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  InRelease [1,106 B]                                                                           
获取:8 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  InRelease [1,136 B]                                                     
命中:9 https://packages.microsoft.com/repos/vscode stable InRelease                                                           
命中:10 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                               
获取:11 https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64  InRelease [1,129 B]      
命中:12 http://security.ubuntu.com/ubuntu xenial-security InRelease                                                            
命中:13 https://download.docker.com/linux/ubuntu xenial InRelease                          
命中:14 http://ppa.launchpad.net/ethereum/ethereum-dev/ubuntu xenial InRelease
命中:15 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease                              
命中:16 https://deb.nodesource.com/node_6.x xenial InRelease                                      
命中:17 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease                            
命中:18 http://ppa.launchpad.net/ethereum/ethereum/ubuntu xenial InRelease                        
忽略:19 https://dl.bintray.com/sbt/debian  InRelease
获取:20 https://dl.bintray.com/sbt/debian  Release [815 B]                                                                                                           
命中:20 https://dl.bintray.com/sbt/debian  Release                                                                                                                   
命中:22 https://packagecloud.io/mrtazz/restclient-cpp/ubuntu xenial InRelease                                                                                        
已下载 3,371 B,耗时 33秒 (99 B/s)
正在读取软件包列表... 完成

done!

猜你喜欢

转载自blog.csdn.net/weixin_32820767/article/details/83017479