docker - 在 ubuntu docker 图像中包含手册页?

标签 docker manpage

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/

相关文章:

docker - 如何修复由于hns错误而不会重新启动的docker daemon

docker - 无法使用HTTP请求从单独的容器访问Jenkins容器

syntax - 手册页的 SYNOPSIS 部分是否有规范?

vim - 输入手册页时避免在 Vim 中输入 'Press ENTER to continue'

pager - 颜色设置仅适用于手册页中的 "HELP"选项卡,不适用于整个手册页

linux - 在不安装包的情况下预览手册页

docker & MySQL : No secrets are created with docker-compose file

postgresql - 无法从 Docker 容器连接到主机上的 PostgreSQL

go - 如何在 docker registry api 中为带有标签的图像名称创建 map[string][]string?

c - 如何 "quickly"获取标准结构信息?