Skip to content

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

@jharris1993

Description

@jharris1993

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions