I am unable to build alpine when running the following command: sudo $HOME/go/bin/distrobuilder build-lxd alpine.yaml -o image.release=3.18
Error:
/home/my_user_name/go/bin/distrobuilder: command not found
I tried this:
- Open your sudo config
sudo visudo
- Locate the line staring with
Defaults secure_path =
- Add
:/usr/local/go/bin
to the end of the line
but the issue continues to occur.
Are there any clues as to what the problem could be?
Thank you in advance.
echo $HOME = /home/my_user_name
echo $PATH = /home/my_user_name/.local/bin:/snap/bin:/usr/sandbox/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/share/games:/usr/local/sbin:/usr/sbin:/sbin:/usr/share:/usr/share/john:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/share/games:/usr/local/sbin:/usr/sbin:/sbin:/home/my_user_name/.local/bin:/snap/bin:/snap/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/my_user_name/.dotnet/tools