Title: Resolving apt-get Errors with Invalid Signatures on Raspberry Pi 5 SBCs
Introduction
In this article, we will discuss a common issue encountered when working with Raspberry Pi Single Board Computers (SBCs) - apt-get errors with invalid signatures. Despite the system working at 99%, the apt-get update command fails, preventing the installation of new packages. This issue is usually encountered when the environment includes a TFTP server, NAS scale, and one TFTP boot on the root.
Understanding the Problem
The apt-get update command is used to synchronize the package index files from the repositories to the local system's package cache. However, if the system's package index files are not properly signed, or the system's public keyring is not up-to-date, apt-get will refuse to install or upgrade any packages, displaying an error message about invalid signatures.
Resolving the Issue
To resolve this issue, follow these steps:
-
Update the package index files: Even though the apt-get update command is failing, you can still update the package index files by using the wget command to download the package lists directly from the repositories.
sudo wget -q -O - https://archive.raspbian.org/raspbian/dists/buster/InRelease | sudo apt-key add - sudo wget -q -O - https://archive.raspbian.org/raspbian/dists/buster/release | sudo apt-key add - sudo apt-get update -
Update the system's public keyring: If the system's public keyring is not up-to-date, you can update it using the following command:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 52CD3F50BAB3FF8B1769B3790F76CCC8 -
Check the apt sources: It's also a good practice to check the apt sources to ensure they are correct. You can do this by running:
sudo nano /etc/apt/sources.listEnsure the sources are correct and match the official Raspberry Pi repositories.
Conclusion
By following these steps, you should be able to resolve apt-get errors with invalid signatures on your Raspberry Pi 5 SBCs. If you continue to encounter issues, consider checking your network configuration and ensuring your system is up-to-date.