How I finally got Wine32 working on my Ubuntu machine
Status: Resolved
Publication date: 2024-12-22
Last edited by: Garyf
Last updated: 2024 - 12 - 22
The problem
If you’ve ever tried installing Wine32 on an Ubuntu system and ran into roadblocks, you’re not alone! I went through quite a bit of trial and error before finally getting it set up correctly. Here’s a step-by-step guide based on what worked for me.
The resolution
Please note: cheekyfactor.com or the owners of this site cannot be held responsible if things go wrong. You perform these tasks at your own risk.
Device: Lenovo
Operating system: Ubuntu
Software: Wine, Wine32, Aptitude
Guidance for Lenovo, Ubuntu, Wine, Wine32, Aptitude
Step 1: Clean Up Any Existing Wine Installation
First, I removed any existing Wine packages that might have been causing conflicts. This step ensures you’re starting with a clean slate:
sudo apt remove --purge wine* -y
sudo apt autoremove -y
sudo apt autoclean
Step 2: Add the Official WineHQ Repository
Next, I added the WineHQ repository to my system. This involved creating a secure keyring for the repository and then adding it:
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo apt-add-repository 'deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/winehq-archive.key] https://dl.winehq.org/wine-builds/ubuntu/ jammy main'
After adding the repository, I updated the package lists:
sudo apt update
Step 3: Enable 32-Bit Architecture Support
Since Wine32 is for 32-bit applications, enabling i386 architecture is crucial. Here’s how I did it:
sudo dpkg --add-architecture i386
sudo apt update
sudo apt --fix-broken install
sudo apt update
Step 4: Install a Necessary Dependency
During my setup, I found that libgd3:i386 was required. Installing it helped avoid errors later:
sudo apt install libgd3:i386
Step 5: Install WineHQ-Stable
Once the prep work was done, I installed the stable version of WineHQ:
sudo apt install winehq-stable
Step 6: Install Aptitude and Wine32
Finally, I installed Wine32 using aptitude. Aptitude is great for resolving package dependencies automatically:
sudo apt install aptitude sudo aptitude install wine32
Wrap-Up
After following these steps, Wine32 was up and running perfectly on my Ubuntu system. If you’re having trouble, double-check each step—especially enabling i386 architecture and ensuring dependencies like libgd3:i386 are installed.
Hopefully, this guide saves you some headaches!