problem running apt update on jammy (InRelease is not signed) - Mailing list pgsql-pkg-debian

From Fernan Aguero
Subject problem running apt update on jammy (InRelease is not signed)
Date
Msg-id CAC62LX5sb+saA4WQnBF+bhe4R1T3Ft+V=NzX7k6Q-KMWBfMdqQ@mail.gmail.com
Whole thread
Responses Re: problem running apt update on jammy (InRelease is not signed)
List pgsql-pkg-debian
Hi all, 

I am running into this problem with apt in Ubuntu jammy (22.04 LTS), see error message below. Not sure how to fix this or work around this. 

I have followed all guidelines on https://wiki.postgresql.org/wiki/Apt, the certificates are up to date. I also removed outdated apt lists, but it was to no avail. 

I'd appreciate any help resolving this. Thanks!

# sudo rm /var/lib/apt/lists/*
# sudo apt update
[...]
Get:10 https://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease [180 kB]
Err:10 https://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease
  Splitting up /var/lib/apt/lists/partial/apt.postgresql.org_pub_repos_apt_dists_jammy-pgdg_InRelease into data and signature failed
[...]
Reading package lists... Done
W: GPG error: https://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease: Splitting up /var/lib/apt/lists/partial/apt.postgresql.org_pub_repos_apt_dists_jammy-pgdg_InRelease into data and signature failed
E: The repository 'https://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

# sudo cat /etc/apt/sources.list.d/pgdg.sources
Types: deb
URIs: https://apt.postgresql.org/pub/repos/apt
Suites: jammy-pgdg
Components: main
Signed-By: /etc/apt/trusted.gpg.d/apt.postgresql.org.asc

# sudo find /etc/apt/ -iname '*postgresql*'
/etc/apt/apt.conf.d/02autoremove-postgresql
/etc/apt/trusted.gpg.d/postgresql.gpg
/etc/apt/trusted.gpg.d/apt.postgresql.org.asc
/etc/apt/trusted.gpg.d/apt.postgresql.org.gpg

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy


--
fernan

// Don't it always seem to go,
   that you don't know what you've got 
   till it's gone
   
   They paved paradise 
   and put up a parking lot.
   -- Joni Mitchell // 


Attachment

pgsql-pkg-debian by date:

Previous
From: apt.postgresql.org Repository Update
Date:
Subject: plr updated to version 1:8.4.8.6-1.pgdg+1
Next
From: Christoph Berg
Date:
Subject: Re: problem running apt update on jammy (InRelease is not signed)