I am trying to install a program on my raspberry pi Zero 2 w with Bullseye 64 bit. I started with a blank SD card and a new image. I am getting the following error:
sudo: unknown user: 1000
sudo: error initializing audit plugin sudoers_audit
This error repeats for several entries. Here are the lines in setup.sh that are triggering this error:
sudo -u $SUDO_UID BASEDIR=$(cd “$(dirname “${BASH_SOURCE[0]}”)”; cd .. ; pwd -P)
sudo -u $SUDO_UID echo “Setting up pool-pi.”
sudo -u $SUDO_UID echo “Creating venv.”
sudo -u $SUDO_UID pip3 install virtualenv
sudo -u $SUDO_UID virtualenv ${BASEDIR}”/src/.venv”
sudo -u $SUDO_UID source ${BASEDIR}”/src/.venv/bin/activate”
sudo -u $SUDO_UID echo “Installing required python packages.”
sudo -u $SUDO_UID pip3 install -r ${BASEDIR}/setup/requirements.txt
sudo -u $SUDO_UID echo “Configuring systemd.”
Each of those lines in the setup.sh generates the sudo: unknown user error. I have raised the issue with the developer, but no response. Hoping someone can give me some ideas?
I initially had set up the pi with a unique user name. I then reformatted to have the username pi as this was what he used. I have followed all setup direction to a T.
TheBobC is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.