Re: BUG #18895: Installation failure on Fedora 42 due to missing repos

Laurenz Albe <laurenz.albe@cybertec.at>

From: Laurenz Albe <laurenz.albe@cybertec.at>
To: buschmann@nidsa.net, pgsql-bugs@lists.postgresql.org
Date: 2025-04-16T12:20:52Z
Lists: pgsql-bugs
On Wed, 2025-04-16 at 08:59 +0000, PG Bug reporting form wrote:
> Bug reference:      18895
> PostgreSQL version: 17.4
> Operating system:   Fedora 42 Server x86-64
> 
> Following the official availability of Fedora 42 on April 15 2025 I tried to
> upgrade some virtual machines with Fedora server x86-64.
> 
> In all cases Postgres 17.4 was installed from PGDG repositories (not the
> builtin version)
> 
> Postgres blocked the upgrade, so I removed all postgresql17* packages. The
> general upgrade of Fedora 41 to Fedora 42 then was successfull.
> 
> Trying to install the new repo from the installation website with:
> 
> sudo dnf install -y
> https://download.postgresql.org/pub/repos/yum/reporpms/F-42-x86_64/pgdg-fedora-repo-latest.noarch.rpm
> 
> resulted in:
> 
> Failed to download files
>  Librepo error: Status code: 404 for
> https://download.postgresql.org/pub/repos/yum/reporpms/F-42-x86_64/pgdg-fedora-repo-latest.noarch.rpm
> (IP: 2a04:4e42:8e::820)
> 
> I manually installed the repo from
> https://ftp.postgresql.org/pub/repos/yum/reporpms/F-42-x86_64/pgdg-fedora-repo-42.0-36PGDG.noarch.rpm
> 
> But further installation gave me:
> [root@linux ~]# dnf list postgresql17*
> Updating and loading repositories:
>  PostgreSQL common RPMs for Fedora 42 - x86_64                              
>                     100% |   5.1 KiB/s | 584.0   B |  00m00s
> > > > Status code: 404 for
> https://download.postgresql.org/pub/repos/yum/common/fedora/fedora-42-x86_64/repodata/repomd.xml
> (IP: 2a04:4e42:
> .. etc...
> 
> By looking to directory
> https://ftp.postgresql.org/pub/repos/yum/common/fedora/
> 
> ./
> fedora-40-x86_64/                                  14-Apr-2025 14:11        
>           -
> fedora-41-x86_64/                                  14-Apr-2025 14:11        
>           -
> 
> I noticed that fedora-42 is missing there.

This is a packaging problem.  I'll ping the pgsql-pkg-yum mailing list, where this belongs.

Yours,
Laurenz Albe