HankB
Posts: 123
Joined: Fri Jan 01, 2016 2:45 pm

rpi-update overwrites itself

Mon Jul 22, 2019 4:09 pm

Code: Select all

[email protected]:~ $ 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    27  100    27    0     0      1      0  0:00:27  0:00:14  0:00:13     5
 *** Relaunching after update
/usr/bin/rpi-update: line 1: 500:: command not found
[email protected]:~ $ cat /usr/bin/rpi-update
500: Internal Server Error
[email protected]:~ $ 
How did this happen? This is on Raspbian Buster (on my shiny new Pi 4 :) )

My suspicion is that rpi-update is a script that overwrites itself with a newly downloaded version. It seems to have broken.

Is there some place to file a bug report?

Thanks!

Edit: Repeatable. >:(

Code: Select all

[email protected]:~ $ sudo dpkg --purge rpi-update
(Reading database ... 154123 files and directories currently installed.)
Removing rpi-update (20140705) ...
[email protected]:~ $ sudo apt install rpi-update
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  rpi-update
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,408 B of archives.
After this operation, 45.1 kB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian buster/main armhf rpi-update all 20140705 [4,408 B]
Fetched 4,408 B in 1s (5,023 B/s)         
Selecting previously unselected package rpi-update.
(Reading database ... 154119 files and directories currently installed.)
Preparing to unpack .../rpi-update_20140705_all.deb ...
Unpacking rpi-update (20140705) ...
Setting up rpi-update (20140705) ...
[email protected]:~ $ 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    27  100    27    0     0      1      0  0:00:27  0:00:14  0:00:13     5
 *** Relaunching after update
/usr/bin/rpi-update: line 1: 500:: command not found
[email protected]:~ $ 

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2094
Joined: Thu Jul 11, 2013 2:37 pm

Re: rpi-update overwrites itself

Mon Jul 22, 2019 4:17 pm

rpi-update updates itself by design. Github appears to be having issues and instead of doing something sensible (i.e. resetting the connection) it gives you error strings instead.

Try "UPDATE_SELF=0 rpi-update"?
Rockets are loud.
https://astro-pi.org

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5968
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: rpi-update overwrites itself

Mon Jul 22, 2019 4:20 pm

https://www.githubstatus.com/incidents/8x69vj1xyp9v

Yeah, so rpi-update tries to update itself and overwrites itself with the returned 500 response.

We'll have to fix it within rpi-update itself so that it doesn't happen again and then push it to apt to overwrite the corrupted version.

HankB
Posts: 123
Joined: Fri Jan 01, 2016 2:45 pm

Re: rpi-update overwrites itself

Mon Jul 22, 2019 4:35 pm

Thanks for the quick replies. I did find where I could file a bug report.
https://github.com/Hexxeh/rpi-update/issues/285
Thanks!

HankB
Posts: 123
Joined: Fri Jan 01, 2016 2:45 pm

Re: rpi-update overwrites itself

Mon Jul 22, 2019 4:51 pm

jdb wrote:
Mon Jul 22, 2019 4:17 pm
Try "UPDATE_SELF=0 rpi-update"?
That workked - Thanks!

Return to “Troubleshooting”