Wine is installed from a different repo (WineHQ) for different versions of Ubuntu. If I'm running Ubuntu Jammy (22.04), will updating to Ubuntu Noble (24.04) break my Wine installation?
-
5It is impossible to answer this question with facts. You can have a hardware failure: power outage, broken harddisk, corrupted memory that can mess up an upgrade. All you can do is prepare for failure: make backups of personal files and know how to restore a backup. I would myself aim to setup your system such that you can erase your system partition/disk and re-install from scratch where you afterwards add your personal files/partition/disk and non-standard software. This also works if you want to move to better hardware.Rinzwind– Rinzwind2026-03-31 09:11:54 +00:00Commented 19 hours ago
-
2Please confirm if Wine is installed from WineHQ.Artur Meinild– Artur Meinild2026-03-31 09:15:20 +00:00Commented 19 hours ago
-
This seems to be fully answered but let me just add the following: I have a rig with 20.04, 22.04 & 24.04 with a common 'home'. I have multiple WINE application that run the same common code (WINEPREFIX) from all three. The only problem between them is the desktop icon I use to evoke the programs which has to have small differences between each OS flavour. Hence I have a row of icons for each OS version. When running on a new OS WINE has to find the correct version and install it before it runs it.david– david2026-03-31 09:33:08 +00:00Commented 19 hours ago
1 Answer
I assume you've installed Wine from the WineHQ repos. This generally shouldn't pose a problem, since you can update the Wine packages manually afterwards.
I'm doing the same thing with Docker, and it should work the same way. Here's what you should do.
After Ubuntu is upgraded you need to change the Wine repos as well. Open a terminal and run:
# Remove the Jammy source file sudo rm /etc/apt/sources.list.d/winehq-jammy.sources # Add the Noble source file sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sourcesFinally upgrade the Wine packages (from terminal or software updater).
# Update package indexes sudo apt update # Upgrade Wine to latest version sudo apt full-upgrade # Clean up unneeded packages sudo apt autoremove
Now Wine (and all other packages) should be upgraded to the latest version.