Wednesday, November 30, 2022

Installing Wine 7.01 on Ubuntu 22.04

I used Wine to run Photoshop CS2 on my Ubuntu 20.04 box (Intel Core I5).  It worked without issue. I've upgraded that box to 22.04 LTS and Photoshop still works without issues.  I've now retired that box to the garage and I've build a new system using an AMD 5900x 12 core CPU which is running a clean install of Ubuntu 22.04 (no upgrade, fresh install).  I've installed Wine 7.01 Stable on the new box and it works good with a few test programs I've installed....BUT......

Photoshop CS2 will not run stably on the new box. It either won't start or crash on closing.  Here is a sample of the crash screen:
  

When You Click on the CANCEL Button you get this:

Click on the SHOW DETAILS Button give you the following long list of information which I don't under stand (three pictures need to show all the long screens of information):



This information means very little to me and I haven't been able to fix this on my New AMD box.  If anyone knows how to fix this issue please reply to this post, I get notified when someone replies.

Anyway Wine has worked great for me for years and I only really need it for Photoshop CS2 but I've installed it on the new box anyway.  Here's how to install Wine 7.01 on your Ubuntu 22.04 System. (This info is compiled from Wine's Install page for Ubuntu.  I've followed them and know they work.  If you need more information or are installing Wine on another version of OS visit their Download page for information on what you need to change to get this working for you).

Open a Terminal Window and type in the following six commands (in red) one at a time, letting each one finish before moving to the next:



If your system is 64 bit, enable 32 bit architecture:
sudo dpkg --add-architecture i386 


Download and add the repository key:
sudo mkdir -pm755 /etc/apt/keyrings

sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key


Set the WineHQ sources file for your version of Ubuntu (this is 22.04):
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources


Update your package info:
sudo apt update

Now only do one of the following based on weather you need the Stable (recommend) Wine version or want a newer but not as tested Development Branch (use if there is some feature you need and it's only in the Development branch), and if your you like life on the edge go for the Staging Branch (should only be done on non-production machine).

ONLY PICK ONE OF THESE 3 COMMANDS, DO NOT RUN MORE THAN ONE!

Stable branch (recommended)
sudo apt install --install-recommends winehq-stable


Development branch (think beta but if you need a certain feature go for it)
sudo apt install --install-recommends winehq-devel


Staging branch (think alpha, testing only, not on production machine)
sudo apt install --install-recommends winehq-staging

Hope this helps you get Wine working on your Ubuntu 22.05 box.  Remember if you know what is causing my error's please comment any suggestions.