New to Linux - I'm using Debian 9.
I want to run a script to install
pwndbg, following the tutorial here. I'm using my root account to do so and want to install it to my root account's home directory. The output is as follows:
root@My-Debian-PC:~/pwndbg# ./setup.sh + PYTHON= + INSTALLFLAGS= + osx + uname + grep -i Darwin + '[' '' == --user ']' + PYTHON='sudo ' + linux + uname + grep -i Linux + sudo apt-get update ./setup.sh: line 24: sudo: command not found + true + sudo apt-get -y install gdb python-dev python3-dev python-pip python3-pip libglib2.0-dev libc6-dbg ./setup.sh: line 25: sudo: command not found root@My-Debian-PC:~/pwndbg#
Evidentally the script is presumed to be ran as an account with sudo priveliges, hence giving the error because the root account can't use the
So is there a way of removing the errors? Should I simply edit the script and remove the word
sudo from lines 24 and 25, or is it bad practice to do so? Or is it possible to add my root account to the sudo user group in case I come across the error with another script in the future? Or should I just run the script as-is, then afterwards run
apt-get update and then
apt-get -y install gdb python-dev python3-dev python-pip python3-pip libglib2.0-dev libc6-dbg?