You either need to have the date & time set to the current date & time (time zone is irrelevant AFAIK), or you may need to set the date to some time in 2017 (or perhaps earlier if you are booting from local recovery mode for Lion).
Whenever trying to boot into Recovery Mode, it is best to use Command + Option + R which will either boot to the most recent online macOS installer or if it boots to an older one, it should not ask for authentication with AppleID. Unfortunately some Macs will still only boot to the online installer for the OS which originally shipped with the Mac regardless of the keys used to access recovery mode.
As for "sudo" in Recovery Mode, it is not needed since you are already at a root user prompt. Just enter the command without using "sudo". Neither is it needed in Single User Mode.
If you have access to another compatible Mac generally from 2007 to 2018, then you can create a bootable macOS USB installer.
To create a bootable macOS 10.11 installer you generally need a Mac from 2007 to 2015
To create a bootable macOS 10.13 installer you generally need a Mac from Late-2009 to mid-2018
You can use the information in the following article to confirm which versions of macOS the other Mac is compatible so you know which USB installer you can create (the other Mac can currently be running any version of macOS 10.6+):
https://eshop.macsales.com/guides/Mac_OS_X_Compatibility