我有一个dockerfile,使用registry.redhat.io/ubi8/ubi-minimal作为基础镜像。使用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
发布于 2021-03-23 14:11:07
对包依赖关系进行重新排序有助于解决此问题。
microdnf remove libedit openssh openssh-clients git-core git-core-doc git less
帮了忙。
Wish microdnf还支持dnf的自动删除:(
https://stackoverflow.com/questions/66764847
复制