Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
943 views
in Technique[技术] by (71.8m points)

Is there a way to install git into RedHat ubi 8 minimal images with microdnf and work around errors installing shadow-utils?

Trying to install git into a Redhat UBI 8 minimal image with microdnf fails. I've traced the problem I think to the install of shadow-utils, which git requires. Trying to install shadow-utils alone fails as well. I had no trouble installing other common build environment tooling until I added git to the list, and it started failing on shadow-utils.

I can work around by using a non-minimal image and installing with yum instead of microdnf. Still, this seems like it should work. Does anyone have a workaround other than using a larger image to start with?

~$ docker run --rm -it registry.access.redhat.com/ubi8/ubi-minimal /bin/bash
[root@965febf561a2 /]# microdnf install shadow-utils

(microdnf:10): librhsm-WARNING **: 06:29:14.389: Found 0 entitlement certificates

(microdnf:10): librhsm-WARNING **: 06:29:14.390: Found 0 entitlement certificates
Downloading metadata...
Downloading metadata...
Downloading metadata...
Package                                                                                                                                                                                                         Repository                                                                           Size
Installing:
 libsemanage-2.9-3.el8.x86_64                                                                                                                                                                                   ubi-8-baseos                                                                     168.6 kB
 shadow-utils-2:4.6-11.el8.x86_64                                                                                                                                                                               ubi-8-baseos                                                                       1.3 MB
Transaction Summary:
 Installing:        2 packages
 Reinstalling:      0 packages
 Upgrading:         0 packages
 Removing:          0 packages
 Downgrading:       0 packages
Downloading packages...
Running transaction test...
Installing: libsemanage;2.9-3.el8;x86_64;ubi-8-baseos
Installing: shadow-utils;2:4.6-11.el8;x86_64;ubi-8-baseos
error: Error -1 running transaction
question from:https://stackoverflow.com/questions/65840469/is-there-a-way-to-install-git-into-redhat-ubi-8-minimal-images-with-microdnf-and

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...