Command 'wine' not found with wine-devel-amd64 (24.04.1)

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

wine
Command 'wine' not found, but can be installed with:
sudo apt install wine

Always used wine-devel.
Ubuntu 24.04.1.
x86.

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]
whereis wine
wine: /usr/lib/wine /usr/share/wine

All of:

ls /usr/bin/ |grep wine
ls /bin/ |grep wine

and ls /sbin/ |grep wine
give 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?

ls /opt/wine-devel/
bin  lib64

Thank you.

since this is not an Ubuntu package, you should perhaps better talk to the people where you got it from … (they might know what broke and how to fix it)

1 Like

You right, I forgot I’m getting it from this repo:

https://dl.winehq.org/wine-builds/ubuntu

The usual setup is for the executable to be /bin/wine-stable, the link /bin/wine → /etc/alternatives/wine, and the /etc/alternatives/wine a link to the executable /bin/wine-stable. wine-devl probably in your case. If your install of wine-devl doesn’t have that, you can do it yourself, or even just a link from /bin/wine to /bin/wine-devl, skipping the /etc/alternatives.

1 Like

Thank you.

ls  /etc/alternatives/ |grep wine

gives nothing.