Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: Yum/DNF Command Failed With Error "Curl error (6): Couldn't resolve host name for https://yum..

edited Jun 10, 2024 7:32AM in Linux

APPLIES TO

Oracle Cloud Infrastructure

Linux OS

SYMPTOMS

“yum” command fails as it cannot resolve the URL contained in the “repo” file

$  yum update 
Oracle Linux 8 BaseOS Latest (x86_64)                                                                           
0.0 B/s | 0 B 00:00 Errors during downloading metadata for repository 'ol8_baseos_latest': - Curl error (6): Couldn't resolve host name for
https://yum.us-ashburn-1.oci.oraclecloud.com/repo/OracleLinux/OL8/baseos/latest/x86_64/repodata/repomd.xml
[Could not resolve host: yum.us-ashburn-1.oci.oraclecloud.com] Error: Failed to download metadata for repo 'ol8_baseos_latest': Cannot
download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Further test and verification done below:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!