我正在尝试运行我的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 apt-get install curl行
我试着这样做:RUN apt-get update && apt-get install curl,但我当时面对的是这样的情况:“在这个操作之后,将使用339 kB的额外磁盘空间。
你想继续吗?Y/n中止。命令/bin/sh -c apt-get update && apt-get install curl返回一个非零代码:1“有什么想法吗?
发布于 2019-01-25 01:57:54
你想要apt-get -y install curl。-y使apt在不提示确认的情况下继续进行。
发布于 2019-01-25 01:59:05
这应该会有帮助:
RUN apt-get clean && apt-get -y update && apt-get install -y curlhttps://stackoverflow.com/questions/54352416
复制相似问题