Error: Installing Snips Through Sam on Raspberry Pi with MATRIX Voice

I’m trying to setup my Raspberry Pi 3 with an MATRIX Voice Microphone Array following this Instructions:
https://docs.snips.ai/articles/raspberrypi/matrix#installing-snips-through-sam

In the step “Installing Snips Through Sam”, i get an error through the command

sam init

.

Error (translation into english, original below):
Failed to install platform: Error: sudo: No TTY present and no »askpass« program specified
at SSH.

C:\Windows\system32>sam connect [ip]
? Enter username for the device: [username]
? Enter password for the device: [hidden]
√ Connected to [ip]
i A public key has been generated and copied to the device at [ip]:~/.ssh/authorized_keys

C:\Windows\system32>sam init
Installing Snips Platform components. This may take a few minutes…
√ Updating aptitude repository
√ Installing dirmngr
√ Adding Snips APT source list
√ Adding Snips PGP public key
√ Updating aptitude repository
√ Installing Snips Platform, this could take a while, grab a cup of tea & relax
√ Adding current user to snips-skills-admin group for security
Disabling Mosquitto persistence
× Failed to install platform: Error: sudo: Kein TTY vorhanden und kein »askpass«-Programm angegeben
at SSH. ([…])
at Generator.next ()
at step ([…])
at […]
at process._tickCallback ([…])

Thank you for your support :blush:

Got it fixed by editing the users sudo rights, which should be like the one of user pi on an standard installation.

LINK MODERATED

Hi, could you provide details of the fix.
I’m running into the sam error and don’t know how exactly you edited the sudo rights.

Thank you :slight_smile:

The problem was, that i didn’t used the user pi.
To use another user, you have to do the following:

But be careful by editing the sudo files, as an error could result in sudo not properly working.

Sources:


https://forum.siduction.org/index.php?topic=430.0

Type in your user instead of username:

su

touch /etc/sudoers.d/username

chmod 0440 /etc/sudoers.d/username

nano /etc/sudoers.d/username

Edit the file: /etc/sudoers.d/username with the following:

username ALL=(ALL) NOPASSWD: ALL

Important:
touch /etc/sudoers.d/username, the name of the file isn’t allowed to contain a . aswell as a ~

1 Like