透明水晶 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日

悬赏问题

  • ¥20 keepalive配置业务服务双机单活的方法。业务服务一定是要双机单活的方式
  • ¥50 关于多次提交POST数据后,无法获取到POST数据参数的问题
  • ¥15 win10,这种情况怎么办
  • ¥15 如何在配置使用Prettier的VSCode中通过Better Align插件来对齐等式?(相关搜索:格式化)
  • ¥100 在连接内网VPN时,如何同时保持互联网连接
  • ¥15 MATLAB中使用parfor,矩阵Removal的有效索引在parfor循环中受限制
  • ¥20 Win 10 LTSC 1809版本如何无损提升到20H1版本
  • ¥50 win10 LTSC 虚拟键盘不弹出
  • ¥30 微信小程序请求失败,网页能正常带锁访问
  • ¥15 Matlab求解微分方程,如何用fish2d进行预优?