System update error: no_PUBKEY [How to Solve]

Error message

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.

Netizens said that the certificate signature has expired and needs to be obtained again

Source

deb http://http.kali.org/kali kali-rolling main non-free contrib

Solution

wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add

Add another source

deb http://http.kali.org/kali kali-rolling main non-free contrib
#ubuntu
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse

 

Because some installation packages are only available in the Ubuntu source, they are easy to install after adding

Execute

sudo apt-get update

Error reporting:

W: GPG error: http://mirrors.aliyun.com/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://mirrors.aliyun.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

The reason is the same as above

Settle

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

Hint

gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/run/user/0/gnupg/d.yxdtz3qfxad3bakdigbecgmf/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr

 

Installation related dependencies:

apt-get install software-properties-common dirmngr

Again

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32

OK

sudo apt-get update

OK

Similar Posts: