When I copied the command:

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

It gave an error:

Error: need a single repository as argument

I then copied it again from the original article on docker website:

And it worked.

But no idea why, they are the same lines. Maybe some special character issue.

A Software Engineer with interests in data storage and database systems done right.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store