Apt-get update error "Unable to locate package apt-transport-https"

I just followed the instructions in the webpage https://discourse.osmc.tv/t/mounting-network-shares-with-autofs-alternative-to-fstab/74228

What do I need to do to get it working?

It seems like the spaces and & sign in the share name is causing the problem.

Regards,

fbagnato