无法安装 Docker - 哈希和不匹配(Ubuntu 18.04、Vagrant、Virtualbox) [英] Can't install Docker - Hash sum mismatch (Ubuntu 18.04, Vagrant, Virtualbox)

查看:42
本文介绍了无法安装 Docker - 哈希和不匹配(Ubuntu 18.04、Vagrant、Virtualbox)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是无法在 Ubuntu 18.04 的新映像中安装 Docker(在 Virtualbox 中,使用 Vagrant).我正在使用官方网站的说明:

I just can't install Docker in a fresh image of Ubuntu 18.04 (in Virtualbox, using Vagrant). I am using the instruction from the official site:

https://docs.docker.com/install/linux/docker-ce/ubuntu/

或者来自 https://github.com/docker/docker-install 的简短命令:

Or the short command from https://github.com/docker/docker-install:

curl -fsSL https://get.docker.com -o get-docker.sh &&须藤 sh get-docker.sh

curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh

并且总是出现相同的错误 - 哈希和不匹配:

And always got the same errors - Hash sum mismatch:

Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce_19.03.8~3-0~ubuntu-bionic_amd64.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA512:600f2d9b51024e5866a6256f2d08b4e733a6c8428e334d81de483a7138cbe9db00e8d67673a88d46c80ef0aa673e2f0183f8fd58226575a3a6a843f955c49e2a
    - SHA256:22fe06851dde23200c835641e234760bbb60b79abc3b2a1fbbd1a9b0f1a2e9d0
    - SHA1:7292df34a82e58cab0e45af61036ec19c81eb199 [weak]
    - MD5Sum:8d62aefa851deb2f0739b4a1fd232322 [weak]
    - Filesize:22879338 [weak]
   Hashes of received file:
    - SHA512:265e3e4f877e4d060098d88527258335a08c9b421fabd5573bb5c951fd337c2d157c418132ff6a54568e85c6bd0da3e1b66c51196410016b4b409d1cef2df4cd
    - SHA256:3d15d2e2a7bacc0840aea09400970328d853eb369585e97ce33c8bebbc5c4d37
    - SHA1:da5b39535801e35493cd2f7c6f2b176263bd7da4 [weak]
    - MD5Sum:a4e2e8ec89b2d98c218b3931d7845f50 [weak]
    - Filesize:22879338 [weak]
   Last modification reported: Wed, 11 Mar 2020 19:46:26 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

推荐答案

我也在多个 Linux 发行版中的大量软件包中看到了这个问题.全部在 Windows 10 上的 VirtualBox 6.1.6 中.错误包括哈希和不匹配、LZMA 压缩损坏、GZIP 损坏和 Squashfs 解压缩失败.基本上任何涉及校验和的事情.

I'm also seeing this problem with a large number of packages in multiple Linux distributions. All in VirtualBox 6.1.6 on Windows 10. Errors include Hash Sum mismatch, LZMA compression corruption, GZIP corruption, and Squashfs decompression failures. Basically anything that involves a checksum.

我似乎不太可能下载了 4 个发行版(和几十个软件包),而且它们都有问题.禁用 Hyper-V 似乎确实有所改善.

It seems unlikely that I have downloaded 4 distributions (and dozens of packages) and they're all faulty. Disabling Hyper-V does seem to improve things.

这篇关于无法安装 Docker - 哈希和不匹配(Ubuntu 18.04、Vagrant、Virtualbox)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