我一直在努力建设
FROM rocker/r-ver:3.4.4
MAINTAINER Dennis Leão
RUN apt-get -y update && \
apt-get install -y build-essential curl openssl
但我收到以下错误
Err:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease
Could not connect to security-cdn.debian.org:80 (151.101.252.204). - connect (111: Connection refused)
Err:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Could not connect to cdn-fastly.deb.debian.org:80 (151.101.252.204). - connect (111: Connection refused)
Err:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Unable to connect to cdn-fastly.deb.debian.org:http:
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Could not connect to cdn-fastly.deb.debian.org:80 (151.101.252.204). - connect (111: Connection refused)
W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease Could not connect to security-cdn.debian.org:80 (151.101.252.204). - connect (111: Connection refused)
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Unable to connect to cdn-fastly.deb.debian.org:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package build-essential
E: Unable to locate package curl
我正在使用Macos Mojave,但我能够在ubuntu 16上构建。我该怎么办?
好吧,最后,这是一个DNS问题,改变我的Mac的DNS解决了这个问题。