Cannot uninstall the layered package steam-devices after upgrading to Fedora 40

Hi there.

I recently got the news that Fedora 40 Kinoite was released, so I went on to update & rebase to this version from Fedora 39; however, while I did not forget to uninstall the rpmfusion free & nonfree packages beforehand, I did forget about the package steam-devices which was dependent of those two aforementionned ones. So naturally any attempt to update, or reinstall both rpmfusion packages is met with an error:

error: Packages not found: steam-devices

The current rpm-ostree status returns this:

 rpm-ostree status
State: idle
Deployments:
● fedora:fedora/40/x86_64/kinoite
                  Version: 40.20240426.0 (2024-04-26T02:32:26Z)
               BaseCommit: 0f2821168034fb33d6f1d5a256a04bd8acf2389a2ce8ce04f984384d3cadbe9d
             GPGSignature: Valid signature by 115DF9AEF857853EE8445D0A0727707EA15B79CC
          LayeredPackages: libc.so.6 libdrm.so.2 libGL.so.1 libnsl.so.1 libserialport libwebkit2gtk-4.0.so.37 python3-pip screenfetch steam-devices

  fedora:fedora/39/x86_64/kinoite
                  Version: 39.20240426.0 (2024-04-26T00:41:16Z)
               BaseCommit: 327e56a19c9f4f70466357d4139cc330f731ce6cdc48e768a9af655eced5d9e8
             GPGSignature: Valid signature by E8F23996F23218640CB44CBE75CF5AC418B8E74C
          LayeredPackages: libc.so.6 libdrm.so.2 libGL.so.1 libnsl.so.1 libserialport libwebkit2gtk-4.0.so.37 python3-pip screenfetch steam-devices
            LocalPackages: rpmfusion-free-release-39-1.noarch rpmfusion-nonfree-release-39-1.noarch

If I try to uninstall steam-devices, I am met with this error:

rpm-ostree uninstall steam-devices
Checking out tree 0f28211... done
Resolving dependencies... done
Relabeling... done
Checking out packages... done
error: Checkout gstreamer1-1.22.11-1.fc39.i686: Hardlinking d7/d778e0033dba4a9301a7d002fb0b00293386c890e2acce613119d9b970dfb2.file to NEWS: Le fichier existe

If I try to rollback to 39, and try uninstalling steam-devices, I get this one:

rpm-ostree uninstall steam-devices
Checking out tree 327e56a... done
Resolving dependencies... done
Relabeling... done
Checking out packages... done
error: Checkout openssl-libs-1:3.2.1-2.fc40.i686: Hardlinking c2/a16ae9d400b294bd2613134439d1544728d78095e359a69e154e03128827f7.file to openssl.cnf: Le fichier existe

Note: I also have this same error message when I try uninstalling rpmfusion-free and rpmfusion-nonfree after the rollback.

I’ve tried rpm-ostree override remove steam-devices which returns

error: Package "steam-devices" not found

Considering that steam-devices is a layered package this is probably why.

I’m kind of stumped from here, I wonder which is the best course of action: should I try to keep on Fedora 40 and find a way to uninstall steam-devices one way or another, or should I try to rollback on Fedora 39, update, and then find a way to redo the whole process again ?

Added immutable

On Fedora 40, You can remove all layered and local packages using

rpm-ostree reset

After this, reinstall all the packages.
First reinstall the rpmfusion-free-release and rpmfusion-nonfree-release and reboot.

rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

After rebooting, update the system and make the RPM Fusion releases layered, so they won’t cause issues in the future rebase:

rpm-ostree update --uninstall rpmfusion-free-release --uninstall rpmfusion-nonfree-release --install rpmfusion-free-release --install rpmfusion-nonfree-release

Then, reinstall all previous layered packages with the following command and reboot.

rpm-ostree install libc.so.6 libdrm.so.2 libGL.so.1 libnsl.so.1 libserialport libwebkit2gtk-4.0.so.37 python3-pip screenfetch steam-devices
1 Like

Thank you very much! This actually solved everything with this issue, I was not aware of this option despite the research I did before asking for help. I’m gonna keep this one in mind next time I get through this kind of problem