Open sgrinko opened 1 year ago
We look forward to fixing this issue. For this reason, it is not possible to build new docker containers with PostgreSQL.
W: Failed to fetch https://repo.postgrespro.ru/pg_probackup/deb/dists/bullseye/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 213.171.56.11 443]
I managed to fix it by install ca-certificates
apt-get install ca-certificates
I would like to listen to your opinion about this problem in your repository. My solution is correct?
I can't reproduce the certificate error on a clean Debian 11.7 (latest at the moment) Docker image. Please follow the installation instructions and check if the problem still exists. Major CA certificates like the one repo.postgrespro.ru is using are built into OS distributions so normally you don't have to install them separately.
Change key filename GPG-KEY-PG_PROBACKUP to GPG-KEY-PG-PROBACKUP: https://repo.postgrespro.ru/pg_probackup/keys/GPG-KEY-PG-PROBACKUP
...but the right and secure way to add repo\store key is:
# Установка pg_probackup
RUN mkdir -p /etc/apt/keyrings && \
# Установка ключа и репозитория
curl -o /tmp/pg_probackup.asc https://repo.postgrespro.ru/pg_probackup/keys/GPG-KEY-PG-PROBACKUP && \
gpg --no-default-keyring --keyring /tmp/keyring.gpg --import /tmp/pg_probackup.asc && \
gpg --no-default-keyring --keyring /tmp/keyring.gpg --export --output /etc/apt/keyrings/pg_probackup.gpg && \
sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/pg_probackup.gpg] https://repo.postgrespro.ru/pg_probackup/deb/ $(lsb_release -cs) main-$(lsb_release -cs)" > /etc/apt/sources.list.d/pg_probackup.list' && \
rm /tmp/pg_probackup.asc && \
rm /tmp/keyring.gpg && \
# Установка пакетов
apt-get update && \
apt-get install pg-probackup-$NODE_PG_VERSION && \
apt-get install pg-probackup-$NODE_PG_VERSION-dbg && \
ln -sr /usr/bin/pg_probackup-$NODE_PG_VERSION /usr/bin/pg_probackup
from https://askubuntu.com/questions/1286545/what-commands-exactly-should-replace-the-deprecated-apt-key
With this OS there is a problem with installing the repository key.
out
apt-key is deprecated
- Now you need to refuse to use this utilityI solved the problem with such commands:
out:
This command
apt-get update
was not completed.I ask you to finalize before compatibility with Debian 11
Thank you!