Table of contents
Introduction: After changing the domestic source, the Raspberry Pi tries to update and synchronize the software package versions of the software sources listed in /etc/apt/sources.list and /etc/apt/sources.list.d (apt-get update) and updating all installed or specified packages (that is, apt-get upgrade) an error occurred:
According to the displayed error, complete the following signature, that is, configure a public key locally: 9165938D90FDDD2E
The source I configured here is from Tsinghua University. Maybe the public key you need to configure is different from mine. Just follow the prompts and change it to yours.
Solution:
gpg --keyserver keyserver.ubuntu.com --recv-keys [prompt public key]
gpg --export --armor [prompt public key] | sudo apt-key add -
After the solution is complete, enter:
sudo apt-get update
sudo apt-get upgrade
In addition, if you don’t know the address of your source change, you can search it in the above address.
For example, if you select your system version and other related information in the first red box, the next red box will automatically generate the corresponding address.