Why does yum fail with error "[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403" ?

Solution Verified - Updated -

Issue

  • Yum update with the following error:
# yum update
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager  
Updating certificate-based repositories.  
https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403"  
Trying other mirror.  
Setting up Update Process  
No Packages marked for Update  
# yum install gcc  
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager  
Updating certificate-based repositories.  
https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403"  
Trying other mirror.
  • Yum commands fail with [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden""
  • System is registered to RHN classic and proxy is used in between. Facing the below mentioned error while installing packages :
# yum update
Loaded plugins: product-id, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-6-server-rpms. Please verify its path and try again

Environment

  • Red Hat Enterprise Linux
  • Red Hat Subscription Management(RHSM)
  • Subscription Asset Manager
  • Red Hat Satellite 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.