Suppose you are hitting a basic update command to update the system in the bash!
$ yum update -y
——-OR ——-
$ dnf update -y
But you receive the below error in response :-
To resolve the error follow the easy 4 steps:-
Step1:- Open the file destination ” /etc/resolv.conf ” by any text editor, in my case i am using vi editor
$ vi /etc/resolv.conf
Step 2:- After opening the file, paste the below lines in the file
# Generated by NetworkManager
search strad
nameserver 8.8.8.8
nameserver 8.8.4.4
Step 3:- Clan all cache
$ yum clean all
Step 4:- Run the update command again
$ yum update -y