failed to synchronize cache for 'updates'

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

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 '' with no success, but responds. I am new to Linux and need guidance as to what should I try to fix first.


edit retag flag offensive close merge delete


Welcome to ask.fedora. Does pinging 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 -0600 )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

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

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

sideburns gravatar imagesideburns ( 2017-03-07 13:25:59 -0600 )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 as the second DNS.

nriacone gravatar imagenriacone ( 2017-03-07 14:29:36 -0600 )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 -0600 )edit