Что делать, если срок действия сертификата www.postgres.org истек?

У меня также была эта проблема на только что установленной системе(5.0.0-25-genericверсии ядра )с процессором Ryzen 5 3600 и Nvidia RTX 2060. Установка пакетов amd-disable-c6или HWE не помогла, но помогла установка драйверов nvidia. Вот как я это делаю:

  • Добавьте следующие строки в/etc/modprobe.d/nvidia-graphics-drivers.conf
blacklist nouveau
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off
  • Добавить переменную nomodesetв GRUB_CMDLINE_LINUX_DEFAULTв файле /etc/default/grub, чтобы она выглядела так:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
  • Выполнитьsudo update-grub
  • Перезагрузка
  • Добавить репозиторий ppa:
sudo add-apt-repository ppa:graphics-drivers/ppa
  • Переключитесь на уровень запуска 3, введя sudo init 3. Если после этого вы видите черный экран, переключитесь на tty/1 с помощьюCTRL+ALT+F1
  • Установить драйвер
sudo apt-get install nvidia-driver-430
  • Перезагрузка

После этого у меня вообще не было зависаний.

2
04.10.2021, 21:08
1 ответ

Спасибо LSerni за то, что указал мне правильное направление . Мне потребовался еще один шаг, чтобы решить проблему в моем случае:явно отключивmozilla/DST_Root_CA_X3.crt(с помощью sed, см. ниже )в /etc/ca-certificates.conf.

Также интересно отметить, что я не смог воспроизвести ошибку в Docker с помощью debian:stretch, но я могу воспроизвести ее с помощью python:3.7.8-stretch.

Команды для воспроизведения ошибки, по сути, это только эти 3:

apt-get update && apt-get install -y lsb-release wget
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -

Выполнение приведенных выше команд приведет к выводу gpg: no valid OpenPGP data found., что является основной проблемой.

Идентификатор изображения для воспроизведения ошибки:

me@home$ docker images
REPOSITORY                        TAG             IMAGE ID       CREATED         SIZE
python                            3.7.8-stretch   b64658cdf594   14 months ago   902MB

Вывод, воспроизводящий ошибку:

me@home$ docker run -it python:3.7.8-stretch /bin/bash
root@771da843c08d:/# apt-get update && apt-get install -y lsb-release wget
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [53.0 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]           
Get:5 http://deb.debian.org/debian stretch Release.gpg [3177 B]                  
Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [720 kB]
Get:7 http://deb.debian.org/debian stretch/main amd64 Packages [7080 kB]         
Fetched 8067 kB in 1s (4448 kB/s)                     
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
wget is already the newest version (1.18-5+deb9u3).
Suggested packages:
  lsb
The following NEW packages will be installed:
  distro-info-data lsb-release
0 upgraded, 2 newly installed, 0 to remove and 106 not upgraded.
Need to get 32.9 kB of archives.
After this operation, 78.8 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 distro-info-data all 0.36 [5810 B]
Get:2 http://deb.debian.org/debian stretch/main amd64 lsb-release all 9.20161125 [27.1 kB]
Fetched 32.9 kB in 0s (274 kB/s)       
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package distro-info-data.
(Reading database... 30586 files and directories currently installed.)
Preparing to unpack.../distro-info-data_0.36_all.deb...
Unpacking distro-info-data (0.36)...
Selecting previously unselected package lsb-release.
Preparing to unpack.../lsb-release_9.20161125_all.deb...
Unpacking lsb-release (9.20161125)...
Setting up distro-info-data (0.36)...
Setting up lsb-release (9.20161125)...
root@771da843c08d:/# sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
root@771da843c08d:/# wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
gpg: no valid OpenPGP data found.

Выходные данные (, включая шаг решения ), показывающий решенную проблему:

root@479753dc1044:/# sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
root@479753dc1044:/# # Remove the DST X3 root certificate, per
root@479753dc1044:/# # https://medium.com/geekculture/will-you-be-impacted-by-letsencrypt-dst-root-ca-x3-expiration-d54a018df257
root@479753dc1044:/# sed -i 's/mozilla\/DST_Root_CA_X3.crt/!mozilla\/DST_Root_CA_X3.crt/g' /etc/ca-certificates.conf
root@479753dc1044:/# update-ca-certificates
Updating certificates in /etc/ssl/certs...
0 added, 1 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
root@479753dc1044:/# wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
OK
root@479753dc1044:/# apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch Release 
Get:6 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease [81.6 kB]
Get:7 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages [270 kB]
Fetched 352 kB in 1s (220 kB/s)  
Reading package lists... Done

После того, как вы применили указанное выше исправление, вы можете (продолжить, например, установить старый клиент Postgres ).

root@479753dc1044:/# apt-get -y install postgresql-client-12
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libpq-dev libpq5 pgdg-keyring postgresql-client-common
Suggested packages:
  postgresql-doc-14 postgresql-12 postgresql-doc-12
The following NEW packages will be installed:
  pgdg-keyring postgresql-client-12 postgresql-client-common
The following packages will be upgraded:
  libpq-dev libpq5
2 upgraded, 3 newly installed, 0 to remove and 104 not upgraded.
Need to get 1823 kB of archives.
After this operation, 6032 kB of additional disk space will be used.
Get:1 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 libpq-dev amd64 14.0-1.pgdg90+1 [135 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 libpq5 amd64 14.0-1.pgdg90+1 [169 kB]
Get:3 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 pgdg-keyring all 2018.2 [10.7 kB]
Get:4 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 postgresql-client-common all 231.pgdg90+1 [91.3 kB]
Get:5 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 postgresql-client-12 amd64 12.8-1.pgdg90+1 [1417 kB]
Fetched 1823 kB in 1s (1422 kB/s)              
debconf: delaying package configuration, since apt-utils is not installed
(Reading database... 30604 files and directories currently installed.)
Preparing to unpack.../libpq-dev_14.0-1.pgdg90+1_amd64.deb...
Unpacking libpq-dev (14.0-1.pgdg90+1) over (9.6.17-0+deb9u1)...
Preparing to unpack.../libpq5_14.0-1.pgdg90+1_amd64.deb...
Unpacking libpq5:amd64 (14.0-1.pgdg90+1) over (9.6.17-0+deb9u1)...
Selecting previously unselected package pgdg-keyring.
Preparing to unpack.../pgdg-keyring_2018.2_all.deb...
Unpacking pgdg-keyring (2018.2)...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack.../postgresql-client-common_231.pgdg90+1_all.deb...
Unpacking postgresql-client-common (231.pgdg90+1)...
Selecting previously unselected package postgresql-client-12.
Preparing to unpack.../postgresql-client-12_12.8-1.pgdg90+1_amd64.deb...
Unpacking postgresql-client-12 (12.8-1.pgdg90+1)...
Setting up libpq5:amd64 (14.0-1.pgdg90+1)...
Processing triggers for libc-bin (2.24-11+deb9u4)...
Setting up pgdg-keyring (2018.2)...
Removing apt.postgresql.org key from trusted.gpg: OK
Setting up libpq-dev (14.0-1.pgdg90+1)...
Setting up postgresql-client-common (231.pgdg90+1)...
Setting up postgresql-client-12 (12.8-1.pgdg90+1)...
update-alternatives: using /usr/share/postgresql/12/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
3
08.10.2021, 14:08

Теги

Похожие вопросы