title: Bad Request (400) message every time I try to build my Docker Ubuntu 16:04 image
body: <p>I am attempting to build a docker image with the requirements specified in <code>requirements.txt</code>. However, upon trying to build the file, I get the following error:</p>
  
  <pre><code>E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/l/linux-atm/libatm1_2.5.1-1.5_amd64.deb  400  Bad Request [IP: 91.189.91.39 80]
  
  E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/popt/libpopt0_1.16-10_amd64.deb  400  Bad Request [IP: 91.189.91.39 80]
  
  E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libc/libcap-ng/libcap-ng0_0.7.7-1_amd64.deb  400  Bad Request [IP: 91.189.91.39 80]
  </code></pre>
  
  <p>I have attempted to change the mirror, I have checked the output of cat /etc/apt/sources.list, I have tried to add the flag <code>--fix-missing</code> and tried to build the image with <code>--no-cache</code> all to no avail. </p>
  
  <p>Here is the Dockerfile:</p>
  
  <pre><code># Base image
  FROM ubuntu:16.04
  
  MAINTAINER Siddhanth Ajri "y2jsiddajri@gmail.com"
  
  RUN cat /etc/apt/sources.list
  
  # Changing to US archives of UBUNTU
  RUN sed -i'' 's/archive\.ubuntu\.com/us\.archive\.ubuntu\.com/' /etc/apt/sources.list
  
  # Install dependencies
  RUN apt-get update &amp;&amp; apt-get install -y \
      software-properties-common \
      curl \
      git
  
  #RUN add-apt-repository universe
  
  RUN apt-get update &amp;&amp; apt-get install -y \
      curl \
      git 
  
  RUN apt-get install python3.7
  
  RUN apt-get install python3-pip
  
  # Upgrade pip to 20.x
  RUN pip3 install -U pip
  
  COPY ./requirements.txt /requirements.txt
  
  WORKDIR /
  
  RUN pip3 install -r requirements.txt
  
  COPY . /
  </code></pre>
  
  <p>None of the mentioned solutions I've found so far have been able to fix this issue for me.</p>