Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

The base image fails to build due to duplicate dependencies from openshift-dependencies and system repos #16

Open
aleskandro opened this issue Nov 28, 2023 · 0 comments

Comments

@aleskandro
Copy link
Member

When building the base image:

Package shadow-utils-2:4.9-8.el9.x86_64 is already installed.
Package gzip-1.12-1.el9.x86_64 is already installed.
Package python3-3.9.17-2.el9.x86_64 is already installed.
Error: 
 Problem: package python-unversioned-command-3.9.18-1.el9.noarch from appstream requires python3 = 3.9.18-1.el9, but none of the providers can be installed
  - cannot install both python3-3.9.18-1.el9_3.x86_64 from openshift-dependencies and python3-3.9.18-1.el9.x86_64 from baseos
  - cannot install the best candidate for the job
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Error: building at STEP "RUN INSTALL_PKGS="       which tar wget hostname util-linux iputils       socat tree findutils lsof bind-utils file shadow-utils       iproute centos-release-nfv-openvswitch       gzip procps-ng rsync iproute diffutils python3       python-unversioned-command" &&     echo 'skip_missing_names_on_install=0' >> /etc/yum.conf &&     echo "${OCP_VERSION}" > /etc/yum/vars/ocpversion &&     dnf install --nodocs --setopt=install_weak_deps=False -y ${INSTALL_

@LorbusChris @vrutkovs excluding python (exclude=python3 in the openshift-dependencies.repo file) resolves currently but I expect this can happen with other packages in the future. Do we prefer to include only the packages we need from the openshift-dependencies repo? Which ones?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant