wine on Debian Stretch in 2023

Questions about Wine on Linux
Locked
KKing
Level 2
Level 2
Posts: 13
Joined: Thu Aug 30, 2018 4:49 am

wine on Debian Stretch in 2023

Post by KKing »

I'm trying to setup a Debian stretch server from scratch to mimic an existing server.

I have the repos pointing to archive.debian and it brings it up to the last update of stretch 9.13

I then install wine via synaptic, no issues raised but when I go to start wine with winecfg I get

Code: Select all

$ winecfg
it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32"
if I try to install wine32 I get

Code: Select all

$ sudo apt-get install wine32
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package wine32 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'wine32' has no installation candidate
So then I tried following the winehq site https://wiki.winehq.org/Debian

I downloaded the following from winehq server
winehq-stable_5.0.2~stretch_amd64.deb
winehq-stable_5.0.2~stretch_amd64.deb
wine-stable_5.0.2~stretch_amd64.deb
wine-stable-i386_5.0.2~stretch_i386.deb
wine-stable-amd64_5.0.2~stretch_amd64.deb

I can install wine-stable-amd64_5.0.2~stretch_amd64.deb with gdebi no problem

but when I try to install wine-stable-i386_5.0.2~stretch_i386.deb I get

Code: Select all

This package is uninstallable
Dependency is not satisfiable: libasound2 (>= 1.0.16)
if I then try I get

Code: Select all

$ sudo apt-get install libasound2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libasound2 is already the newest version (1.1.3-5).
libasound2 set to manually installed.
Is this a (known) bug and a way around it?

Alternatively could I just copy specific wine related folders from the working Deb 9 server we have over to this server?

They are both Deb 9 on fairly similar but not identical chipset hardware which prevented a clone of drive from working.

K.
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: wine on Debian Stretch in 2023

Post by invisible kid »

I think you have to enable dual architecture and reinstall the wine package if you haven't already.
https://wiki.debian.org/Multiarch/Implementation
Something similar to:
sudo dpkg --add-architecture i386
sudo apt-get update
If this is unrelated or doesn't help, sorry, someone will be able to help you out.
KKing
Level 2
Level 2
Posts: 13
Joined: Thu Aug 30, 2018 4:49 am

Re: wine on Debian Stretch in 2023

Post by KKing »

ta, don't know if

Code: Select all

sudo dpkg --add-architecture i386
is permanent or session only ?
.bash_history shows I had run it ... curiously I ran it again and tried the

Code: Select all

sudo gdebi wine-stable-i386_5.0.2~stretch_i386.deb
again it ran without seeming issue but when I ran

Code: Select all

sudo gdebi wine-stable_5.0.2~stretch_amd64.deb
it complained with

Code: Select all

dependency is not satisfiable: wine-stable-i386 (=5.0.2~stretch)
yet Synaptic shows wine-stable-i386:i386 as Installed Version 5.0.2~stretch.
I've tried removing all wine packages from Synaptic, reboot, but end at same point seemingly claiming the i386 is not installed yet it seemingly now runs through without error and shows in Synaptic....
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: wine on Debian Stretch in 2023

Post by jkfloris »

The "wine" or "winecfg" command is in the winehq-stable package.
Installing winehq-stable_5.0.2~stretch_amd64.deb will remove the Debian Wine version.
Make sure all 4 WineHQ packages are installed:

Code: Select all

sudo dpkg -i winehq-stable_5.0.2~stretch_amd64.deb wine-stable_5.0.2~stretch_amd64.deb wine-stable-i386_5.0.2~stretch_i386.deb wine-stable-amd64_5.0.2~stretch_amd64.deb
KKing
Level 2
Level 2
Posts: 13
Joined: Thu Aug 30, 2018 4:49 am

Re: wine on Debian Stretch in 2023

Post by KKing »

I still had some Debian Wine packages installed when i tried

Code: Select all

sudo dpkg -i winehq-stable_5.0.2~stretch_amd64.deb wine-stable_5.0.2~stretch_amd64.deb wine-stable-i386_5.0.2~stretch_i386.deb wine-stable-amd64_5.0.2~stretch_amd64.deb
unfortunately it gave

