0

我有一个使用 registry.redhat.io/ubi8/ubi-minimal 作为基础镜像的 dockerfile。使用 microdnf 安装了 git,下载了几个包,但是在尝试使用 microdnf remove git 删除时,我收到了这些错误。

microdnf --enablerepo=ubi-8-baseos --enablerepo=ubi-8-appstream install git

error: Could not depsolve transaction; 2 problems detected:
 Problem 1: package git-core-2.27.0-1.el8.x86_64 requires less, but none of the providers can be installed
  - conflicting requests
  - problem with installed package git-core-2.27.0-1.el8.x86_64
 Problem 2: package git-core-2.27.0-1.el8.x86_64 requires openssh-clients, but none of the providers can be installed
  - package git-core-doc-2.27.0-1.el8.noarch requires git-core = 2.27.0-1.el8, but none of the providers can be installed
  - conflicting requests
  - problem with installed package git-core-doc-2.27.0-1.el8.noarch
4

1 回答 1

0

重新排序包依赖项有助于解决问题。

microdnf remove libedit openssh openssh-clients git-core git-core-doc git less帮助。

希望 microdnf 也支持 dnf 的 autoremove :(

于 2021-03-23T14:11:07.350 回答