Ubuntu – How to install wine in Ubuntu 19.10

19.10aptwine

Recently shifted to Ubuntu from Windows .First time user.

I tried a couple of methods to install wine as mentioned in the forums .

sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
sudo apt-get update
sudo apt install --install-recommends winehq-stable

gives the following error :

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package winehq-stable

Can anyone help please ?

Best Answer

You are using Ubuntu 19.10 which is codenamed eoan, not disco, so it should be changed from disco to eoan in the third command too. winehq-stable is not available in 19.10, so instead of winehq-stable install winehq-staging which is the most recent testing wine version. Open the terminal and type:

sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main'
sudo apt update
sudo apt install --install-recommends winehq-staging

If apt complains about missing dependencies, install them, then repeat the last two steps (update and install).

Related Question