Fix: Raspberry Pi OS - Failed to fetch http...

This tutorial will show you what to do when you try to update Raspberry Pi OS and get the following error: Failed to fetch http://archive.raspberrypi.org/debian/....

Fix: Raspberry Pi OS - Failed to fetch http...

1. Open the terminal.

2. Type the following command:

sudo nano /etc/apt/sources.list.d/raspi.list

3. Press the Enter key on your keyboard.

4. Change the URL to https. Change http://archive.raspberrypi.org/debian/ to https://archive.raspberrypi.org/debian/.

5. Press the Ctrl + O keys to write out.

6. Press Enter.

7. Press the Ctrl + X keys to exit.

8. Restart your Raspberry Pi.

9. Open the terminal.

10. Try to update now.

sudo apt update
sudo apt full-upgrade