Upgrade Fedora Remix for WSL to 31

Hello,

We are preparing an upgrade for Fedora Remix for WSL 31. Meanwhile, you can upgrade it in place following these steps:

First, if you are in Windows 1903 or newer first backup your installation:

wsl --export fedoraremix fedoraremix30_backup.tar.gz

Then proceed:

sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade --allowerasing --skip-broken download --releasever=31
sudo dnf system-upgrade reboot

At this point, it will raise an error, ignore it, and execute the following commands:

sudo dnf system-upgrade upgrade
cat /etc/fedora-release
exit

If you face an error like: "Failed to obtain the transaction lock (logged in as root).". Run this:

sudo dnf upgrade --refresh rpm glibc
sudo rm /var/lib/rpm/.rpm.lock
sudo dnf upgrade dnf

And repeat the last command that you attempted and keep following the steps.