In this segment, we are going to explain “How to fix Could not resolve ‘archive.raspberrypi.org‘ for OpenMediaVault | Raspberry Pi | Ubuntu“
Equipment Required | Optional | ||
Raspberry Pi 4 | Case | ||
SD Card | Raspberry Pi Keyboard | ||
Ethernet Cable | Mouse | ||
Power Adapter | |||
External HDD | |||
Shop now |
We all got confused when your Raspberry Pi or any other Linux machine stop getting updates or refused to connect to the download server. Then we start checking our internet connection and look around for solutions, but the problem resides inside the PC itself.
First, let me explain to you why this problem actually occurs. This is a really common issue generated by the operating system itself. The operating system makes a backup of the DNS resolve file, then OS is not able to get the updates from the server.
So, I will explain to you two ways to resolve this issue.
Step-1:
- In this step, we need to create a new file so our system can connect to the DNS server.
sudo nano /etc/resolv.conf
- Now you will see a blank screen then we need to type:
nameserver 8.8.8.8
- After that press CTRL+X and then Y to save the file. Once this step finishes you can try to update your system.
Step-2:
- In this step, we are going to change the backup file name to its original name.
sudo mv /etc/resolv.conf.bak /etc/resolv.conf
- This step will change the file name to its original name, after this step you can reboot your system and check for updates.
In conclusion
- You are all set to use your Raspberry Pi again.
- Please share your valuable feedback about the article.
Need to go through Posts
- How to install OpenMediaVault 5 on Raspberry Pi All Models
- OpenMediaVault 5 NAS Server on Raspberry Pi 4
Did you find us helpful?
Subscribe our YouTube Channel | |
Like us on Facebook | |
Support us on Patreon | |
Share This Article with others |