Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self-update broke rpi-update #140

Closed
jemertz opened this issue May 12, 2014 · 2 comments
Closed

self-update broke rpi-update #140

jemertz opened this issue May 12, 2014 · 2 comments

Comments

@jemertz
Copy link

jemertz commented May 12, 2014

There appears to have been a server error when rpi-update attempted to self-update which broke it.
pi@raspberrypi ~ $ sudo rpi-update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** Performing self-update
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 107 0 107 0 0 360 0 --:--:-- --:--:-- --:--:-- 471
*** Relaunching after update
/usr/bin/rpi-update: line 1: syntax error near unexpected token <' /usr/bin/rpi-update: line 1:

503 Service Unavailable

'
pi@raspberrypi ~ $ sudo rpi-update
/usr/bin/rpi-update: 1: /usr/bin/rpi-update: Syntax error: redirection unexpected

After a reboot:
pi@raspberrypi ~ $ sudo rpi-update
/usr/bin/rpi-update: 1: /usr/bin/rpi-update: Syntax error: redirection unexpected
pi@raspberrypi ~ $ cat /usr/bin/rpi-update

503 Service Unavailable

No server is available to handle this request.

It appears to me that the server returned a 503 error and for whatever reason rpi-update used this error response to overwrite itself. I'm quite surprised that there wasn't a sanity check to prevent this, and strongly recommend adding one.

@kcl-lescalan
Copy link
Contributor

I believe the source has moved for the update. I recently installed the rpi-update and was greeted with not found and syntax errors executing "sudo rpi-update". I ran "cat /usr/bin/rpi-update" prior to a successful installation, and it details a 301 error- moved permanently. This is the new source:

https:// raw.githubusercontent.com/Hexxeh/rpi-update/master/rpi-update

My suggestion is to execute the following:
$ sudo wget https://raw.githubusercontent.com/Hexxeh/rpi-update/master/rpi-update -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
$ sudo rpi-update

That ought to replace the old rpi-update in your bin with the one that points to the right one.

Hope it helps!

@popcornmix
Copy link
Collaborator

rpi-update script and readme have been updated to new url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants