Install go
sudo snap install --classic go
git clone -b main https://github.com/SagerNet/sing-box cd sing-box ./release/local/install.sh
Edit configuration file in /usr/local/etc/sing-box/config.json
./release/local/enable.sh
Update
./release/local/update.sh
References
https://sing-box.sagernet.org/examples/linux-server-installation/
https://snapcraft.io/go