无法构建docker容器

0 apt-get docker

我正在尝试运行 Dockerfile 脚本,但遇到此错误:

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.47.0-1ubuntu2.9_amd64.deb  404  Not Found [IP: 91.189.88.161 80]

E: Unable to fetch some archives, may be run apt-get update or try with --fix-missing?
Run Code Online (Sandbox Code Playgroud)

这发生在行 RUN apt-get install curl

我尝试这样做:RUN apt-get update && apt-get install curl但随后我遇到了这样的情况:“此操作之后,将使用 339 kB 的额外磁盘空间。

你想继续吗?[是/否] 中止。该命令/bin/sh -c apt-get update && apt-get install curl返回一个非零代码:1“有什么想法吗?

lar*_*sks 6

你要apt-get -y install curl。该-y原因容易在不提示确认的情况下继续进行。