On Sun, Oct 03, 2021 at 01:57:00PM +0000, Andrew M.A. Cater wrote: > On Sun, Oct 03, 2021 at 07:33:40AM -0600, William Torrez Corea wrote: > > *apt-get update * > > Err:13 http://apt.postgresql.org/pub/repos/apt buster-pgdg InRelease > > The following signatures couldn't be verified because the public key is > > not available: NO_PUBKEY 7FCC7D46ACCC4CF8 > > Reading package lists... Done > > W: GPG error: http://apt.postgresql.org/pub/repos/apt buster-pgdg > > InRelease: The following signatures couldn't be verified because the public > > key is not available: NO_PUBKEY 7FCC7D46ACCC4CF8 > > E: The repository 'http://apt.postgresql.org/pub/repos/apt buster-pgdg > > InRelease' is not signed. > > N: Updating from such a repository can't be done securely, and is therefore > > disabled by default. > > N: See apt-secure(8) manpage for repository creation and user configuration > > details. > > > > Hi William, > > 1. This is a third party repository not Debian so any advice here can only > be a best guess. Is there a reason why you are using this particularly > rather than using the packages inside Debian?
[...] Actually, the instructions are here https://wiki.postgresql.org/wiki/Apt (if you go to https://apt.postgresql.org/ you get redirected to the above wiki page, so the PostgreSQL folks have really taken pains to make sure nobody misses it). Quoting from that page: Quickstart ---------- Import the repository key from https://www.postgresql.org/media/keys/ACCC4CF8.asc: sudo apt install curl ca-certificates gnupg curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null Create /etc/apt/sources.list.d/pgdg.list. The distributions are called codename-pgdg. In the example, replace buster with the actual distribution you are using. File contents: Let us know whether there is still anything unclear. Cheers - t
signature.asc
Description: Digital signature