coreos / rpm-ostree

⚛📦 Hybrid image/package system with atomic upgrades and package layering
https://coreos.github.io/rpm-ostree
Other
846 stars 190 forks source link

Doing 'override remove glibc.i686' fails #1231

Open jlebon opened 6 years ago

jlebon commented 6 years ago

From a tree which already has glibc x86_64 and i686, one gets an error when trying to remove it:

# rpm-ostree override remove glibc.i686
Checking out tree 89d3a08... done
error: Multiple packages match "glibc"

Somehow, libdnf is selecting both arches instead of just one.

Reproducer:

# rpm-ostree install glibc.i686
# ostree commit -b vmcheck --tree=ref=$pending_csum --fsync=no
# rpm-ostree cleanup -p
# rpm-ostree upgrade
# rpm-ostree override remove glibc.i686
LukeShortCloud commented 4 months ago

I am running into this exact same issue when manually upgrading Mesa packages with locally built ones on Fedora Silverblue 38.

$ sudo rpm-ostree override replace mesa-filesystem-23.3.6-1.fc38.i686.rpm mesa-filesystem-23.3.6-1.fc38.x86_64.rpm mesa-vulkan-drivers-23.3.6-1.fc38.i686.rpm mesa-vulkan-drivers-23.3.6-1.fc38.x86_64.rpm mesa-libxatracker-23.3.6-1.fc38.i686.rpm mesa-libxatracker-23.3.6-1.fc38.x86_64.rpm mesa-libgbm-23.3.6-1.fc38.i686.rpm mesa-libgbm-23.3.6-1.fc38.x86_64.rpm mesa-libEGL-23.3.6-1.fc38.i686.rpm mesa-libEGL-23.3.6-1.fc38.x86_64.rpm mesa-libglapi-23.3.6-1.fc38.i686.rpm mesa-libglapi-23.3.6-1.fc38.x86_64.rpm mesa-dri-drivers-23.3.6-1.fc38.i686.rpm mesa-dri-drivers-23.3.6-1.fc38.x86_64.rpm mesa-libGL-debuginfo-23.3.6-1.fc38.i686.rpm mesa-libGL-debuginfo-23.3.6-1.fc38.x86_64.rpm mesa-va-drivers-23.3.6-1.fc38.i686.rpm mesa-va-drivers-23.3.6-1.fc38.x86_64.rpm mesa-vdpau-drivers-23.3.6-1.fc38.i686.rpm mesa-vdpau-drivers-23.3.6-1.fc38.x86_64.rpm
error: Multiple packages match "mesa-dri-drivers"
hivehivemind commented 2 months ago

Same issue here on Bazzite, based on Fedora 40.

$ rpm-ostree search mesa-va-drivers-freeworld
===== Name Matched =====
mesa-va-drivers-freeworld : Mesa-based VA-API drivers
# rpm-ostree override remove mesa-va-drivers-freeworld
error: Multiple packages match "mesa-va-drivers-freeworld"