Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

E: Version '18.06.1~ce~3-0~ubuntu' for 'docker-ce-cli' was not found

Tags:

docker

Trying to install docker from official documentation on ubuntu and getting this error

$ sudo apt-get install docker-ce=18.06.1~ce~3-0~ubuntu docker-ce-cli=18.06.1~ce~3-0~ubuntu containerd.io
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '18.06.1~ce~3-0~ubuntu' for 'docker-ce-cli' was not found

Best part is that we just installed docker on another machine yesterday and it worked then. What gives?

like image 1000
morpheus Avatar asked Feb 01 '19 01:02

morpheus


1 Answers

Only way to get rid of the error was to not install docker-ce-cli

$ sudo apt-get install docker-ce=18.06.1~ce~3-0~ubuntu containerd.io

check version

$ docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:24:51 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:23:15 2018
  OS/Arch:          linux/amd64
  Experimental:     false
like image 92
morpheus Avatar answered Sep 22 '22 13:09

morpheus