Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker构建镜像终止运行 #94

Open
yjrqz777 opened this issue Nov 27, 2023 · 1 comment
Open

docker构建镜像终止运行 #94

yjrqz777 opened this issue Nov 27, 2023 · 1 comment

Comments

@yjrqz777
Copy link

docker构建镜像终止于第六部分
image
终止代码(这是修改加入 -y **参数后依然报错)

image

终止代码(这是修改加入 -y 参数后依然报错)

101.8   python3.6-minimal readline-common shared-mime-info xdg-user-dirs xz-utils
101.8 The following packages will be DOWNGRADED:
101.8   perl-base
101.8 0 upgraded, 133 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
101.8 E: Packages were downgraded and -y was used without --allow-downgrades.
------
Dockerfile:34
--------------------
  33 |
  34 | >>> RUN wget https://cnbj2m.fds.api.xiaomi.com/bsp-internal/ROS/open-source-docker-depends/base-deb.tar.gz \
  35 | >>> && tar -xzvf base-deb.tar.gz \
  36 | >>> && cp base-deb/*.deb /var/cache/apt/archives/ \
  37 | >>> && apt install -y --no-install-recommends /var/cache/apt/archives/*.deb \
  38 | >>> && rm -rf *
  39 |
--------------------
ERROR: failed to solve: process "/bin/sh -c wget https://cnbj2m.fds.api.xiaomi.com/bsp-internal/ROS/open-source-docker-depends/base-deb.tar.gz && tar -xzvf base-deb.tar.gz && cp base-deb/*.deb /var/cache/apt/archives/ && apt install -y --no-install-recommends /var/cache/apt/archives/*.deb && rm -rf *" did not complete successfully: exit code: 100

image

@yjrqz777
Copy link
Author

第六部分改为如下,运行通过

RUN wget https://cnbj2m.fds.api.xiaomi.com/bsp-internal/ROS/open-source-docker-depends/base-deb.tar.gz \
&& tar -xzvf base-deb.tar.gz \
&& cp base-deb/*.deb /var/cache/apt/archives/
RUN echo y| apt-get install --no-install-recommends /var/cache/apt/archives/*.deb && rm -rf *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant