can't install wine successfully

Message
Author
User avatar
autumn
Posts: 49
Joined: Tue Jul 23, 2024 10:37 pm

can't install wine successfully

#1 Post by autumn »

Hello, tried to follow the guide, which said to go for winehq-staging. That said it needed wine-staging, which wouldn't install, but wine-staging-amd64 installed ... but then can't create prefix as winehq-staging needed, which I can't install ...

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:
winehq-staging : Depends: wine-staging (= 9.21-1mx23+1)
E: Unable to correct problems, you have held broken packages.


Tried winetricks incase would help in some way but is installing wine wine64 as well. This helped, as then able do
WINEARCH=win64 WINEPREFIX=~/.wine winecfg to create a wine folder.
Running winecfg says to do this ... sudo apt-get install wine32:i386, which I did.
Then winecfg won't run ... wine: could not load kernel32.dll, status c0000135

Trying install stuff via winetricks in terminal ... spelt as follows:
egedit.exe C:\windows\Temp\override-dll.reg returned status 53. Aborting.
Tried winetricks gui ...
Note: command wine C:windowssyswow64
egedit.exe C:windowsTempoverride-dll.reg returned status 53. Aborting.


Installed wine32 from debian backports tab, after seeing sometimes 32bit stuff is missing via this link: https://gitlab.winehq.org/wine/wine/-/w ... ian-Ubuntu, but still same errors.

I've clearly franken-installed, but am not sure what to try now, or how to purge the mess and start clean.

:eek:
AMD Ryzen 7 7700 8-Core, AMD Radeon RX 7600, 64 ram
MX 23.4, Mate 1.26, kernel 6.11 liquorix

User avatar
autumn
Posts: 49
Joined: Tue Jul 23, 2024 10:37 pm

Re: can't install wine successfully

#2 Post by autumn »

Possibly posted too soon, but it may be helpful to others ... did a search and saw someone say to remove .wine folder, then run winecfg again to create a fresh one. That seems to have helped in being able to use winetricks to install the bits and pieces, so far. Nothing been run yet though, so will update.

EDIT: found how to add the 'load with wine' option ... copy the wine example file from /usr/share/doc/wine/examples/ to /usr/share/applications/. Then can right click/open with other application and wine loader will be there.
Also found an up to date arronax link, which enables making shortcuts ... https://launchpad.net/~ubuntuhandbook1/ ... d/26906422.
The bottom deb is the one to download. Always easy to make shortcuts for wine programs through arronax.
AMD Ryzen 7 7700 8-Core, AMD Radeon RX 7600, 64 ram
MX 23.4, Mate 1.26, kernel 6.11 liquorix

User avatar
Eadwine Rose
Administrator
Posts: 14979
Joined: Wed Jul 12, 2006 2:10 am

Re: can't install wine successfully

#3 Post by Eadwine Rose »

With all requests, as per forum rules (which, if you haven't, please read), please share your full Quick System Info, do not edit.
If need be, you can do this using the LiveUSB.


Also, for better readability, you can post code on the forum like this:

[code]code output here[/code]

Thanks. :)
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
autumn
Posts: 49
Joined: Tue Jul 23, 2024 10:37 pm

Re: can't install wine successfully

#4 Post by autumn »

Hadn't realised needed to do that, with it being a standard wine problem (I'm seeing absolutely everywhere, from searching since posting), but will make sure add it after post.

Found article on how to purge wine, but no matter what I'm doing, cannot get it downloaded properly.

sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debia ... rm.sources
... this results in 304 Not Modified error. File ‘/etc/apt/sources.list.d/winehq-bookworm.sources’ not modified on server. Omitting download.
tried sudo apt update and sudo apt-get update
sudo apt install --install-recommends winehq-staging

... whether try from package installer or directly like this, same error:
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:
winehq-staging : Depends: wine-staging (= 10.0~rc4~bookworm-1)
E: Unable to correct problems, you have held broken packages.

Code: Select all

