Installing curl & wget are failing in Docker
Following is my docker file content
FROM ubuntu:18.04
# Prerequisites
RUN apt-get update
RUN apt-get upgrade
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get install -y curl unzip zip wget gnupg2
RUN apt-get install -y --no-install-recommends locales
RUN locale-gen en_US.UTF-8
When I run this on Ubuntu 16.04 machine, It's failing at installing curl, following is the exception I am getting
Fetched 5873 kB in 19s (306 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.4_amd64.deb 404 Not Found [IP: 91.189.88.173 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1-1ubuntu2.1~18.04.4_amd64.deb 404 Not Found [IP: 91.189.88.173 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get install -y curl unzip zip wget gnupg2' returned a non-zero code: 100
1 Answer
5 years ago by Eleven
After a couple of experiments, I figured out that the docker is properly running if I run this on a Ubuntu 18.04 machine. My current one is 16.04 where I ran into issues.
Upgrading my VM to 18.04 fixed my issue.
5 years ago by Eleven