Installations Problem with "wine" on Ubuntu Server 22.10

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
anakingk
Newbie
Newbie
Posts: 1
Joined: Thu Apr 20, 2023 3:33 am

Installations Problem with "wine" on Ubuntu Server 22.10

Post by anakingk »

Hello folks,

I have a problem with wine on my Ubuntu Server 22.10 and I hope you guys can help me.

Important info: Ubuntu runs on my MacBook Air M1 (Ventura | arm64). I ran the operating system via UTM (Virtual Machine), i.e. not properly installed as a second operating system (?!). I could therefore imagine that it is also related to this, but the problem should still be able to be solved.

Think it's more of a skill lack and I'm looking for help here.

Here is a more detailed description of the problem:

I'm trying to get wine (to install Steam) to work, but no matter what I try, I get various error messages like:

Code: Select all

it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32:i386
I was able to install wine like with the following command,

Code: Select all

sudo apt install wine
However, after the following steps, the error message came up:

Code: Select all

cd ~/Downloads
wine steam_installer.exe

The command

Code: Select all

which wine
definitely showed a path and when I tried to install steam, a window with the wine logo also came up, but I never got any further.


I've really tried a lot. Chat GPT couldn't solve the problem either.

Examples of actions I have already taken:
- apt-get install wine32:i386 doesn't work for me, the following error message appears:

Code: Select all

Reading package lists... Done
Building dependency tree... Done
Status information is being read... Done
E: Package wine32:i386 cannot be found.
- sudo apt-get update (before anyone suggests that I did 1000x)
- sudo dpkg --add-architecture i386 I also tried
- Add key didn't work either (sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5)
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 (did not work)
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 40976EAF437D05B5 (didn't help either)
- When trying to add Wine HQ repositories, the following message appears:

My input:

Code: Select all

sudo apt-get upgrade
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/xenial main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
Output:

Code: Select all

The following packages have unmet dependencies:
  wine-stable:i386 : Depends on: libc6:i386 (>= 2.17) but is not installable
                     Depends on: wine-stable-i386:i386 (= 5.0.3~xenial) but should not be installed
E: Unable to correct problems, you have held defective packages.

So the core issue seems to be that there is a problem with a dependency of the "wine-stable:i386" package that fails to install.


Here is some more information that might be helpful:

- Operating system version: Ubuntu 22.10 (codename: kinetic)
- Wine version: I uninstalled it first, I think that will have been the latest?
- Output of "uname -a":

Code: Select all

Linux thedarkside 5.19.0-40-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 23 21:39:25 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
- Output of "dpkg --print-architecture": arm64
- Output of "sudo apt-get install wine32:i386":

Code: Select all

Reading package lists... Done
Building dependency tree... Done
Status information is read in... Done
Package wine32:i386 is a virtual package provided by:
   winehq-staging:i386 8.6~jammy-1
   winehq-stable:i386 8.0.1~jammy-1
   winehq-devel:i386 8.6~jammy-1
You should explicitly choose one to install.

E: There is no installation candidate for package 'wine32:i386'.
- Output of sudo nano /etc/apt/sources.list

Code: Select all

## See sources.list(5) for more information, especially
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.
# deb https://dl.winehq.org/wine-builds/ubuntu/impish main

I would be very grateful if you guys could help me to solve this problem.

Thanks in advance!

Anakin
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Installations Problem with "wine" on Ubuntu Server 22.10

Post by jkfloris »

- Output of "dpkg --print-architecture": arm64
Wine is not an emulator. An ARM CPU cannot run i386 programs.
May be you could configure the Virtual Machine to emulate an amd64 processor.
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/xenial main'
winehq-staging:i386 8.6~jammy-1
deb https://dl.winehq.org/wine-builds/ubuntu/impish main

Operating system version: Ubuntu 22.10 (codename: kinetic)
Make sure you add the correct Ubuntu repository.

Also, I don't expect Steam to work with UTM:
From https://mac.getutm.app:
Can I run games?
No, probably not. UTM does not currently support GPU emulation/virtualization on Windows and therefore lacks support for 3D acceleration (e.g. OpenGL and DirectX). You may be able to run older games with software rendering options, but nothing with hardware acceleration. There is experimental support for hardware OpenGL acceleration on Linux through Virgl.
Locked