Quick one here: I was getting an issue the installing packages on Raspbian which I can easily occur elsewhere. This was a very sore, abused, and then neglected Raspberry Pi!
[email protected] ~ $ sudo apt-get update Ign:1 http://deb.debian.org/debian stretch InRelease Get:2 http://deb.debian.org/debian-security stretch/updates InRelease [94.3 kB] Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB] Get:4 http://deb.debian.org/debian stretch Release [118 kB] Ign:2 http://deb.debian.org/debian-security stretch/updates InRelease Get:5 http://deb.debian.org/debian stretch Release.gpg [2,434 B] Get:6 http://deb.debian.org/debian-security stretch/updates/main Sources [179 kB] Ign:3 http://deb.debian.org/debian stretch-updates InRelease Get:7 http://deb.debian.org/debian-security stretch/updates/main armhf Packages [432 kB] Get:8 http://deb.debian.org/debian-security stretch/updates/main Translation-en [192 kB] Get:9 http://deb.debian.org/debian stretch-updates/main Sources [3,752 B] Ign:5 http://deb.debian.org/debian stretch Release.gpg Get:10 http://deb.debian.org/debian stretch-updates/main armhf Packages [5,112 B] Get:11 http://deb.debian.org/debian stretch-updates/main Translation-en [4,512 B] Get:12 http://deb.debian.org/debian stretch/main Sources [6,758 kB] Get:13 http://deb.debian.org/debian stretch/main armhf Packages [6,927 kB] Get:14 http://deb.debian.org/debian stretch/main Translation-en [5,393 kB] Fetched 20.2 MB in 49s (411 kB/s) Reading package lists... Done W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory) W: GPG error: http://deb.debian.org/debian-security stretch/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553 W: The repository 'http://deb.debian.org/debian-security stretch/updates InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://deb.debian.org/debian stretch-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 W: The repository 'http://deb.debian.org/debian stretch-updates InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://deb.debian.org/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500 W: The repository 'http://deb.debian.org/debian stretch Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.
I just needed to add the correct keys for each that did not have a correct key.
[email protected] ~ $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EF0F382A1A7B6500 Executing: /tmp/apt-key-gpghome.cYHo45LmGV/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys EF0F382A1A7B6500 gpg: key EF0F382A1A7B6500: public key "Debian Stable Release Key (9/stretch)" imported gpg: Total number processed: 1 gpg: imported: 1
And to update:
[email protected] ~ $ sudo apt-get update Ign:1 http://deb.debian.org/debian stretch InRelease Get:2 http://deb.debian.org/debian-security stretch/updates InRelease [94.3 kB] Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB] Hit:4 http://deb.debian.org/debian stretch Release Get:5 http://deb.debian.org/debian stretch Release.gpg [2,434 B] Fetched 188 kB in 3s (51.0 kB/s) Reading package lists... Done
Much nicer!