rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
75 stars 91 forks source link

librepo in ubi8-minimal breaks "microdnf install --nodocs" #177

Closed rolweber closed 3 years ago

rolweber commented 4 years ago

In ubi8-minimal:latest, calling microdnf install --nodocs fails with status 141. In ubi8-minimal:8.0, it worked. I could reproduce this problem by upgrading only librepo in the 8.0 images.

Dockerfile:

FROM registry.access.redhat.com/ubi8/ubi-minimal:8.0

RUN microdnf update \
    librepo \
 && rm -rf /var/cache/yum

RUN microdnf install --nodocs bzip2

output (redacted):

# first call to microdnf
Package                      Repository      Size
Upgrading:                                       
 librepo-1.10.3-3.el8.x86_64 ubi-8-baseos 90.5 kB
Transaction Summary:
 Installing:        0 packages
 Reinstalling:      0 packages
 Upgrading:         1 packages
 Removing:          0 packages
 Downgrading:       0 packages

...
# second call to microdnf
Installing:                                    
 bzip2-1.0.6-26.el8.x86_64 ubi-8-baseos 61.6 kB
Transaction Summary:
 Installing:        1 packages
 Reinstalling:      0 packages
 Upgrading:         0 packages
 Removing:          0 packages
 Downgrading:       0 packages
Downloading packages...
Running transaction test...
The command '/bin/sh -c microdnf install --nodocs bzip2' returned a non-zero code: 141

related issues: https://github.com/rpm-software-management/microdnf/issues/50 https://bugzilla.redhat.com/show_bug.cgi?id=1769831