sudo apt-get update digital signature error Solution

lzb@lzb:~/projects/curl-master$ sudo apt-get update
命中: 1 http: // mirrors.aliyun.com/ubuntu great InRelease 
命中: 2 http: // mirrors.aliyun.com/ubuntu great-updates InRelease                
命中: 3 http: // mirrors.aliyun.com/ubuntu xenial- backports InRelease              
获取: 4 http: // mirrors.aliyun.com/ubuntu great-security InRelease [109 kB]      
命中: 5 http: // ppa.launchpad.net/xqms/opencv-nonfree/ubuntu great InRelease     
获取: 6 http : // packages.ros.org/ros/ubuntu great InRelease [4,678 B]            
错误:6 HTTP: // packages.ros.org/ros/ubuntu xenial InRelease                      
  because the public key can not be verified following signature: NO_PUBKEY F42ED6FBAB17C654
Ignore: 7 HTTP: // cz.archive.ubuntu.com/ubuntu Trusty InRelease                     
get: 8 HTTP: // cz.archive.ubuntu.com/ubuntu Trusty Release [58.5 kB] 
has been downloaded 172 kB, took five seconds ( 29.7 kB / S)
Reading package lists ... Done
W: An error occurred while checking digital signatures. This warehouse has not been updated, so there is still using the previous index files. GPG error: HTTP: // packages.ros.org/ros/ubuntu xenial InRelease: because the public key can not be verified following signature: NO_PUBKEY F42ED6FBAB17C654 
W: can not download HTTP: // packages.ros.org/ros/ubuntu/dists / xenial / InRelease because the public key can not be verified following signature: NO_PUBKEY F42ED6FBAB17C654 
W: part of the index file download failed. If you ignore them, they will revert to the old index file.

 

lzb@lzb:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654
Executing: /tmp/tmp.C8vIft7L95/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
F42ED6FBAB17C654
gpg: download key 'AB17C654', keyserver.ubuntu.com server from hkp
gpg: Key AB17C654: public key "the Open Robotics <[email protected]> " has been introduced
gpg: Total number being treated: . 1 
gpg: imported: . 1   (the RSA: . 1 )

 

Guess you like

Origin www.cnblogs.com/liuzhenbo/p/11032733.html