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

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

From
PG Bug reporting form
Date:
The following bug has been logged on the website:

Bug reference:      18895
Logged by:          Hans Buschmann
Email address:      buschmann@nidsa.net
PostgreSQL version: 17.4
Operating system:   Fedora 42 Server x86-64
Description:

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 may be the reason for the installation failure.

Perhaps I am missing something else so please give me some advise...

Thanks in advance

Hans Buschmann


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



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

From
Devrim Gündüz
Date:
Hi,

On Wed, 2025-04-16 at 08:59 +0000, PG Bug reporting form wrote:
> 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.

It takes some time to build the packages from scratch (with the stable
version of the OS), verifying and syncing them. Just finished syncing.
dnf system-upgrade should work. There are 2 known issues that I
documented here:

https://yum.postgresql.org/news/fedora-42-packages-released/

But:

>
> 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)

That is a problem indeed and we are working on fixing it. Until then you
can use this direct link for now:

https://download.postgresql.org/pub/repos/yum/reporpms/F-42-x86_64/pgdg-fedora-repo-42.0-38PGDG.noarch.rpm

-HTH
--
Devrim Gündüz
Open Source Solution Architect, PostgreSQL Major Contributor
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachment

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

From
Devrim Gündüz
Date:
Hi,

On Wed, 2025-04-16 at 15:41 +0300, Devrim Gündüz wrote:
> >
> > 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)

This is also fixed. Sorry for the inconvenience.

Regards,
--
Devrim Gündüz
Open Source Solution Architect, PostgreSQL Major Contributor
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachment