docker / for-linux

Docker Engine for Linux
https://docs.docker.com/engine/installation/
748 stars 85 forks source link

Official docker install command fails on Debian buster due to Hash Sum mismatch #980

Open MarcelBeining opened 4 years ago

MarcelBeining commented 4 years ago

Expected behavior

curl -sSL https://get.docker.com/ | sh should install docker on Debian Buster

Actual behavior

It fails with this log:

Executing docker install script, commit: 442e66405c304fa92af8aadaa1d9b31bf4b0ad94

  • sudo -E sh -c apt-get update -qq >/dev/null
  • sudo -E sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
  • sudo -E sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" | apt-key add -qq - >/dev/null Warning: apt-key output should not be parsed (stdout is not a terminal)
  • sudo -E sh -c echo "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" > /etc/apt/sources.list.d/docker.list
  • sudo -E sh -c apt-get update -qq >/dev/null
  • [ -n ]
  • sudo -E sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null E: Failed to fetch https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/containerd.io_1.2.13-1_amd64.deb Hash Sum mismatch Hashes of expected file:
    • SHA512:e0f8eb0ed3bd881bf5f278f3736da3e4fb05410014a0103301c135a33061945e013bcf8a9cd704d9d6b4fa088d478ebea27e86e466889d0194a8cbb77e94efdf
    • SHA256:a4f244216e54a8a47f2dc5c57acb4cb48a779c54a8588ea2d55c40a57092baf6
    • SHA1:90611afda0acabae485f871b09e4c1eba0ac4dc0 [weak]
    • MD5Sum:78a039cf82b1bd4a285114bdd030982e [weak]
    • Filesize:20114318 [weak] Hashes of received file:
    • SHA512:b10b21d9d3ec92caf57790dd454c811030491c6cfb2af544f96432cf58528a75937e51a8e735a98a55b9c1ded97d534148fcf08e9b90f54b1e9917c2a8c61ce9
    • SHA256:cf8a82910b1a983077219f91c2328a02b438518e1370cd1b2da4e8b76a87f609
    • SHA1:18b392d3f6407e5c49e503441ae87b73704da40b [weak]
    • MD5Sum:da6863c568f9a06bedee696afdd7c2ab [weak]
    • Filesize:20114318 [weak] Last modification reported: Tue, 03 Mar 2020 04:24:01 +0000 E: Failed to fetch https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/docker-ce_19.03.8~3-0~debian-buster_amd64.deb Hash Sum mismatch Hashes of expected file:
    • SHA512:6157183c1f4472b24bb3fd8ddce4e659e4f69752496fd5287733d328865cf17abd812779e23ef000d3c705cbb6ddf3cfee5d23b175bd8b4be495bc6f75198f32
    • SHA256:aab5e08d0086ae6d0824e4286f2de160472c4206425105a68eb1bfdfc1f11ef3
    • SHA1:369de6e19806b1501df61fc8cdfda6e1ac89cce3 [weak]
    • MD5Sum:579f11f3582e2d527bf44fbf1775636a [weak]
    • Filesize:22863938 [weak] Hashes of received file:
    • SHA512:65e40324fd6fc039f90080b46a51148e573f362e8559562647f9ab7a6480867a60f0dcd6b99ea9294f5eff699476912b3bee7878a54323807ddae0c3adfa8041
    • SHA256:b02dd199223615eec2518f781c400c5143e0f56e47ac5c4c19ac8be9f1833638
    • SHA1:db6cb6b38b3b3e88c08aeb82891db6b531b65925 [weak]
    • MD5Sum:6b94c68eb9c15f6957d49b646ed1dd8a [weak]
    • Filesize:22863938 [weak] Last modification reported: Wed, 11 Mar 2020 19:47:08 +0000 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Steps to reproduce the behavior

Output of docker version:

-bash: docker: command not found

Output of docker info:

-bash: docker: command not found

Additional environment details (AWS, VirtualBox, physical, etc.)

I am using VirtualBox running Debian Buster on a Windows 10 64bit machine.

MarcelBeining commented 4 years ago

Seems like I am not the only one https://forums.docker.com/t/cannot-install-docker-ce-on-ubuntu-18-04-or-debian-10/91015

brantchyoga commented 4 years ago

When I install Docker with the same command on raspbian buster I things like this and after everything is done.... it is using aufs as the storage drivers aghhhhhh!!!! I thought maybe I could try to change the driver to overlay2 but I have been to figure it out like a week. My next step is to erase and reformat everything because the commands to uninstall don't work properly. Then go to https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/ and figure out what file to download to download that might work otherwise and install that way. We will see if that works

smariko commented 4 years ago

Hi,

Same on Ubuntu 18.04. On Virtual box I got checksum issue.

On WSL it's working great.

Tried to download .deb package but got error to

(Lecture de la base de données... 34132 fichiers et répertoires déjà installés.) Préparation du dépaquetage de containerd.io_1.2.13-2_amd64.deb ... Dépaquetage de containerd.io (1.2.13-2) ... dpkg-deb (sous-processus) : décompression du membre de l'archive : erreur LZMA : les données compressées sont corrompues dpkg-deb: erreur: subprocess returned error exit status 2 dpkg: erreur de traitement de l'archive containerd.io_1.2.13-2_amd64.deb (--install) : impossible de copier les données extraites pour « ./usr/bin/containerd » vers « /usr/bin/containerd.dpkg-new » : fin de fichier ou de flux inattendue Des erreurs ont été rencontrées pendant l'exécution : containerd.io_1.2.13-2_amd64.deb

smariko commented 4 years ago

Found that the issue is from Virtualbox 6.1.

Reinstalling 6.0.10 solved the issue.

vajarkov commented 3 years ago

Hi all! I solved problem. Remove in /etc/apt/sources.list repo by Docker. Download from https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/ deb-packege and install by dkpg -i all packages.