透明水晶 2022-09-30 07:23 采纳率: 96.8%
浏览 85
已结题

Docker 构建失败

Docker 构建失败


fly@LENOVO-XIAOXINCHAO:/mnt/e/docker-desktop-data/docker-file$ docker build -t ubuntu14.04-nvt:v1 .
[+] Building 122.4s (6/10)
 => [internal] load build definition from Dockerfile                                                                                                   0.5s
 => => transferring dockerfile: 38B                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                      0.7s
 => => transferring context: 2B                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/ubuntu:14.04                                                                                       34.7s
 => CACHED [1/6] FROM docker.io/library/ubuntu:14.04@sha256:d7a459ecd77ebb09525584f2c3e1bb7f6a2879d90df8a3523c1b899dfc2a226f                           0.0s
 => [internal] load build context                                                                                                                      0.7s
 => => transferring context: 244B                                                                                                                      0.1s
 => ERROR [2/6] RUN apt-get update -q && apt-get install -y -q     bash-completion     bc     bison     build-essential     cpio     curl     dos2un  86.6s
------
 > [2/6] RUN apt-get update -q && apt-get install -y -q     bash-completion     bc     bison     build-essential     cpio     curl     dos2unix     enca     flex     gawk     gcc-multilib     gettext     git-core     g++-multilib     gnupg     gperf     libc6-dev-i386     libx11-dev     lib32ncurses5-dev     lib32z1     nano     python     rsync     subversion     sudo     texinfo     tofrodos     wget     x11proto-core-dev     zip     zlib1g-dev     make     libc6     lib32stdc++6     zlib1g-dev     ncurses-term     libncursesw5-dev     g++     u-boot-tools     texinfo     texlive     gawk     upx     pngquant     libgl1-mesa-dev     mingw32     lib32bz2-1.0     mtd-utils     vim     squashfs-tools     cmake     liblz4-tool     device-tree-compiler     mingw-w64  && rm -rf /var/lib/apt/lists/*:
#5 3.049 Get:1 https://esm.ubuntu.com trusty-infra-security InRelease
#5 3.354 Get:2 https://esm.ubuntu.com trusty-infra-updates InRelease
#5 3.710 Get:3 https://esm.ubuntu.com trusty-infra-security/main amd64 Packages
#5 5.216 Get:4 https://esm.ubuntu.com trusty-infra-updates/main amd64 Packages
#5 85.97 Err http://archive.ubuntu.com trusty InRelease
#5 85.97
#5 85.97 Err http://archive.ubuntu.com trusty-updates InRelease
#5 85.97
#5 85.97 Err http://archive.ubuntu.com trusty-backports InRelease
#5 85.97
#5 85.97 Err http://security.ubuntu.com trusty-security InRelease
#5 85.97
#5 85.97 Err http://archive.ubuntu.com trusty Release.gpg
#5 85.97   Unable to connect to archive.ubuntu.com:http: [IP: 91.189.91.38 80]
#5 85.97 Err http://security.ubuntu.com trusty-security Release.gpg
#5 85.97   Unable to connect to security.ubuntu.com:http: [IP: 185.125.190.36 80]
#5 85.97 Err http://archive.ubuntu.com trusty-updates Release.gpg
#5 85.97   Unable to connect to archive.ubuntu.com:http: [IP: 91.189.91.38 80]
#5 85.97 Err http://archive.ubuntu.com trusty-backports Release.gpg
#5 85.97   Unable to connect to archive.ubuntu.com:http: [IP: 91.189.91.38 80]
#5 85.98 Fetched 680 kB in 1min 24s (8070 B/s)
#5 85.98 Reading package lists...
#5 86.13 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease
#5 86.13
#5 86.13 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
#5 86.13
#5 86.13 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease
#5 86.13
#5 86.13 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
#5 86.13
#5 86.13 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.91.38 80]
#5 86.13
#5 86.13 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.91.38 80]
#5 86.13
#5 86.13 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.91.38 80]
#5 86.13
#5 86.13 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Unable to connect to security.ubuntu.com:http: [IP: 185.125.190.36 80]
#5 86.13
#5 86.13 W: Some index files failed to download. They have been ignored, or old ones used instead.
#5 86.13 Reading package lists...
#5 86.28 Building dependency tree...
#5 86.30 Reading state information...
#5 86.30 Package liblz4-tool is not available, but is referred to by another package.
#5 86.30 This may mean that the package is missing, has been obsoleted, or
#5 86.30 is only available from another source
#5 86.30
#5 86.30 Package mingw-w64 is not available, but is referred to by another package.
#5 86.30 This may mean that the package is missing, has been obsoleted, or
#5 86.30 is only available from another source
#5 86.30
#5 86.31 E: Unable to locate package dos2unix
#5 86.31 E: Unable to locate package enca
#5 86.31 E: Unable to locate package upx
#5 86.31 E: Unable to locate package pngquant
#5 86.31 E: Unable to locate package mingw32
#5 86.31 E: Unable to locate package mtd-utils
#5 86.31 E: Package 'liblz4-tool' has no installation candidate
#5 86.31 E: Package 'mingw-w64' has no installation candidate
------
executor failed running [/bin/sh -c apt-get update -q && apt-get install -y -q     bash-completion     bc     bison     build-essential     cpio     curl     dos2unix     enca     flex     gawk     gcc-multilib     gettext     git-core     g++-multilib     gnupg     gperf     libc6-dev-i386     libx11-dev     lib32ncurses5-dev     lib32z1     nano     python     rsync     subversion     sudo     texinfo     tofrodos     wget     x11proto-core-dev     zip     zlib1g-dev     make     libc6     lib32stdc++6     zlib1g-dev     ncurses-term     libncursesw5-dev     g++     u-boot-tools     texinfo     texlive     gawk     upx     pngquant     libgl1-mesa-dev     mingw32     lib32bz2-1.0     mtd-utils     vim     squashfs-tools     cmake     liblz4-tool     device-tree-compiler     mingw-w64  && rm -rf /var/lib/apt/lists/*]: exit code: 100
  • 写回答

2条回答 默认 最新

  • bosaidongmomo 2022-09-30 09:53
    关注

    你可以到容器里去操作。
    然后commit 提交镜像。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 11月23日
  • 已采纳回答 11月15日
  • 创建了问题 9月30日

悬赏问题

  • ¥15 运筹学中在线排序的时间在线排序的在线LPT算法
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