Snapshot created on: 20241215_1628
System:
  Kernel: 6.11.10-1-liquorix-amd64 [6.11-15~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: audit=0
    intel_pstate=disable BOOT_IMAGE=/vmlinuz-6.11.10-1-liquorix-amd64 root=UUID=<filter> ro quiet
    splash
  Desktop: MATE v: 1.26.0 info: mate-panel wm: marco v: 1.26.1 vt: 7 dm: LightDM v: 1.26.0
    Distro: MX-23.4_x64 Libretto December 15 2024 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME A620M-A v: Rev 1.xx serial: <superuser required>
    UEFI: American Megatrends v: 2613 date: 04/12/2024
CPU:
  Info: model: AMD Ryzen 7 7700 bits: 64 type: MT MCP arch: Zen 4 gen: 5 level: v4 note: check
    built: 2022+ process: TSMC n5 (5nm) family: 0x19 (25) model-id: 0x61 (97) stepping: 2
    microcode: 0xA601206
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache: L1: 512 KiB
    desc: d-8x32 KiB; i-8x32 KiB L2: 8 MiB desc: 8x1024 KiB L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 2270 high: 5151 min/max: 545/5389 boost: enabled scaling:
    driver: amd-pstate-epp governor: performance cores: 1: 5151 2: 5149 3: 5149 4: 545 5: 5150
    6: 5132 7: 5146 8: 545 9: 545 10: 545 11: 545 12: 545 13: 545 14: 545 15: 545 16: 545
    bogomips: 121600
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional; STIBP: always-on;
    RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 33 [Radeon RX 7700S/7600S] vendor: Sapphire driver: amdgpu v: kernel
    arch: RDNA-3 code: Navi-3x process: TSMC n5 (5nm) built: 2022+ pcie: gen: 4 speed: 16 GT/s
    lanes: 8 ports: active: HDMI-A-1 empty: DP-1, DP-2, DP-3, Writeback-1 bus-ID: 03:00.0
    chip-ID: 1002:7480 class-ID: 0300
  Device-2: AMD Raphael vendor: ASUSTeK driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
    active: HDMI-A-2 empty: DP-4,DP-5,Writeback-2 bus-ID: 0d:00.0 chip-ID: 1002:164e class-ID: 0300
    temp: 37.0 C
  Display: x11 server: X.Org v: 1.21.1.7 compositor: marco v: 1.26.1 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.65x15.00")
    s-diag: 1245mm (49.01")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 pos: primary,left model: BenQ LCD serial: <filter>
    built: 2021 res: 2560x1440 hz: 60 dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.23")
    diag: 686mm (27") ratio: 16:9 modes: max: 2560x1440 min: 720x400
  Monitor-2: HDMI-A-2 mapped: HDMI-A-1-1 pos: right model: AAA built: 2016 res: 1920x1080 hz: 60
    dpi: 85 size: 575x323mm (22.64x12.72") modes: max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 24.2.8-1~bpo12+1 renderer: AMD Radeon RX 7600 (radeonsi navi33 LLVM
    15.0.6 DRM 3.59 6.11.10-1-liquorix-amd64) direct-render: Yes
Audio:
  Device-1: AMD driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 8
    bus-ID: 03:00.1 chip-ID: 1002:ab30 class-ID: 0403
  Device-2: AMD Rembrandt Radeon High Definition Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0d:00.1 chip-ID: 1002:1640 class-ID: 0403
  Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0d:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.11.10-1-liquorix-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK PRIME B450M-A
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 09:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: tun0 state: unknown speed: 10000 Mbps duplex: full mac: N/A
Drives:
  Local Storage: total: 931.51 GiB used: 163.71 GiB (17.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: WD Blue SN580 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 281010WD temp: 28.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 930.25 GiB size: 914.57 GiB (98.31%) used: 163.5 GiB (17.9%) fs: ext4
    dev: /dev/dm-0 maj-min: 253:0 mapped: luks-<filter>
  ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 215.1 MiB (22.1%) fs: ext4
    dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-3: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 8 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 43.4 C mobo: 32.2 C
  Fan Speeds (RPM): N/A
  GPU: device: amdgpu temp: 32.0 C mem: 30.0 C fan: 0 watts: 4.00 device: amdgpu temp: 37.0 C
Repos:
  Packages: pm: dpkg pkgs: 2022 libs: 983 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mxlinux.mirrors.uk2.net/packages/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/winehq-bookworm.sources
    1: deb [arch=amd64 i386] https://dl.winehq.org/wine-builds/debian bookworm main
Info:
  Processes: 361 Uptime: 51m wakeups: 1 Memory: 62.02 GiB used: 2.87 GiB (4.6%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
AMD Ryzen 7 7700 8-Core, AMD Radeon RX 7600, 64 ram
MX 23.4, Mate 1.26, kernel 6.11 liquorix

User avatar
Stevo
Developer
Posts: 14743
Joined: Fri Dec 15, 2006 7:07 pm

Re: can't install wine successfully

#5 Post by Stevo »

Exactly what guide is this?
Hello, tried to follow the guide, which said to go for winehq-staging.
The i386 arch is enabled by default on 64-bit MX, precisely to make things easier than on Debian, so no need for the following or adding winehq repos either.

Code: Select all

sudo dpkg --add-architecture i386 
My guide: install our "wine" from the MX repos using MXPI, that wine version is actually wine-staging. Done.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
autumn
Posts: 49
Joined: Tue Jul 23, 2024 10:37 pm

Re: can't install wine successfully

#6 Post by autumn »

Sorry, I didn't want to say it was MX's page I was reading; since it's over 2 years since installing anything wine, needed to refresh, but I've realised the page may be out of date? Seem to have got into a bit of a loop, unless it's that I have the winehq repo still enabled. Installed 'wine' from main tab, and ran winecfg, which says it needs sudo apt-get install wine32:i386 to be ran, as wine32 is missing. I've done that, then run winecfg again and it won't load ... wine: could not load kernel32.dll, status c0000135.

Will try purging wine, removing repo and try installing wine from main tab again. Although I'm not sure in doing I think two purges so far I've maybe purged what is already installed on MX? This particular purge removes libwine* wine* wine64*
EDIT: done purge and removal of winehq repo, and now a new error after installing wine and running winecfg ...
wine: '/home/watership/.wine' is a 64-bit installation, it cannot be used with a 32-bit wineserver [art program needs 32-bit].
AMD Ryzen 7 7700 8-Core, AMD Radeon RX 7600, 64 ram
MX 23.4, Mate 1.26, kernel 6.11 liquorix

txm0523
Posts: 159
Joined: Sat Oct 06, 2018 5:34 pm

Re: can't install wine successfully

#7 Post by txm0523 »

I have installed Wine by going to this site:

https://gitlab.winehq.org/wine/wine/-/w ... ian-Ubuntu ( It does a good job of explaining the process and about Wine app in the repositories )

Once installed and PC rebooted, I am able to run two MS Win apps flawlessly.

On a side note, I did install also Winetricks. This enabled me to uninstall any MS Win apps that were installed, if the actual app did not have an uninstaller included with it.

Hope this helps.

User avatar
Stevo
Developer
Posts: 14743
Joined: Fri Dec 15, 2006 7:07 pm

Re: can't install wine successfully

#8 Post by Stevo »

Well, with playonlinux in the repos, you can install various self-contained versions of wine in wine "bottles", so you don't have to mess with that.

Hmmm--the 2015 MX wiki Wine guide seems to be mostly still relevant, none of that other stuff: https://mxlinux.org/wiki/system/wine/
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
autumn
Posts: 49
Joined: Tue Jul 23, 2024 10:37 pm

Re: can't install wine successfully

#9 Post by autumn »

Thanks txm0523, really appreciate. Actually I'd seen the guide and meant to go and find who posted it, to read further, as I did hit the same issue unfortunately despite following the guide.

Thanks Stevo, great to know, and glad the wiki guide's okay, but I really need to get wine installed for other things too, and very used to having a working wine on the system overall. It used to be a hit-and-miss grind sorting out individual things via POL, although I was thankful for it back then; having a system wine was life changing, lol. Does it sound like I've removed the MX-installed wine? and, if I've managed that genius move, how would I put it back, then try the basic wine install again?
AMD Ryzen 7 7700 8-Core, AMD Radeon RX 7600, 64 ram
MX 23.4, Mate 1.26, kernel 6.11 liquorix

User avatar
autumn
Posts: 49
Joined: Tue Jul 23, 2024 10:37 pm

Re: can't install wine successfully

#10 Post by autumn »

After a hell I don't want to go through again, lol, ended up doing a purge then trying all 5 debian backport tabbed packages. Along with winetricks and the various installs via that, have got stuff running. Just configuring the graphics tablet left, but that can happen later, post-recovery, lol. :snail:
AMD Ryzen 7 7700 8-Core, AMD Radeon RX 7600, 64 ram
MX 23.4, Mate 1.26, kernel 6.11 liquorix

Post Reply

Return to “Software / Configuration”