Errors during downloading metadata for repository 'baseos':

I am trying to build a custom image using rocky image9.0 version but i am not able to build it, and get the error like
Errors during downloading metadata for repository ‘baseos’:

Problem is like I am able to build the image on my local machine but when I am performing same operation on a CentOS 7 server, it throws this error.
How can I fix this issue?

You server fails to get IP address of mirrors.rockylinux.org.
Check its DNS configuration.

1 Like