Docker Community Forums

Share and learn in the Docker community.

Issue with Docker Engine installation

Hi, I’m following the steps for installing Docker as outlined here
https://docs.docker.com/install/linux/docker-ce/ubuntu/ ,
I’m using Ubuntu 18.04, and at the step after I install the repository
and run apt update, I get an error that prevents me from following the next step. Is anyone else having this problem?

   <name>@<name>:~$ uname -a
    Linux <name> 5.0.0-29-generic #31~18.04.1-Ubuntu SMP Thu Sep 12 18:29:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    <name>@<name>:~$ sudo apt update
    Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
    Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                
    Get:3 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]                  
    Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]               
    Get:5 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages [7,889 B]      
    Err:5 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages                
      File has unexpected size (9417 != 7889). Mirror sync in progress? [IP: 99.84.224.52 443]
      Hashes of expected file:
       - Filesize:7889 [weak]
       - SHA512:db24e63e6f882530d40047cda5c5cb43a9fd6936d518162135b59f315d9cf0e189453bddd8ee67ed0ef622012da02ecfd5f4e3419cfd116835651b37e4b6a7aa
       - SHA256:fed3e5b48da23965790e21466523ae19c1afe34f31e9005ac343e6b6a4c36d63
       - SHA1:f22380168007fac2e32b2d882a5120a288ed89e1 [weak]
       - MD5Sum:d35d55f528a96c383f4f3c1280cdd214 [weak]
      Release file created at: Sat, 17 Aug 2019 05:05:01 +0000
    Get:6 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]             
    Fetched 316 kB in 1s (279 kB/s)                               
    Reading package lists... Done
    E: Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/stable/binary-amd64/Packages.bz2  File has unexpected size (9417 != 7889). Mirror sync in progress? [IP: 99.84.224.52 443]
       Hashes of expected file:
        - Filesize:7889 [weak]
        - SHA512:db24e63e6f882530d40047cda5c5cb43a9fd6936d518162135b59f315d9cf0e189453bddd8ee67ed0ef622012da02ecfd5f4e3419cfd116835651b37e4b6a7aa
        - SHA256:fed3e5b48da23965790e21466523ae19c1afe34f31e9005ac343e6b6a4c36d63
        - SHA1:f22380168007fac2e32b2d882a5120a288ed89e1 [weak]
        - MD5Sum:d35d55f528a96c383f4f3c1280cdd214 [weak]
       Release file created at: Sat, 17 Aug 2019 05:05:01 +0000
    E: Some index files failed to download. They have been ignored, or old ones used instead.

Thanks for your help.

1 Like

Ha! I just created a ticket right before you. Same setup and same issue. I can’t seem to identify the fix, although it seems to be on the repo owners end.

1 Like

Same - there is a problem with the debian packages files on download.docker.com

Err:7 https://download.docker.com/linux/debian stretch/stable amd64 Packages
  Writing more data than expected (11116 > 9983)
  Hashes of expected file:
   - Filesize:9983 [weak]
   - SHA512:4faf843dcb2544a9135a36ecfc4b914dd4e9cdada9a5e20e4994f5dd33d2d5aacb44f237bf9bf7048bac571e8be47d04975f8d93a19dab67dbfc231b68012011
   - SHA256:db9d0a054919cfa52440f1d59ec3f4f2fd15b89661c87f35f02a24f3832a6ce6
   - SHA1:d52b8071d1449718bc483c54a5bc698a26107aa6 [weak]
   - MD5Sum:d7b024e64ef3849c725f4ce1f05bf7a7 [weak]
  Release file created at: Sat, 17 Aug 2019 05:04:49 +0000
Fetched 44.8 kB in 0s (64.9 kB/s)
Reading package lists... Done
E: Failed to fetch https://download.docker.com/linux/debian/dists/stretch/stable/binary-amd64/Packages.bz2  Writing more data than expected (11116 > 9983)
   Hashes of expected file:
    - Filesize:9983 [weak]
    - SHA512:4faf843dcb2544a9135a36ecfc4b914dd4e9cdada9a5e20e4994f5dd33d2d5aacb44f237bf9bf7048bac571e8be47d04975f8d93a19dab67dbfc231b68012011
    - SHA256:db9d0a054919cfa52440f1d59ec3f4f2fd15b89661c87f35f02a24f3832a6ce6
    - SHA1:d52b8071d1449718bc483c54a5bc698a26107aa6 [weak]
    - MD5Sum:d7b024e64ef3849c725f4ce1f05bf7a7 [weak]
   Release file created at: Sat, 17 Aug 2019 05:04:49 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

same issue here with the command
sudo add-apt-repository
“deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable”

A fix is coming in 30ish minutes:

Is this fixed? I am still having this issue:

1 Like

Seems like it’s still on-going judging by @bensherman’s link to the github issue. Fingers crossed for something soon.

It’s usually a good idea to check https://status.docker.com/
We recently posted an incident regarding these repos. Have a look at the incident history for more information

1 Like

https://github.com/docker/for-linux/issues/830 seems most people are reporting resolved! @tahasolutions @jonzivkus mirrors may need propagation but I personally just got it going on my machine!

I am still seeing this on Ubuntu 20.04 can anybody help me on this if possible?

If you plan on running Windows Containers, you’ll need a specific version and build of Windows Server. Check out the Windows container version compatibility matrix for details.

99.999% of the time, you only need a Linux Container, since it supports software built using open-source and .NET technologies. In addition, Linux Containers can run on any distro and on popular CPU architectures, including x86_64, ARM and IBM.

In this tutorial, I’ll show you how to quickly setup a Linux VM on Windows Home running Docker Engine with the help of Docker Machine. Here’s a list of software you’ll need to build and run Docker containers:

Docker Machine: a CLI tool for installing Docker Engine on virtual hosts
Docker Engine: runs on top of the Linux Kernel; used for building and running containers
Docker Client: a CLI tool for issuing commands to Docker Engine via REST API
Docker Compose: a tool for defining and running multi-container applications
I’ll show how to perform the installation in the following environments:

On Windows using Git Bash
On Windows Subsystem for Linux 2 (running Ubuntu 18.04)
First, allow me to explain how the Docker installation will work on Windows.

Want to build more of a foundation in Docker knowledge? Read Learning Docker – Second Edition on SitePoint Premium.