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

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

Open
jharris1993 opened this issue Sep 19, 2024 · 4 comments

Comments

@jharris1993
Copy link
Contributor

jharris1993 commented Sep 19, 2024

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
Copy link
Contributor

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

@jharris1993
Copy link
Contributor Author

Absolutely.

However that was the published way.

@CleoQc
Copy link
Member

CleoQc commented Oct 29, 2024

have you tried
curl -kL dexterindustries.com/update_tools | bash
?

@slowrunner
Copy link
Contributor

However that was the published way.

Where are you referring to? This is a doc error?

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