r/raspberry_pi • u/jodkalemon • 9h ago
Troubleshooting Bug in rpi-update (wrong github url to download firmware)?
When I run rpi-update on an rpi4b-2gb I get:
If you are unsure, test if your system boots with initramfs options disabled from config.txt
Would you like to proceed? (y/N)
Github API request failed with HTTP 422: https://api.github.com/repos/raspberrypi/rpi-firmware/commits/0
Respond of the link is
{
"message": "No commit found for SHA: 0",
"documentation_url": "https://docs.github.com/rest/commits/commits#get-a-commit",
"status": "422"
}
What happened here and can you reproduce the bug?
0
Upvotes
-1
u/dovyp 8h ago
That SHA 0 is a dead giveaway the script is stale. Grab a fresh rpi-update, the firmware URL on their end moved.
4
u/saint-lascivious 7h ago
Alternatively, don't, since there are approximately zero reasons for Johnny Homeuser to be running bleeding edge firmware.
-11
5
u/KingofGamesYami Pi 3 B 8h ago
Firmware updates have been distributed through
aptfor a while now.rpi-updateis only used for testing experimental firmware patches. Are you sure you want to runrpi-update?