I was trying to install PostgreSQL from the directions giving on the PostgreSQL website. I’ve now found out that I can install in via “apt install postgresql”. However, I need to resolve/cleanup the following error message before I can continue:
Conflicting values set for option Signed-By regarding source https://apt.postgresql.org/pub/repos/apt/ noble-pgdg: /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc != /usr/share/postgresql-common/pgdg/apt.postgresql.org.gpg
E: The list of sources could not be read.
How do I clean up the above error to move forward?
I’m unable to get anything to work with “apt”, whenever I enter any apt command I get the same error message:
E: Conflicting values set for option Signed-By regarding source https://apt.postgresql.org/pub/repos/apt/ noble-pgdg: /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc != /usr/share/postgresql-common/pgdg/apt.postgresql.org.gpg
E: The list of sources could not be read.
It seems the PostgreSQL APT repository may possibly be configured twice (or perhaps inconsistently).
Not important how it got there, let’s see what we can do to clean things up.
Run this in the terminal and post the output with code tags </> on the ribbon: grep -r "apt.postgresql.org" /etc/apt/sources.list /etc/apt/sources.list.d/
One more question, how to I get rid of the error message below:
Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://apt.postgresql.org/pub/repos/apt noble-pgdg InRelease' doesn't support architecture 'i386'
type or paste code here