Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3555

Raspberry Pi OS • Re: Cannot "sudo apt update" after failed Postgresql install

$
0
0
Many thanks. Googled and there are tens of writings on that error message. Tried them one by one until the below one that 'partially' solved the issue

1. the file /etc/apt/sources.list.d/pgdg.list was renamed to /etc/apt/sources.list.d/old_pgdg.list. NOT SOLVED

2, use nano, add # to commend out the only one line in old_pgdg.list SOLVED
The one line in file is:
#deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main

3. Now I can issue update and it still try to get the PostgreSQL and reported no public key (and seem no harm now). Any idea if I should leave it as that or try to eliminate the warning but kind of afraid that I may mess it up :(

Is the message with "W" warning?

$ sudo apt update
........

Err:7 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FCC7D46ACCC4CF8
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
....
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FCC7D46ACCC4CF8
W: Failed to fetch https://apt.postgresql.org/pub/repos/ap ... /InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FCC7D46ACCC4CF8
W: Some index files failed to download. They have been ignored, or old ones used instead.

Statistics: Posted by David16962 — Mon Dec 02, 2024 7:52 pm



Viewing all articles
Browse latest Browse all 3555

Trending Articles