failed to synchronize cache for 'updates'

asked 2017-03-06 15:22:27 -0500

nriacone gravatar image

I have recently installed Fedora 25 (Server) in a virtual environment. Whenever I attempt any use of 'dnf', I receive the 'Failed to synchronize cache ...' message. I tried to ping 'google.com' with no success, but 8.8.8.8 responds. I am new to Linux and need guidance as to what should I try to fix first.

Thanks,

edit retag flag offensive close merge delete

Comments

Welcome to ask.fedora. Does pinging google.com just fail, or does it respond with Name or service not known, which would mean that DNS is failing.

sideburns gravatar imagesideburns ( 2017-03-06 16:03:41 -0500 )edit

The system responds with "Name or service not known". I was not clear in my original post that that was the system response when pinging google.com

nriacone gravatar imagenriacone ( 2017-03-07 07:46:31 -0500 )edit

OK, try editing your network connection and specifying a pair of DNS servers.

sideburns gravatar imagesideburns ( 2017-03-07 13:25:59 -0500 )edit

I used 'nmcli device show' and it lists one of my Windows 2012 R2 servers as IP.DNS[1]. How do I add the second DNS server? I would plan on using 8.8.8.8 as the second DNS.

nriacone gravatar imagenriacone ( 2017-03-07 14:29:36 -0500 )edit

Normally, I deal with such things through a GUI. However, if I had to use a CLI, I'd start out with man nmcli to find out if it can do what I need.

sideburns gravatar imagesideburns ( 2017-03-07 14:43:48 -0500 )edit