2

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?

New contributor
Samuel Dalmeida is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
3
  • 5
    It 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. Commented 19 hours ago
  • 2
    Please confirm if Wine is installed from WineHQ. Commented 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. Commented 19 hours ago

1 Answer 1

4

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.

  • Upgrade Ubuntu as normal

  • 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.sources
    
  • Finally 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.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.