Topgrade: Updating error with mpv-libs file

I'm trying to update to the latest version but I get this error: Checkout mpv-libs-0.40.0.1.fc42.x86_64: Hardlinking 81/....file to limp.so.2.5.0: file exists
How can I continue to install?

ChatGPT suggested the following, but I don't want to blindly run commands...

  1. 🔄 Try upgrading manually
Run this to see the full error:

sudo rpm-ostree upgrade

This will retry the update and confirm the error without topgrade’s noise.


---

  1. ♻️ Rollback to a clean deployment
If your current system was left in a half-upgraded state:

sudo rpm-ostree rollback

This boots into the previously working deployment.



Then, reboot:

systemctl reboot

After reboot, run the upgrade again:

sudo rpm-ostree upgrade


---

  1. 🧹 Clean up deployments
To free up space and remove broken deployments:

sudo rpm-ostree cleanup -m

This helps avoid "file exists" errors caused by deployment collisions.


---

  1. 🔧 Remove layered packages (like mpv-libs, if layered)
If you manually layered mpv, it might be causing the issue.

Check your layered packages:

rpm-ostree status

If mpv or mpv-libs shows as layered, remove it:

sudo rpm-ostree uninstall mpv

Then run:

sudo rpm-ostree upgrade

You can later re-layer mpv with:

sudo rpm-ostree install mpv


---

  1. 📦 Use overrides only if needed
If it still fails and mpv-libs is critical, override it manually:

dnf download mpv-libs # Run this inside a toolbox or container
sudo rpm-ostree override replace ./mpv-libs-<version>.rpm

Then try rpm-ostree upgrade again.
Was this page helpful?