Code: Select all

Selecting previously unselected package winehq-stable.
dpkg: regarding winehq-stable_5.0.2~stretch_amd64.deb containing winehq-stable:
 winehq-stable conflicts with wine
  wine (version 1.8.7-2) is present and installed.
  wine-development provides wine and is present and installed.

dpkg: error processing archive winehq-stable_5.0.2~stretch_amd64.deb (--install):
 conflicting packages - not installing winehq-stable
Selecting previously unselected package wine-stable.
(Reading database ... 188231 files and directories currently installed.)
Preparing to unpack wine-stable_5.0.2~stretch_amd64.deb ...
Unpacking wine-stable (5.0.2~stretch) ...
Selecting previously unselected package wine-stable-i386:i386.
Preparing to unpack wine-stable-i386_5.0.2~stretch_i386.deb ...
Unpacking wine-stable-i386:i386 (5.0.2~stretch) ...
Selecting previously unselected package wine-stable-amd64.
Preparing to unpack wine-stable-amd64_5.0.2~stretch_amd64.deb ...
Unpacking wine-stable-amd64 (5.0.2~stretch) ...
Setting up wine-stable-i386:i386 (5.0.2~stretch) ...
Setting up wine-stable-amd64 (5.0.2~stretch) ...
Setting up wine-stable (5.0.2~stretch) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Errors were encountered while processing:
 winehq-stable_5.0.2~stretch_amd64.deb
So then I removed the Wine Debian packages, checked, and rebooted tried again ... looked promising

Code: Select all

Selecting previously unselected package winehq-stable.
(Reading database ... 183735 files and directories currently installed.)
Preparing to unpack winehq-stable_5.0.2~stretch_amd64.deb ...
Unpacking winehq-stable (5.0.2~stretch) ...
Selecting previously unselected package wine-stable.
Preparing to unpack wine-stable_5.0.2~stretch_amd64.deb ...
Unpacking wine-stable (5.0.2~stretch) ...
Selecting previously unselected package wine-stable-i386:i386.
Preparing to unpack wine-stable-i386_5.0.2~stretch_i386.deb ...
Unpacking wine-stable-i386:i386 (5.0.2~stretch) ...
Selecting previously unselected package wine-stable-amd64.
Preparing to unpack wine-stable-amd64_5.0.2~stretch_amd64.deb ...
Unpacking wine-stable-amd64 (5.0.2~stretch) ...
Setting up wine-stable-i386:i386 (5.0.2~stretch) ...
Setting up wine-stable-amd64 (5.0.2~stretch) ...
Setting up wine-stable (5.0.2~stretch) ...
Setting up winehq-stable (5.0.2~stretch) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
$ 
but when I go to run, I get

Code: Select all

$ winecfg
000b:err:module:import_dll Loading library kernelbase.dll (which is needed by L"C:\\windows\\system32\\kernel32.dll") failed (error c000035a).
wine: could not load kernel32.dll, status c0000135
0009:err:environ:run_wineboot failed to start wineboot c00000e5
0009:err:module:import_dll Loading library kernelbase.dll (which is needed by L"C:\\windows\\system32\\kernel32.dll") failed (error c000035a).
wine: could not load kernel32.dll, status c0000135
$
KKing
Level 2
Level 2
Posts: 13
Joined: Thu Aug 30, 2018 4:49 am

[SOLVED] Re: wine on Debian Stretch in 2023

Post by KKing »

ignore the last one ... I still had a .wine folder from the Debian Wine install present ... removed it (and actually all wine packages via SPM ... and then did the

Code: Select all

sudo dpkg -i winehq-stable_5.0.2~stretch_amd64.deb wine-stable_5.0.2~stretch_amd64.deb wine-stable-i386_5.0.2~stretch_i386.deb wine-stable-amd64_5.0.2~stretch_amd64.deb
again, and all seems fine .... so far.
KKing
Level 2
Level 2
Posts: 13
Joined: Thu Aug 30, 2018 4:49 am

Re: wine on Debian Stretch in 2023

Post by KKing »

how do I change the main thread subject to include [SOLVED] ?
Locked