title: How do I solve "Hash Sum Mismatch" on "apt-get install docker-ce"?
body: <p>I hope you're all well!</p>
  
  <p>This is my first question ever on stack overflow, so if i'm missing anything, just tell me and it'll be my pleasure to update my question.</p>
  
  <p>So, to summarize my problem, I am trying to install Docker-ce on an Ubuntu 18.04 VM by following the official steps at <a href="https://docs.docker.com/engine/install/ubuntu/" rel="nofollow noreferrer">Docker-Engine Installation</a> and I am getting the error "Hash Sum Mismatch" when running the command "sudo apt-get install docker-ce docker-ce-cli containerd.io".</p>
  
  <p>I went through the official steps a few times and I've tried the following things so far :</p>
  
  <p>1) The following commands, followed by the official installation steps</p>
  
  <pre><code>apt-get clean
  rm -rf /var/lib/apt/lists/*
  apt-get clean
  apt-get update
  apt-get upgrade
  </code></pre>
  
  <p>2) Creation of a file with the following lines, placed at "/etc/apt/apt.conf.d/99fixbadproxy", followed by the official installation steps</p>
  
  <pre><code>Acquire::http::Pipeline-Depth 0;
  Acquire::http::No-Cache true;
  Acquire::BrokenProxy    true;
  </code></pre>
  
  <p>3) Installation of other versions of docker-ce with the following commands</p>
  
  <pre><code>sudo apt-get install docker-ce 5:19.03.8~3-0~ubuntu-bionic
  sudo apt-get install docker-ce 5:19.03.6~3-0~ubuntu-bionic
  sudo apt-get install docker-ce 5:18.09.9~3-0~ubuntu-bionic
  </code></pre>
  
  <p>4) I tried installing different repositories (i think they're called repositories) by adding "nightly" or "test" or both after the word "stable" of the following command</p>
  
  <pre><code>sudo add-apt-repository \
  "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) \
  stable"
  </code></pre>
  
  <p>And I think that is pretty much it. I did tried other things but unfortunately i don't remember them because I've been working on this issue for quite some time now.</p>
  
  <p>I did not try on a fresh new installation of Ubuntu 18.04 though.</p>
  
  <p>If I'm missing anything in my question, please let me know!</p>
  
  <p>Take care everybody!</p>