I have a problem when trying to run docker build. This is the command I run:
docker build -t <name> .
The Dockerfile contains the following first lines:
FROM ubuntu:xenial
RUN apt-get -y update
RUN apt-get -y install --fix-missing \
sudo \
git
When building it though, I get the following error messages:
Unable to correct missing packages.
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/perl/perl-modules-5.22_5.22.1-9ubuntu0.2_all.deb 404 Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/perl/libperl5.22_5.22.1-9ubuntu0.2_amd64.deb 404 Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/perl/perl_5.22.1-9ubuntu0.2_amd64.deb 404 Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/i/ifupdown/ifupdown_0.8.10ubuntu1.2_amd64.deb 404 Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.2g-1ubuntu4.11_amd64.deb 404 Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.0.2g-1ubuntu4.11_amd64.deb 404 Not Found [IP: 91.189.88.152 80]
E: Aborting install.
The command '/bin/sh -c apt-get -y install --fix-missing sudo git' returned a non-zero code: 100
It works fine on my friend's computer, but continues to crash on mine every time I try again. I am using docker version 18.03.1-ce and Ubuntu 16.04.4, everything is up-to-date, and I honestly have no idea at all what is going wrong...
docker run -i -t [your image]
and then insideping 8.8.8.8 && dig askubuntu.com
)? – Kalle Richter May 02 '18 at 08:38ubuntu:xenial
in order to exclude some issues. – Kalle Richter May 04 '18 at 09:49