EDIT - I shouldve stated originally the first thing I tried was running with root privelidges this did not change anything although using the alternative guide worked
You are probably running the command as a regular user, you need to either use sudo (if your user has sudo privileges) or run it as root. If you look closely, the command starts with “#”, that means you should execute such command as root (or, again, with sudo).
“Note: The symbol # refers to running the code as root. This means you should have access to a user account with system administration privileges, i.e. your user should be in the sudo group.”
Generally you can jump to root via ‘sudo su’ or add sudo before the sole command you want to run with elevated rights. Suspect that’s the issue.