Rpm-ostree giving error

packaging

#1

Hi All

When I tried to install software with rmp-ostree I get an error:

[john@desktop ~]$ rpm-ostree install gnome-tweaks
Checking out tree 603871e… done
Enabled rpm-md repositories: media fedora updates
error: Cannot update read-only repo

However if I try to upgrade it works:

[john@desktop ~]$ rpm-ostree upgrade
1 metadata, 0 content objects fetched; 569 B transferred in 2 seconds
No upgrade available.

Any ideas?


#2

Google quickly led me to https://github.com/rpm-software-management/libdnf/blob/master/libdnf/dnf-repo.cpp#L1690

And then I notice the media in your repo list. That will come from a file in /etc/yum.repos.d - I’d delete it unless you’re explicitly trying to load RPMs from a CDROM/DVD. If you are…hm, probably a bug in libdnf.


#3

Thanks for the suggestion Colin. It got me thinking.

There was actually nothing in /etc/yum.repos.d for “media” so I did a search for “media” and quickly realized that I had a read-only live usb key with server edition of fedora 25 inserted in a usb port on the pc. Once I took that out all was good.

Funny how that was causing the issue.


#4