It seems to be a linux distribution related problem on your synology (base packages installed). And you will probably run into other errors. I’m also not sure that a Synology NAS is the best place to install this apps . But why not, let’s try…
The sudo command is not installed, try first to install it (I see you are connected as root already? the package installer apt should also work). Type in console: apt install sudo
Note: In some commercial linux distribution (like Synology), the root privilege is not given… You will also not be able to install sudo and others needed packages. If it’s the cas for you, I can help you to workaround the problem, but we should also do it in private message to not overload this topic.