Thanks, @rulbricht. I’ll wait for the official fix. ![]()
For Ubuntu (and derivatives), the simplest solution is to stick with Wine 10.0.0, since the issue is present in Wine 11.0.0.0. I prefer to use the Wine HQ builds.
CODENAME=`lsb_release --codename | cut -f2`
# Use dpkg --print-foreign-architectures to check if already installed
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
sudo wget -NP /etc/apt/sources.list.d/ "https://dl.winehq.org/wine-builds/ubuntu/dists/$CODENAME/winehq-$CODENAME.sources"
sudo apt update
sudo apt install wine-stable=10.0.0.0~$CODENAME-1 wine-stable=10.0.0.0~$CODENAME-1 wine-stable-i386=10.0.0.0~$CODENAME-1 wine-stable-amd64=10.0.0.0~$CODENAME-1 --yes
printf '\n# Use Wine 10.0.0.0\nPATH=$PATH:/opt/wine-stable/bin\n' >> ~/.profile
source ~/.profile
sudo apt-mark hold wine-stable wine-stable-i386 wine-stable-amd64
If you need to remove Wine 11.0.0.0, or have a bit of a mess, this should help.
# Remove Wine packages and configuration files
sudo apt purge "wine*"
sudo apt autoremove --purge
# Remove Wine directory from home folder
rm -rf ~/.wine
# Optionally, remove residual configuration files
rm -rf ~/.local/share/applications/wine
rm -rf ~/.local/share/desktop-directories/wine*
rm -rf ~/.local/share/icons/hicolor/*/apps/wine*
# Clean up APT
sudo apt update
sudo apt autoclean