<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2018 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" CONTENT="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<style type="text/css"><!--
/*
* Copyright (C) 1996-2018 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
/*
Stylesheet for Squid Error pages
Adapted from design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/
/* Page basics */
* {
font-family: verdana, sans-serif;
}
html body {
margin: 0;
padding: 0;
background: #efefef;
font-size: 12px;
color: #1e1e1e;
}
/* Page displayed title area */
#titles {
margin-left: 15px;
padding: 10px;
padding-left: 100px;
background: url('/squid-internal-static/icons/SN.png') no-repeat left;
}
/* initial title */
#titles h1 {
color: #000000;
}
#titles h2 {
color: #000000;
}
/* special event: FTP success page titles */
#titles ftpsuccess {
background-color:#00ff00;
width:100%;
}
/* Page displayed body content area */
#content {
padding: 10px;
background: #ffffff;
}
/* General text */
p {
}
/* error brief description */
#error p {
}
/* some data which may have caused the problem */
#data {
}
/* the error message received from the system or other software */
#sysmsg {
}
pre {
font-family:sans-serif;
}
/* special event: FTP / Gopher directory listing */
#dirmsg {
font-family: courier;
color: black;
font-size: 10pt;
}
#dirlisting {
margin-left: 2%;
margin-right: 2%;
}
#dirlisting tr.entry td.icon,td.filename,td.size,td.date {
border-bottom: groove;
}
#dirlisting td.size {
width: 50px;
text-align: right;
padding-right: 5px;
}
/* horizontal lines */
hr {
margin: 0;
}
/* page displayed footer area */
#footer {
font-size: 9px;
padding-left: 10px;
}
body
:lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }
:lang(he) { direction: rtl; }
--></style>
</head><body id=ERR_CONNECT_FAIL>
<div id="titles">
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
</div>
<hr>
<div id="content">
<p>The following error was encountered while trying to retrieve the URL: <a href="http://dl.fedoraproject.org/">http://dl.fedoraproject.org/</a></p>
<blockquote id="error">
<p><b>Connection to 38.145.60.23 failed.</b></p>
</blockquote>
<p id="sysmsg">The system returned: <i>(110) Connection timed out</i></p>
<p>The remote host or network may be down. Please try the request again.</p>
<p>Your cache administrator is <a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_CONNECT_FAIL&body=CacheHost%3A%20srv-proxy%0D%0AErrPage%3A%20ERR_CONNECT_FAIL%0D%0AErr%3A%20(110)%20Connection%20timed%20out%0D%0ATimeStamp%3A%20Wed,%2009%20Apr%202025%2012%3A20%3A45%20GMT%0D%0A%0D%0AClientIP%3A%2010.255.3.53%0D%0AServerIP%3A%20dl.fedoraproject.org%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2F%20HTTP%2F1.1%0AUser-Agent%3A%20curl%2F7.76.1%0D%0AAccept%3A%20*%2F*%0D%0AProxy-Connection%3A%20Keep-Alive%0D%0AHost%3A%20dl.fedoraproject.org%0D%0A%0D%0A%0D%0A">webmaster</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated Wed, 09 Apr 2025 12:20:45 GMT by srv-proxy (squid/3.5.28)</p>
<!-- ERR_CONNECT_FAIL -->
</div>
</body></html>
I have no clue whats the issue maybe its related to DNS? cus it keeps resolving to my intenral one when i run dnf update for exmaple i get:
[root@dv2tbws00b001ba yum.repos.d]# dnf update
Updating Subscription Management repositories.
^CExtra Packages for Enterprise Linux 9 - x86_64 [ === ] --- B/s | 0 B --:-- ETExtra Packages for Enterprise Linux 9 - x86_64 0.0 B/s | 0 B 00:01
Errors during downloading metadata for repository 'epel':
- Curl error (56): Failure when receiving data from the peer for https://mirror.in2p3.fr/pub/epel/9/Everything/x86_64/repodata/repomd.xml [Received HTTP code 403 from proxy after CONNECT]
- Status code: 403 for http://mirror.in2p3.fr/pub/epel/9/Everything/x86_64/repodata/repomd.xml (IP: 10.118.54.104)
Error: Failed to download metadata for repo 'epel': Librepo was interrupted by a signal
[root@dv2tbws00b001ba yum.repos.d]# cd /etc/dnf
[root@dv2tbws00b001ba dnf]# vi dnf.conf
[root@dv2tbws00b001ba dnf]# dnf update
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux 9 - x86_64 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'epel':
- Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=epel-9&arch=x86_64&infra=$infra&content=$contentdir [Could not resolve host: mirrors.fedoraproject.org]
Error: Failed to download metadata for repo 'epel': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=epel-9&arch=x86_64&infra=$infra&content=$contentdir [Could not resolve host: mirrors.fedoraproject.org]
even after setting this command i get this error now "
dnf update
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux 9 - x86_64 384 kB/s | 23 MB 01:01
Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64 1.7 kB/s | 2.5 kB 00:01
Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs) 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository ‘codeready-builder-for-rhel-9-x86_64-rpms’:
Curl error (56): Failure when receiving data from the peer for https://rhrepo.itn.intraMYCOMPANY/pulp/content/APTPLATON/Library/G05RxxCxx/content/dist/rhe l9/9/x86_64/codeready-builder/os/repodata/repomd.xml [Received HTTP code 403 from proxy after CONNECT]
Error: Failed to download metadata for repo ‘codeready-builder-for-rhel-9-x86_64-rpms’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: Al l mirrors were tried
"
the sudo dnf repolist commands shows the following: dnf repolist
Updating Subscription Management repositories.
repo id repo name
codeready-builder-for-rhel-9-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs)
epel Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264 Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64
rhel-9-for-x86_64-appstream-rpms Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
rhel-9-for-x86_64-baseos-rpms Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
I’m not downloading from a dvd i just wanna run the command:
but it just doesnt work, always get the internal error aka :
Updating Subscription Management repositories.
Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs) 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'codeready-builder-for-rhel-9-x86_64-rpms':
- Curl error (56): Failure when receiving data from the peer for https://rhrepo.itn.intramycompany/pulp/content/APTPLATON/Library/G05RxxCxx/content/dist/rhel9/9/x86_64/codeready-builder/os/repodata/repomd.xml [Received HTTP code 403 from proxy after CONNECT]
Error: Failed to download metadata for repo 'codeready-builder-for-rhel-9-x86_64-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
as i said i whitelisted fedory in my firewall so i could get access through proxy i got no clue whats happening
sudo dnf config-manager --set-disabled codeready-builder-for-rhel-9-x86_64-rpms
Updating Subscription Management repositories.
[root@dv2tbws00b001ba yum.repos.d]# dnf install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'rhel-9-for-x86_64-appstream-rpms':
- Curl error (56): Failure when receiving data from the peer for https://rhrepo.itn.intracompany/pulp/content/APTPLATON/Library/G05RxxCxx/content/dist/rhel9/9/x86_64/appstream/os/repodata/repomd.xml [Received HTTP code 403 from proxy after CONNECT]
Error: Failed to download metadata for repo 'rhel-9-for-x86_64-appstream-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
still doesnt work, does that mean there is an issue with my firewall?but isnt it the dns that tries to resolve those and since i have just intenral ip addresses in the dns resolv.conf file it could be causing the issue?
I think you have an issue with the rhel subscription. But this is not with us.
[Received HTTP code 403 from proxy after CONNECT]
Error: Failed to download metadata for repo 'rhel-9-for-x86_64-appstream-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
The VM is on a restricted corporate network, with no direct internet access
External traffic goes through a proxy, and only specific repositories/domains are whitelisted
If it is from your proxy you will need to look with the IT department of the coorporate network. The easyiest way would be try without a proxy on a direct connection. To distinguish what comes from which place (RHEL/Corporate network)
does this mean the problem is related to the security certificate? seems to have worked with https?
[root@dv2tbws00b001ba dnf]# sudo dnf --disablerepo=\* --setopt=proxy=http://proxy:port/ install \
http://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Updating Subscription Management repositories.
[MIRROR] epel-release-latest-9.noarch.rpm: Curl error (28): Timeout was reached for http://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
[MIRROR] epel-release-latest-9.noarch.rpm: Curl error (28): Timeout was reached for http://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
[MIRROR] epel-release-latest-9.noarch.rpm: Curl error (28): Timeout was reached for http://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
[MIRROR] epel-release-latest-9.noarch.rpm: Curl error (28): Timeout was reached for http://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
[FAILED] epel-release-latest-9.noarch.rpm: Curl error (28): Timeout was reached for http://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
Curl error (28): Timeout was reached for http://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
[root@dv2tbws00b001ba dnf]# sudo dnf --disablerepo=\* --setopt=proxy=http://proxy:port/ install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Updating Subscription Management repositories.
epel-release-latest-9.noarch.rpm 50 kB/s | 19 kB 00:00
Package epel-release-9-9.el9.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@dv2tbws00b001ba dnf]#
how about other stuff that i need to install? do i repeat the process with any other repo? for example this one : dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/24.10/el9/centreon-24.10.repo
each time i need to do something like this "
You need to replace http://host:port/ with you actual proxy host and port. I suggest using the actual proxy IP rather than host since you’re having DNS issues. See @vgaetera’s example above, but replace it with your proxy.
I’m still getting errors, the installation for what youve mentioned worked fine but then when I tried installing other things, i keep getting 404 error, for example:
[root@centreon osadmin]# sudo dnf --disablerepo=* --setopt=proxy=${PROXY} install JFrog
Updating Subscription Management repositories.
[MIRROR] centreon-release-22.10-1.el9.noarch.rpm: Status code: 404 for JFrog (IP: 10.118.51.207)
[MIRROR] centreon-release-22.10-1.el9.noarch.rpm: Status code: 404 for JFrog (IP: 10.118.51.207)
[MIRROR] centreon-release-22.10-1.el9.noarch.rpm: Status code: 404 for JFrog (IP: 10.118.51.207)
[MIRROR] centreon-release-22.10-1.el9.noarch.rpm: Status code: 404 for JFrog (IP: 10.118.51.207)
[FAILED] centreon-release-22.10-1.el9.noarch.rpm: Status code: 404 for JFrog (IP: 10.118.51.207)
Status code: 404 for JFrog (IP: 10.118.51.207)
[root@centreon osadmin]#
I
Ihave no clue what’s going on, ive been following what you mentioned
[root@centreon osadmin]# sudo dnf --disablerepo=* --setopt=proxy=http://host:port/ install https://packages.centreon.com/rpm-standard/24.10/el9/centreon-24.10.repo
Updating Subscription Management repositories.
centreon-24.10.repo 14 kB/s | 2.9 kB 00:00
Can not load RPM file: /var/cache/dnf/commandline-5fd3bd7dde2b1c5e/packages/centreon-24.10.repo.
Could not open: /var/cache/dnf/commandline-5fd3bd7dde2b1c5e/packages/centreon-24.10.repo
Also before setting the variable “PROXY” I used to run this command:
dnf install centreon-pack-*
And i’d get this error:
dnf install centreon-pack-*
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - AppStre 86 kB/s | 4.5 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - BaseOS 75 kB/s | 4.1 kB 00:00
No match for argument: centreon-pack-*
Error: Unable to find a match: centreon-pack-*
but after i set the proxy variable I see this:
dnf install centreon-pack-*
Updating Subscription Management repositories.
Centreon open source software repository. 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository ‘centreon-24.10-stable’:
Curl error (6): Couldn’t resolve host name for JFrog [Could not resolve host: packages.centreon.com]
Error: Failed to download metadata for repo ‘centreon-24.10-stable’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@centreon osadmin]#