Issue
I was trying to install Docker on Ubuntu runnig on Windows and I was following this official tutorial. rel="noreferrer">https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1
I could see the list of it available on my repo and then I put command sudo apt-get install docker-ce=18.03.0.ce
like the turotial does.
But this error occured.
The list actually shows the version like docker-ce | 18.03.0~ce-0~ubuntu
but I cannot install.
How am I wrong with it? Maybe I am making a dumb mistake.
Solution
What ubuntu version do you run it on? (are ubuntu for windows has the same versions?)
Ubuntu Bionic doesnt support docker 18.03 yet so if you want to run it you need to add docker repo to apt as a supported version like described here:
https://linuxconfig.org/how-to-install-docker-on-ubuntu-18-04-bionic-beaver
Create a new file for the Docker repository at /etc/apt/sources.list.d/docker.list
. In that file, place the following line:
deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
(when bionic is supported you can change the artful to bionic again)
Next, you need to add Docker's GPG key:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Once, that's imported, update Apt again.
$ sudo apt update
and finally:
$ sudo apt install docker-ce
it worked for me on ubuntu bionic,
hope it helps!
Answered By - danfromisrael Answer Checked By - Robin (WPSolving Admin)