• okass 在版块 Linux平台 中发起了话题 ubuntu apt-get 出现NO_PUBKEY的解决方案 3年, 1个月前

    sudo apt-get update

    报错如下:
    The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
    Fetched 4,678 B in 2s (1,902 B/s)
    Reading package lists… Done
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ros.org/ros/ubuntu xenial InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
    W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/xenial/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
    W: Some index files failed to download. They have been ignored, or old ones used instead.

     

    解决方案:

    apt-key adv –keyserver keyserver.ubuntu.com –recv-keys xxx   %xxx替换成报错的F42ED6FBAB17C654

    apt-key adv –[两短横]recv-keys –[两短横]keyserver keyserver.ubuntu.com xxx

    再进行sudo apt-get update发现问题解决

WirelessLink
Logo