Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker packages not installing #1

Open
andybavier opened this issue Jul 27, 2022 · 0 comments
Open

Docker packages not installing #1

andybavier opened this issue Jul 27, 2022 · 0 comments

Comments

@andybavier
Copy link

When cut-and-pasting commands from the repository's README, I hit an issue with step 1 in Get Started > Prerequisites. Running:

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

gives the following error:

...
Get:48 http://us.archive.ubuntu.com/ubuntu focal-backports/universe i386 Packages [13.2 kB]
Get:49 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [23.7 kB]
Get:50 http://us.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [15.9 kB]
Get:51 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [860 B]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu \ Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Looking at the docker.list file:

deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ focal stable

I think apt is being confused by the backslash in the docker.list file. If I remove that then the install can proceed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant