-
Notifications
You must be signed in to change notification settings - Fork 3.8k
v1.8.0 - Build script on Ubuntu failed: /bin/su: invalid option -- 'y' #7571
Comments
Can you run with VERBOSE=true set for me, then provide the output? |
I ran into this issue as well. Here is what I get with VERBOSE=true ` Do you wish to install missing dependencies? (y/n)? y --- Executing: /bin/su /usr/bin/apt-get install -y libusb-1.0-0-dev To get around this I just installed the missing dependencies before running the script. |
looks like the script uses a wrong sudo command, it should be "sudo" not "su", would you try to change replace this line
into
|
I'm curious why $SUDO_COMMAND is returning /bin/su. @tboydston @datnv-ibl, is that ENV already set on your machine to /bin/su? Can you echo $SUDO_COMMAND from your cli? I am unable to replicate this on Ubuntu 18 and 16 fresh installs |
I had done research before using SUDO_COMMAND as the name for Ubuntu, but I guess I missed this: https://askubuntu.com/questions/953485/where-do-i-find-the-sudo-command-environment-variable We will get a fix for the next version to use a different variable name to prevent collision. |
[develop] SUDO_COMMAND -> NEW_SUDO_COMMAND (base fixed)
[1.8.x] SUDO_COMMAND -> NEW_SUDO_COMMAND
The text was updated successfully, but these errors were encountered: