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

Learn what to do when you try to update Raspberry Pi OS and get the following error: Failed to fetch


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 to

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