Tencent / Tencent/TAD_Sim

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

Open
#134 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
465
Forks
122
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Dockerfile line 173, where the Boost 1.75.0 archive is downloaded and extracted, and verify why the configured URL returns HTML instead of a bzip2 archive. Re-run the provided docker build command after correcting the download source; done means the archive extracts and the remaining Boost installation steps complete successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, docker, ubuntu
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.