Quick post here but if you are having issues playing an install of Microsoft Teams Desktop application for Linux on a Debian Buster system, like I initially was, it could be due to the use of su and sudo. I have always, just out of habit, immediately prefer dropping to root on all things when needed, but that is not helpful in Debian on default paths, etc.
So, when I snagged the Microsoft Teams Debian-based installer over at:
And dropped to su, it wasn’t seeing the path to ldconfig (in /sbin/ …)
# dpkg -i teams.deb dpkg: warning: 'ldconfig' not found in PATH or not executable dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: error: 2 expected programs not found in PATH or not executable Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
The fix is instead of using just standard ‘su’ use ‘su -‘ which is better. It’s rarely ever been an issue for me in 25+ years on Unix and Linux, but there you go.
'su -' = invokes a login shell after switching the user. A login shell resets most environment variables, providing a clean base.
su' = just switches the user, providing a normal shell with an environment nearly the same as with the old user.
When you issue an ‘su -‘ instead on Debian, the MS Teams install completes:
$ su - Password: # dpkg -i teams_1.3.00.30857_amd64.deb Selecting previously unselected package teams. (Reading database … 150959 files and directories currently installed.) Preparing to unpack teams_1.3.00.30857_amd64.deb … Unpacking teams (1.3.00.30857) … Setting up teams (1.3.00.30857) … Processing triggers for gnome-menus (3.31.4-3) … Processing triggers for desktop-file-utils (0.23-4) … Processing triggers for mime-support (3.62) …