Wine 5.22 Released – Install Wine on Ubuntu 20.10 & Ubuntu 20.04

Wine development release 5.22 released. Install Wine in Ubuntu 20.10 using terminal. Here is a tutorial on “how to install wine on Linux?” and “how to use wine in Ubuntu Linux?”

Wine (originally an acronym for “Wine Is Not an Emulator”) is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD.

Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop.

Wine development release 5.22 is released with:

  1. C runtime libraries converted to PE.
  2. Use fontconfig cache for faster startup.
  3. Video playback improvements.
  4. 3DES cipher support.
  5. Various bug fixes (total 36).

Bugs fixed in 5.22 (total 36):

  1. 16991 Cobra 11 Nitro: No video and music at game startup
  2. 28210 Rome Total War crash at start
  3. 30668 Motocross Madness 2 needs IAMMultiMediaStream::GetState() implementation
  4. 32613 Tom Clancy’s Rainbow Six: Lockdown crashes after the intro videos (needs DxDiag_SoundDevices device child nodes present)
  5. 37396 Multiple applications need “sRGB Color Space Profile.icm” (Asperite, Word 2007, Word 2010)
  6. 38014 CCCP Insurgent v2007-01-01 crashes when querying system information via DxDiag
  7. 41081 Foldit puzzle 1266 crashes at start up
  8. 42731 stack overflow when .bat script variable has more than 256 characters
  9. 43513 Ys VI: The Ark of Napishtim – videos are not playing
  10. 44884 Call of Duty Modern Warfare Remastered: Crash after splash with error about Memory/Disk space
  11. 45421 Need for Russia does not play msvideo movies
  12. 45650 chromium 32-bit sandbox expects different syscall thunks depending on Windows version
  13. 46429 Multiple games need IV50 codec to play videos (Thief Gold, Thief II: The Metal Age, Commandos 2: Men of Courage)
  14. 46478 Wordpad is slow to start with large enough number of fonts in the system
  15. 47320 Black Ops 4 Unhandled Exception When Loading gdi32.dll
  16. 47374 Thronebreaker: The Witcher Tales rendering is messed up
  17. 47846 Age Of Empires III Crash after Intro
  18. 48171 Call of Duty: Modern Warfare (2019) exception
  19. 48212 Ys: The Oath in Felghana – movies don’t play
  20. 48505 WinRAR x64 4.x/5.x installer crashes on unimplemented function GDI32.dll.ScriptGetCMap
  21. 49238 Oblivion: No sound/music
  22. 49376 Light of Altair demo has no text in options menu
  23. 49490 Overwatch installer fails with new wine prefix
  24. 49526 Anno 1800: Crashes on startup
  25. 49546 Titan Quest Anniversary Edition has no text with builtin d3dx9_42
  26. 49665 Wine 5.14 won’t start, but 5.12 – do!
  27. 49844 Cannot create a new file on a mounted fat volume
  28. 49907 Fallout New Vegas crashes when leaving Doc Mitchell’s house
  29. 50046 wineserver persistence after setup of a WINEPREFIX
  30. 50084 Wargaming.net Game Center can’t install updates since wine 5.19
  31. 50101 Ghostrunner has no sound after intro movies when prefix is set to Win10
  32. 50110 Elite Dangerous Launcher (wine-5.21): AccessViolationException Protected Memory
  33. 50116 ODBC applications fail to create/configure system DSNs with builtin ‘odbccp32’ (SQLConfigDataSource must remap ODBC_xxx_SYS_DSN values for ConfigDSN)
  34. 50135 explorer.exe crashes when UseXRandR and UseXVidMode are specified to be disabled in registry
  35. 50140 “Guild Wars 2 Launcher” over time consumes all available memory
  36. 50149 Chromium/MS WebView2 depends on TEB->ReservedForOle ‘apt_mask’ value

Install WINE

If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

Run the following commands to install Wine 5.0 on Ubuntu 19.10 Systems:

sudo apt update
sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386


sudo apt update
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/focal main'
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt update
sudo apt install --install-recommends winehq-stable

NOTE: For the line of code “sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ focal main’” You will have to replace focal in the code with groovy for Ubuntu 20.10 and bionic for Ubuntu 18.04 and Linux Mint 19.x.

If you have previously used the distro packages, you will notice some differences in the WineHQ ones:

1. Files are installed to /opt/wine-devel, opt/wine-stable, or /opt/wine-staging (depending on which version you installed).
2. Menu items are not created for Wine’s builtin programs (winecfg, etc.), and if you are upgrading from a distro package that had added them, they will be removed. You can recreate them yourself using your menu editor.
3. Binfmt_misc registration is not added. Consult your distro’s documentation for update-binfmts if you wish to do this manually.
4. WineHQ does not at present package wine-gecko or wine-mono. When creating a new wine prefix, you will be asked if you want to download those components. For best compatibility, it is recommended to click Yes here. If the download doesn’t work for you, please follow the instructions on the Gecko and Mono wiki pages to install them manually.

Original Article