Skip to content

ubuntu下docker build下载boost_1_75_0.tar.bz2解压报错 #134

Description

@blingsong
Image

执行命令:
docker build . -t tadsim/desktop:v1.0 --build-arg BASE_MIRROR=ccr.ccs.tencentyun.com/library/

报错:
=> CACHED [10/29] RUN wget -O cppzmq-4.7.1.tar.gz https://github.com/zeromq/cppzmq/archive/v4.7.1.tar.gz && tar zxf cppzmq-4.7.1.tar.gz && cd cppzmq-4.7.1 && mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PRE 0.0s
=> ERROR [11/29] RUN wget -O boost_1_75_0.tar.bz2 https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.bz2 && tar --bzip2 -xf boost_1_75_0.tar.bz2 && cd boost_1_75_0 && ./bootstrap.sh --prefix=/usr/local && ./b2 install - 2.3s

[11/29] RUN wget -O boost_1_75_0.tar.bz2 https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.bz2 && tar --bzip2 -xf boost_1_75_0.tar.bz2 && cd boost_1_75_0 && ./bootstrap.sh --prefix=/usr/local && ./b2 install --with-filesystem --with-locale --with-regex --with-system --with-thread --with-date_time --with-program_options && cd .. && rm -rf boost_*:
0.370 --2025-10-23 06:25:31-- https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.bz2
0.371 Resolving boostorg.jfrog.io (boostorg.jfrog.io)... 18.232.172.199, 18.214.194.113, 3.95.117.170
0.383 Connecting to boostorg.jfrog.io (boostorg.jfrog.io)|18.232.172.199|:443... connected.
1.061 HTTP request sent, awaiting response... 302 Moved Temporarily
1.288 Location: https://landing.jfrog.com/reactivate-server/boostorg [following]
1.288 --2025-10-23 06:25:32-- https://landing.jfrog.com/reactivate-server/boostorg
1.288 Resolving landing.jfrog.com (landing.jfrog.com)... 18.214.194.113, 3.95.117.170, 18.232.172.199
1.349 Connecting to landing.jfrog.com (landing.jfrog.com)|18.214.194.113|:443... connected.
2.023 HTTP request sent, awaiting response... 200 OK
2.254 Length: 11533 (11K) [text/html]
2.254 Saving to: 'boost_1_75_0.tar.bz2'
2.254
2.254 0K .......... . 100% 95.1M=0s
2.254
2.254 2025-10-23 06:25:33 (95.1 MB/s) - 'boost_1_75_0.tar.bz2' saved [11533/11533]
2.254
2.266 bzip2: (stdin) is not a bzip2 file.
2.266 tar: Child returned status 2
2.266 tar: Error is not recoverable: exiting now


Dockerfile:173

172 | # Install Boost
173 | >>> RUN wget -O boost_${BOOST_VERSION}.tar.bz2 https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_${BOOST_VERSION}.tar.bz2
174 | >>> && tar --bzip2 -xf boost_${BOOST_VERSION}.tar.bz2
175 | >>> && cd boost_${BOOST_VERSION}
176 | >>> && ./bootstrap.sh --prefix=/usr/local
177 | >>> && ./b2 install --with-filesystem --with-locale --with-regex --with-system
178 | >>> --with-thread --with-date_time --with-program_options
179 | >>> && cd ..
180 | >>> && rm -rf boost_*
181 |

ERROR: failed to solve: process "/bin/sh -c wget -O boost_${BOOST_VERSION}.tar.bz2 https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_${BOOST_VERSION}.tar.bz2 && tar --bzip2 -xf boost_${BOOST_VERSION}.tar.bz2 && cd boost_${BOOST_VERSION} && ./bootstrap.sh --prefix=/usr/local && ./b2 install --with-filesystem --with-locale --with-regex --with-system --with-thread --with-date_time --with-program_options && cd .. && rm -rf boost_*" did not complete successfully: exit code: 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions