Parallels tools installer doesn't check for sudo before installing

Discussion in 'Product updates and feedback' started by DjP1, May 21, 2026 at 12:18 PM.

  1. DjP1

    DjP1 Bit poster

    Messages:
    3
    Screenshot below. In a base install of debian, sudo isn't installed by default. This causes certain commands to fail within the installer. That said, looking at the script, if it's running as root then it really doesn't need sudo in the first place.
    Perhaps something like this toward the beginning of the script might help:

    Code:
    SUDO="$(type -p sudo)" 
    if [[ -z $SUDO && "$(id -u)" != "0" ]]; then
        echo "Error: sudo not found. Either install sudo or run as root." 2>&1
        exit 1
    fi
    
    ...and then just use "$SUDO" in place of sudo.

    upload_2026-5-21_12-14-11.png
     
  2. DjP1

    DjP1 Bit poster

    Messages:
    3
    er- the third line of the snippet should end with >&2 and not 2>&1.
     

Share This Page