Open rrendec opened 5 months ago
I found this workaround, which is good enough for my use case, since it's on a test system.
mount /sysroot/ -o remount,rw
rm /ostree/deploy/centos/deploy/bb6e714e25417374aa9d6b86f5e6c5e57a687b30cb120bcfab35ff6d7fbb6412.0/etc/yum.repos.d/osbuild.repo
mount /sysroot/ -o remount,ro
If you have a pending deployment, it'll use that as the source of repo information.
So, try rpm-ostree cleanup -p
first.
Describe the bug
I'm trying to install a bunch of local rpm packages using
rpm-ostree install *.rpm
. The installation fails with the error below.Reproduction steps
rpm-ostree install *.rpm
.Expected behavior
There should be a way to disable or remove the broken repo during installation, and then the installation should succeed. I did try a few things (see "additional information" below, but nothing worked).
Actual behavior
Installation fails with error:
System details
Additional information
I tried to add
enabled=0
to the offending repo configuration in/etc/yum.repos.d/osbuild.repo
. I also tried to remove the repo file altogether. Neither worked. Further (clumsy) investigation using strace revealed that rpm-ostree opens the repo file from/ostree/deploy/centos/deploy/bb6e714e25417374aa9d6b86f5e6c5e57a687b30cb120bcfab35ff6d7fbb6412.0/etc/yum.repos.d/osbuild.repo
.I also tried
rpm-ostree reload
andrpm-ostree refresh-md
but neither helped. However,rpm-ostree refresh-md
completed without errors, and the output suggests that the offending repo was omitted as expected:However, running
rpm-ostree install *.rpm
again still insists on using the broken repo and fails.