8

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 ?

karel
  • 122,292
  • 133
  • 301
  • 332
r4hu1
  • 81

2 Answers2

10

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).

karel
  • 122,292
  • 133
  • 301
  • 332
-2

Wrong package name. Try just 'wine' or 'wine1.6' or 'wine1.8'.

Installing WineHQ packages for Ubuntu 19.10

If your system is 64 bit, enable 32 bit architecture (if you haven't already):

sudo dpkg --add-architecture i386 

Download and add the repository key:

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key

Add the repository:

Ubuntu 19.10

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ **eoan** main'

Update packages:

sudo apt update

Then install the packages:

Stable branch

sudo apt install --install-recommends winehq-stable

if Wrong package name. Try just 'wine' or 'wine4.5' or 'wine4'

sudo apt install --install-recommends wine-stable