Just `sudo add-apt-repository "deb [arch=amd64] https ://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"` Instead of `sudo add-apt-repository deb [arch=amd64] https ://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"`