https://github.com/tianon/docker-brew-ubuntu-core/issues/122
RUN apt-get -y update && \
dpkg -l | grep ^ii | cut -d' ' -f3 | xargs apt-get install -y --reinstall
我使用上面的命令在 ubuntu docker 镜像中安装手册页。
但是我得到了这个错误。有人知道如何解决这个问题吗?谢谢。
...
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/w.procps because link group w is broken
Processing triggers for libc-bin (2.31-0ubuntu9) ...
E: Could not configure 'libc6:amd64'.
E: Could not perform immediate configuration on 'libgcc-s1:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
The command '/bin/sh -c apt-get -y update && dpkg -l | grep ^ii | cut -d' ' -f3 | xargs apt-get install -y --reinstall' returned a non-zero code: 123
最佳答案
问题似乎与重新安装 libgcc-s1:amd64 软件包有关。我发现我可以“跳过”那个,一切正常。
这是我使用的修改后的 RUN 行
RUN apt-get -y update && \
dpkg -l | grep ^ii | cut -d' ' -f3 | grep -v '^libgcc-s1:amd64$' | xargs apt-get install -y --reinstall
关于docker - 在 ubuntu docker 图像中包含手册页?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62117852/