Most third-party repositories configured in /etc/apt/sources.list.d have a signing key configured like this for example: deb [signed-by=/etc/apt/keyrings/lutris.gpg] https://.
However, some like the one for postgresql do not have this configured. Is that a problem? If that can be a problem but isn't necessarily one how to check if it is? In specific, the postgresql repo has a repository signing key but why doesn't it need to be specified there?
In addition, when running these steps at that Linux download page for the database when running
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - it already says Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
and when running sudo apt-get update the output includes:
W: https://apt.postgresql.org/pub/repos/apt/dists/bookworm-pgdg/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease' doesn't support architecture 'i386'
- The latter problem can be solved by editing the file
kwrite /etc/apt/sources.list.d/pgdg.listto make it saydeb [arch=amd64] https:...but that shouldn't be required (the setup should work as is). - That only leaves the legacy trusted.gpg keyring problem which can be solved with the long
for ...command from here (which certainly shouldn't be required! it should auto-import the keys by default or after prompting the user and at the least the guide on the download page should not be outdated). - Having done all this, the question left is whether it isn't a problem that the signing key isn't specified in the pgdg.list file. Also the download page needs to get updated.