I upgraded to Ubuntu 19.10 on my new laptop as there were some hardware compatibility issues with 18.04 that I couldn’t find a way around. Docker is part of my standard dev stack so it was one of the first things I decided to install. There was a minor hiccup along the way and I figured I’d quickly write up how I got around it and hopefully help some poor sucker out there trying to install Docker.
The official instructions to install can be found here.
You’ll find a section that adds the docker repo to your apt sources:
$ sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
You’ll quickly get an error saying it can’t find that repo or something.
The repository 'https://download.docker.com/linux/ubuntu eoan Release' does not have a Release file.
Never fear! The command added an extra line to your
sources.list. So we’ll open it up and fix it:
$ sudo vim /etc/apt/sources.list
Now look down the bottom (probably) for a line that looks like this:
deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable
And replace it with this:
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
Save and exit, then update your sources and you shouldn’t see any more errors as you work through the instructions.