Command ‘wine’ not found with Wine-devel 10.0~rc5~noble-1 (Ubuntu 24.04.1 LTS)

Questions about Wine on Linux
Locked
Heavysnow
Newbie
Newbie
Posts: 3
Joined: Sun Jan 12, 2025 3:39 pm

Command ‘wine’ not found with Wine-devel 10.0~rc5~noble-1 (Ubuntu 24.04.1 LTS)

Post by Heavysnow »

Hi!
Wine was working earlier, but probably after some update `wine` can no longer be found:

Code: Select all

wine
Command 'wine' not found, but can be installed with:
sudo apt install wine
I'm getting it from this repo:

Code: Select all

https://dl.winehq.org/wine-builds/ubuntu
Always used wine-devel.
Ubuntu 24.04.1.
x86.

Code: Select all

apt list --installed |grep wine

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

fonts-wine/noble,noble,now 9.0~repack-4build3 all [installed,automatic]
libwine/noble,now 9.0~repack-4build3 i386 [installed,automatic]
wine-devel-amd64/noble,now 10.0~rc5~noble-1 amd64 [installed]
wine32/noble,now 9.0~repack-4build3 i386 [installed]

Code: Select all

whereis wine
wine: /usr/lib/wine /usr/share/wine
All of:

Code: Select all

ls /usr/bin/ |grep wine

Code: Select all

ls /bin/ |grep wine
and

Code: Select all

ls /sbin/ |grep wine
give nothing.

Code: Select all

ls  /etc/alternatives/ |grep wine
gives nothing.

I might have to link wine executable, but not sure where it is located?
and whether its better to link it to /bin or /sbin or some other folder?

Code: Select all

ls /opt/wine-devel/
bin  lib64
Thank you.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Command ‘wine’ not found with Wine-devel 10.0~rc5~noble-1 (Ubuntu 24.04.1 LTS)

Post by jkfloris »

You are mixing two versions of Wine. Your 64-bit part comes from WineHQ, the 32-bit part comes from Ubuntu.

Do you have the WineHQ repository available on your system?
You can verify this with:

Code: Select all

apt policy

### Example output ###
You should see two references to dl.winehq.org:
...
 500 https://dl.winehq.org/wine-builds/debian noble/main i386 Packages
     release o=dl.winehq.org,a=testing,n=noble,l=winehq,c=main,b=i386
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/debian noble/main amd64 Packages
     release o=dl.winehq.org,a=testing,n=noble,l=winehq,c=main,b=amd64
     origin dl.winehq.org
...
Install the following packages:

Code: Select all

sudo apt install --install-recommends winehq-devel wine-devel-i386 wine-devel
This will remove the Ubuntu variant of Wine and install the one from WineHQ in /opt/wine-devel.
Heavysnow
Newbie
Newbie
Posts: 3
Joined: Sun Jan 12, 2025 3:39 pm

Re: Command ‘wine’ not found with Wine-devel 10.0~rc5~noble-1 (Ubuntu 24.04.1 LTS)

Post by Heavysnow »

Thank you!

I removed all WINE packages and reinstalled it PRIOR to your response (so the 1st post is pretty much irrelevant now).

It now gives error:

Code: Select all

wine
-bash: /usr/bin/wine: No such file or directory

Code: Select all

apt policy |grep winehq

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

 500 https://dl.winehq.org/wine-builds/ubuntu noble/main i386 Packages
     release o=dl.winehq.org,a=noble,n=noble,l=winehq,c=main,b=i386
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/ubuntu noble/main amd64 Packages
     release o=dl.winehq.org,a=noble,n=noble,l=winehq,c=main,b=amd64
     origin dl.winehq.org


Code: Select all

apt list --installed| grep wine

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

wine-devel-amd64/noble,now 10.0~rc5~noble-1 amd64 [installed,automatic]
wine-devel-i386/noble,now 10.0~rc5~noble-1 i386 [installed,automatic]
wine-devel/noble,now 10.0~rc5~noble-1 amd64 [installed]
From your post it seems that only winehq-devel package is missing?
Do we really need both wine-devel and winehq-devel?

Should I remove wine-devel-amd64? or is it what wine-devel installs?
You are mixing two versions of Wine.
How do you determine (in general) which package comes from Ubuntu repo and which from WINEHQ repo?
Last edited by Heavysnow on Mon Jan 13, 2025 3:16 pm, edited 2 times in total.
Heavysnow
Newbie
Newbie
Posts: 3
Joined: Sun Jan 12, 2025 3:39 pm

Re: Command ‘wine’ not found with Wine-devel 10.0~rc5~noble-1 (Ubuntu 24.04.1 LTS)

Post by Heavysnow »

This WIKI https://gitlab.winehq.org/wine/wine/-/w ... ian-Ubuntu
says to only install 1 package:

Code: Select all

  sudo apt install --install-recommends winehq-devel
Is WIKI incomplete?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Command ‘wine’ not found with Wine-devel 10.0~rc5~noble-1 (Ubuntu 24.04.1 LTS)

Post by jkfloris »

winehq-devel is the main package. Among other things, this package provides the wine command.
The other three packages are dependencies.

wine-devel -> core Wine programs
wine-devel-i386 -> necessary to run 32-bit Windows programs
wine-devel-amd64 -> necessary to run 64-bit Windows programs

The four packages together create a complete Wine installation.
Locked