public inbox for [email protected]
help / color / mirror / Atom feedno /repodata/repomd.xml
5+ messages / 2 participants
[nested] [flat]
* no /repodata/repomd.xml
@ 2024-06-04 22:59 [email protected]
2024-06-05 09:22 ` Re: no /repodata/repomd.xml Devrim Gündüz <[email protected]>
0 siblings, 1 reply; 5+ messages in thread
From: [email protected] @ 2024-06-04 22:59 UTC (permalink / raw)
To: [email protected]
Classification: UNCLASSIFIED
======================================================
Hello,
I've been wrestling with this for days. I believe that I've fixed it. Here's
how. Web searches were virtually zero help. Your "latest" repo rpm url has
no repodata/repomd.xml
Index of /pub/repos/yum/reporpms/EL-9-x86_64/ (postgresql.org)
<https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/;
The URL pointed at by PostgreSQL: Linux downloads (Red Hat family)
<https://www.postgresql.org/download/linux/redhat/; does have
repodata/repomd.xml
Index of /pub/repos/yum/common/redhat/rhel-9-x86_64/ (postgresql.org)
<https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-9-x86_64/;
My command and error:
sudo dnf install postgresql-server
-or-
sudo dnf install postgresql16-server
Updating Subscription Management repositories.
postgres repository
146 B/s | 146 B 00:01
Errors during downloading metadata for repository 'postgres':
- Status code: 404 for
https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redh
at-repo-latest.noarch.rpm/repodata/repomd.xml (IP: 72.32.157.246)
Error: Failed to download metadata for repo 'postgres': Cannot download
repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
I found this page that talks about RHEL 9 FIPS mode PostgreSQL RPM
repository GPG key update - 3 January 2024 - PostgreSQL YUM Repository
<https://yum.postgresql.org/news/pgdg-rpm-repo-gpg-key-update/;
But then I remembered that my error was about 404, not GPG.
I tried switching the repository URL in yum.repos.d/postgres.repo to
explicitly point to the rpm in the path that does include
repodata/repomd.xml
baseurl =
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-9-x86_64/pg
dg-redhat-repo-42.0-43PGDG.noarch.rpm
but I still get the error
- Status code: 404 for
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-9-x86_64/pg
dg-redhat-repo-42.0-43PGDG.noarch.rpm/repodata/repomd.xml (IP:
217.196.149.55)
Finally I removed the file part of the URL in postgres.repo
baseurl =
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-9-x86_64/
installing postgres worked!
I don't know if this is a problem with RHEL 9 or FIPS mode or what, but if
there's anything that you can do I bet the community would greatly
appreciate it.
My dnf/modules.d/postgresql.module looks like this
[postgresql]
name=postgresql
stream=16
profiles=
state=enabled
thanks for reading,
Matt
======================================================
Classification: UNCLASSIFIED
Attachments:
[application/pkcs7-signature] smime.p7s (6.5K, 3-smime.p7s)
download
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: no /repodata/repomd.xml
2024-06-04 22:59 no /repodata/repomd.xml [email protected]
@ 2024-06-05 09:22 ` Devrim Gündüz <[email protected]>
2024-06-05 16:08 ` RE: [Non-DoD Source] Re: no /repodata/repomd.xml [email protected]
0 siblings, 1 reply; 5+ messages in thread
From: Devrim Gündüz @ 2024-06-05 09:22 UTC (permalink / raw)
To: [email protected]; [email protected]
Hi,
On Tue, 2024-06-04 at 22:59 +0000, [email protected] wrote:
> I've been wrestling with this for days. I believe that I've fixed it.
> Here's how. Web searches were virtually zero help.
This is not surprising as you created an impossible problem and tried to
find a solution for that.
> Your "latest" repo rpm url has no repodata/repomd.xml
Yeah, because it is a repo *RPM*.
>
>
> The URL pointed at by PostgreSQL: Linux downloads (Red Hat family)
> <https://www.postgresql.org/download/linux/redhat/> does have
> repodata/repomd.xml
I believe you messed up everything badly. Both that site and
https://yum.postgresql.org/howto/ has the same instructions:
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rp...
sudo dnf install postgresql16-server
This is all you need to do. What went wrong on your case?
Regards,
--
Devrim Gündüz
Open Source Solution Architect, PostgreSQL Major Contributor
Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachments:
[application/pgp-signature] signature.asc (858B, 2-signature.asc)
download
^ permalink raw reply [nested|flat] 5+ messages in thread
* RE: [Non-DoD Source] Re: no /repodata/repomd.xml
2024-06-04 22:59 no /repodata/repomd.xml [email protected]
2024-06-05 09:22 ` Re: no /repodata/repomd.xml Devrim Gündüz <[email protected]>
@ 2024-06-05 16:08 ` [email protected]
2024-06-10 19:32 ` Re: [Non-DoD Source] Re: no /repodata/repomd.xml Devrim Gündüz <[email protected]>
0 siblings, 1 reply; 5+ messages in thread
From: [email protected] @ 2024-06-05 16:08 UTC (permalink / raw)
To: [email protected]; [email protected]
Classification: UNCLASSIFIED
======================================================
On a Redhat 9 FIPS machine I copy pasted the instructions exactly as they appeared for postgres 16, redhat 9, x86-64
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rp...
sudo dnf -qy module disable postgresql
sudo dnf install -y postgresql16-server
Upon executing the third instruction I got the 404 error.
The only thing that fixed it was removing the file part of the url in /etc/yum.repos.d/postgres.repo
baseurl = https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-9-x86_64/
believe me or not. It doesn't matter to me.
Matt
-----Original Message-----
From: Devrim Gündüz <[email protected]>
Sent: Wednesday, June 5, 2024 5:23 AM
To: Smith Matthew S NGA-TEID USA CTR <[email protected]>; [email protected]
Subject: [Non-DoD Source] Re: no /repodata/repomd.xml
Hi,
On Tue, 2024-06-04 at 22:59 +0000, [email protected] wrote:
> I've been wrestling with this for days. I believe that I've fixed it.
> Here's how. Web searches were virtually zero help.
This is not surprising as you created an impossible problem and tried to find a solution for that.
> Your "latest" repo rpm url has no repodata/repomd.xml
Yeah, because it is a repo *RPM*.
>
>
> The URL pointed at by PostgreSQL: Linux downloads (Red Hat family)
> <https://www.postgresql.org/download/linux/redhat/; does have
> repodata/repomd.xml
I believe you messed up everything badly. Both that site and https://yum.postgresql.org/howto/ has the same instructions:
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rp...
sudo dnf install postgresql16-server
This is all you need to do. What went wrong on your case?
Regards,
--
Devrim Gündüz
Open Source Solution Architect, PostgreSQL Major Contributor
Twitter: @DevrimGunduz , @DevrimGunduzTR
======================================================
Classification: UNCLASSIFIED
Attachments:
[application/pkcs7-signature] smime.p7s (6.5K, 2-smime.p7s)
download
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: [Non-DoD Source] Re: no /repodata/repomd.xml
2024-06-04 22:59 no /repodata/repomd.xml [email protected]
2024-06-05 09:22 ` Re: no /repodata/repomd.xml Devrim Gündüz <[email protected]>
2024-06-05 16:08 ` RE: [Non-DoD Source] Re: no /repodata/repomd.xml [email protected]
@ 2024-06-10 19:32 ` Devrim Gündüz <[email protected]>
2024-06-10 21:26 ` RE: [Non-DoD Source] Re: no /repodata/repomd.xml [email protected]
0 siblings, 1 reply; 5+ messages in thread
From: Devrim Gündüz @ 2024-06-10 19:32 UTC (permalink / raw)
To: [email protected]; [email protected]
Hi,
On Wed, 2024-06-05 at 16:08 +0000, [email protected] wrote:
> The only thing that fixed it was removing the file part of the url in
> /etc/yum.repos.d/postgres.repo
Is this a typo or is the file name really postgres.repo?
Regards,
--
Devrim Gündüz
Open Source Solution Architect, PostgreSQL Major Contributor
Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachments:
[application/pgp-signature] signature.asc (858B, 2-signature.asc)
download
^ permalink raw reply [nested|flat] 5+ messages in thread
* RE: [Non-DoD Source] Re: no /repodata/repomd.xml
2024-06-04 22:59 no /repodata/repomd.xml [email protected]
2024-06-05 09:22 ` Re: no /repodata/repomd.xml Devrim Gündüz <[email protected]>
2024-06-05 16:08 ` RE: [Non-DoD Source] Re: no /repodata/repomd.xml [email protected]
2024-06-10 19:32 ` Re: [Non-DoD Source] Re: no /repodata/repomd.xml Devrim Gündüz <[email protected]>
@ 2024-06-10 21:26 ` [email protected]
0 siblings, 0 replies; 5+ messages in thread
From: [email protected] @ 2024-06-10 21:26 UTC (permalink / raw)
To: [email protected]; [email protected]
Classification: UNCLASSIFIED
======================================================
Hi,
It's really postgres.repo
It was added with the ansible module yum_repository. I gave it the name "postgres". I was new to ansible and a little confused about that nodule. Now I see an rpm-key module that seems like it would be used when I have a URL to a repo rpm. I haven't tried it yet.
Matt
-----Original Message-----
From: Devrim Gündüz <[email protected]>
Sent: Monday, June 10, 2024 3:33 PM
To: Smith Matthew S NGA-TEID USA CTR <[email protected]>; [email protected]
Subject: Re: [Non-DoD Source] Re: no /repodata/repomd.xml
Hi,
On Wed, 2024-06-05 at 16:08 +0000, [email protected] wrote:
> The only thing that fixed it was removing the file part of the url in
> /etc/yum.repos.d/postgres.repo
Is this a typo or is the file name really postgres.repo?
Regards,
--
Devrim Gündüz
Open Source Solution Architect, PostgreSQL Major Contributor
Twitter: @DevrimGunduz , @DevrimGunduzTR
======================================================
Classification: UNCLASSIFIED
Attachments:
[application/pkcs7-signature] smime.p7s (6.5K, 2-smime.p7s)
download
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2024-06-10 21:26 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-06-04 22:59 no /repodata/repomd.xml [email protected]
2024-06-05 09:22 ` Devrim Gündüz <[email protected]>
2024-06-05 16:08 ` [email protected]
2024-06-10 19:32 ` Devrim Gündüz <[email protected]>
2024-06-10 21:26 ` [email protected]
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox