DexterInd / GoPiGo3

The GoPiGo3 is a Raspberry Pi Robot!
https://gopigo.io
Other
96 stars 85 forks source link

update_tools fails with a script_tools installer error: "the user must be pi" even though the user IS pi #339

Open jharris1993 opened 1 week ago

jharris1993 commented 1 week ago

When running curl -kL dexterindustries.com/update_tools | sudo bash it fails with the following error: script_tools installer script must be run with "pi" user. Exiting.

Viz.:

pi@raspberrypi:~ $ curl -kL dexterindustries.com/update_tools | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   249  100   249    0     0    602      0 --:--:-- --:--:-- --:--:--   601
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  2145  100  2145    0     0   1485      0  0:00:01  0:00:01 --:--:--  1485
script_tools installer script must be run with "pi" user. Exiting.
pi@raspberrypi:~ $ whoami
pi
pi@raspberrypi:~ $

I suspect that the problem might be that the scripts are being run as root via sudo. (i.e. the user is NOT "pi")

Thanks! Jim

slowrunner commented 1 week ago

Jim, piping it to "sudo bash" is running bash as "root"

jharris1993 commented 1 week ago

Absolutely.

However that was the published way.