Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package winehq-stable 2 5 Answers
The winehq-stable package is not in the default Ubuntu repositories, so apt is unable to locate it. In Ubuntu 17.10 install wine-stable instead. The wine-stable version is 2.0 in Ubuntu 17.10. The wine-stable version is 3.0 in Ubuntu 18.04, 18.10, 19.04, 19.10, 20.04, 20.10, 21.04, 21.10 and 22.04. Open the terminal and type:
sudo apt install -y wine-stable Other suggested packages to install along with wine-stable are: dosbox playonlinux winbind wine-binfmt winetricks
1The name of the install package is different from that stated in the wiki. Instead of typing:
sudo apt-get install --install-recommends winehq-stableyou type:
sudo apt-get install --install-recommends wine-stableThat will install the proper package. I just installed Wine and that's how this works.
1You don't have the necessary setup work completed to add that package. According to the WineHQ Wiki's Ubuntu page:
- Open a terminal by pressing Ctrl+Alt+T.
If your computer is 64-bit, add the 32-bit architecture:
sudo dpkg --add-architecture i386Add the repository:
wget -nc sudo apt-key add Release.key sudo apt-add-repositoryUpdate repositories:
sudo apt-get updateInstall
winehq-stable:sudo apt-get install --install-recommends winehq-stableIf
apt-getmentions missing dependencies, install them and retry the install ofwinehq-stable.
Looks like I've finally found the solution.
Run command to enable 32 bit architecture:
sudo dpkg --add-architecture i386Download and install the repository key via this command:
wget -nc sudo apt-key add winehq.keyAdd wine repository via command (for Ubuntu 19.10):
sudo apt-add-repository 'deb eoan main'NOTE: You may replace "eoan" in the code with:
bionic for Ubuntu 18.04 and Linux Mint 19.x xenial for Ubuntu 16.04 and Linux Mint 18.xAdd PPA for the required
libfaudio0library:For Ubuntu 18.04, Linux Mint 19.x, and Ubuntu 19.04 only, as higher Ubuntu releases already have libfaudio0 in the main repositories.
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backportFinally install Wine 5.0 stable via command:
sudo apt update && sudo apt install --install-recommends winehq-stable(Optional) After successfully installed Wine 5.0, you may remove the PPAs by launching Software & Updates utility and navigating to Other Software tab.
Thanks to this guy!
1Add 32 bit architecture and WINE's key
sudo dpkg --add-architecture i386
wget -O - | sudo apt-key add -To add WINE repository on Ubuntu 20.04:
sudo add-apt-repository 'deb focal main' To add WINE repository on Ubuntu 18.04:
sudo add-apt-repository 'deb bionic main' To add WINE repository on Ubuntu 16.04:
sudo add-apt-repository 'deb xenial main' Update APT cache and install WINE:
sudo apt update
sudo apt install --install-recommends winehq-stable