Trying to upgrade wine on Raspberry Pi OS (32-bit)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
barhamd
Newbie
Newbie
Posts: 4
Joined: Mon Feb 21, 2022 5:55 pm

Trying to upgrade wine on Raspberry Pi OS (32-bit)

Post by barhamd »

I have installed Bullseye and then box86 and wine using pi-apps. This installation all appears to work fine, with the exception of not being able to talk to the com port.

I wanted to upgrade the version of wine from the 5.13 installed by pi-apps to something later, preferably the latest stable 7.0.0.0

I've tried following the instructions as best I can but I'm getting stuck with incompatible dependencies.

i@raspberrypi:~ $ sudo dpkg --add-architecture i386
pi@raspberrypi:~ $ wget -nc https://dl.winehq.org/wine-builds/winehq.key
--2022-03-05 13:51:09-- https://dl.winehq.org/wine-builds/winehq.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.62.217
Connecting to dl.winehq.org (dl.winehq.org)|151.101.62.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3220 (3.1K) [application/pgp-keys]
Saving to: 'winehq.key'

winehq.key 100%[===================>] 3.14K --.-KB/s in 0s

2022-03-05 13:51:09 (15.3 MB/s) - 'winehq.key' saved [3220/3220]

pi@raspberrypi:~ $ sudo apt-key add winehq.key
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list # added Added deb https://dl.winehq.org/wine-builds/debian/ bullseye main to the repository list in /etc/apt/sources.list
pi@raspberrypi:~ $ sudo apt update
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Get:3 https://dl.winehq.org/wine-builds/debian bullseye InRelease [8,045 B]
Hit:4 https://itai-nelken.github.io/weekly-box86-debs/debian InRelease
Get:5 http://archive.raspberrypi.org/debian bullseye/main i386 Packages [142 kB]
Get:6 https://dl.winehq.org/wine-builds/debian bullseye/main i386 Packages [505 kB]
Get:7 https://dl.winehq.org/wine-builds/debian bullseye/main all Packages [904 B]
Fetched 655 kB in 1s (530 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian bullseye InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian bullseye InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'non-free/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian bullseye InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'rpi/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian bullseye InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'https://dl.winehq.org/wine-builds/debian bullseye InRelease' doesn't support architecture 'armhf'
pi@raspberrypi:~ $ sudo apt install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
wine-stable:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
Depends: wine-stable-i386:i386 (= 7.0.0.0~bullseye-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 103
Joined: Sat Sep 04, 2021 9:35 pm

Re: Trying to upgrade wine on Raspberry Pi OS (32-bit)

Post by JoseskVolpe »

Raspbian repository don't offer support for i386 architecture, so you'll need to install these dependencies manually separated from the system's libraries (to avoid replacing them)
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 103
Joined: Sat Sep 04, 2021 9:35 pm

Re: Trying to upgrade wine on Raspberry Pi OS (32-bit)

Post by JoseskVolpe »

Wine also has support for ARM architecture, so you can install it natively (although you'll need to compile it)
However, have in mind most Windows applications doesn't support ARM natively, especially older ones - Main Windows has got ARM support recently, so ARM architecture will be gaining support from modern Windows applications
So using box86 is indeed a better option

I don't know how Raspbian's Wine is packaged, so take a look on it, it probably must package the needed libraries together
barhamd
Newbie
Newbie
Posts: 4
Joined: Mon Feb 21, 2022 5:55 pm

Re: Trying to upgrade wine on Raspberry Pi OS (32-bit)

Post by barhamd »

As I said, I installed box86 so the pi should (I think) be running a i386 install of wine.
The application I'm trying to run is compiled for i386

David
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 103
Joined: Sat Sep 04, 2021 9:35 pm

Re: Trying to upgrade wine on Raspberry Pi OS (32-bit)

Post by JoseskVolpe »

box86 emulates a x86 processor architecture, so you're able to run i386 binaries on a ARM CPU, but it doesn't changes how your system works and how applications are packaged for it. Your system repository will still not support i386 packages officially - and that's why you can't use Debian way of installing Wine from the Wiki on Raspbian - , so to make use of i386 packages with box86, when they aren't available on your repository, you'll need to extract them in another way. - Avoid installing them directly from Debian's repository too, it's a different distribution.
Locked