1. 程式人生 > >ubuntu 16.04 sudo apt-get update 報錯:下列簽名無效: KEYEXPIRED 1538166745 KEYEXPIRED 1538166745 解決方法

ubuntu 16.04 sudo apt-get update 報錯:下列簽名無效: KEYEXPIRED 1538166745 KEYEXPIRED 1538166745 解決方法

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: 部分索引檔案下載失敗。如果忽略它們,那將轉而使用舊的索引檔案。
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!