At sudo foreman-installer im getting error

Problem:
at running the sudo foreman-installer im getting the following error:

Error: Execution of ‘/bin/dnf -d 0 -e 1 -y install foreman-selinux’ returned 1: Error: Failed to download metadata for repo ‘foreman’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Error: /Stage[main]/Main/Package[foreman-selinux]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/dnf -d 0 -e 1 -y install foreman-selinux’ returned 1: Error: Failed to download metadata for repo ‘foreman’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Expected outcome:

Foreman and Proxy versions:
currently avaiable versions
Foreman and Proxy plugin versions:
No plugins yet
Distribution and version:
Alma Linux 8.8
Other relevant data:

Does the host you’re running this on have Internet access?

In general, to diagnose that error you’ll want to look at your repository configuration, e.g. dnf repolist -v foreman, and make sure the baseurl with /repodata/repomd.xml appended is actually accessible.

Hello guys, i’ve solved the problem. On the base linux the proxy server was missconfigured!

1 Like