How to Install Wine Devel 4.8 in Ubuntu 19.04 / 18.04

Last updated: May 13, 2019

Wine Stable

The new development release Wine 4.8 was released a few days ago. Here’s how to install it in Ubuntu 19.04 and fix unmet dependencies issue.

Wine 4.8 release highlights:

  • Support building most programs in PE format.
  • Unicode data updated to Unicode 12.0.
  • Support for MSI patch files.
  • Default to non-PIC builds on i386.
  • Joystick support improvements.
  • Asturian locale.
  • Various bug fixes.

1. Add Wine apt repository:

Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for ‘terminal’ from app menu. When it opens, run following commands one by one.

Add the official Wine repository key via command:

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

Type user password (no asterisk feedback) when it prompts and hit Enter.

Then add Wine repository for Ubuntu 19.04:

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

For other Ubuntu releases, replace disco in the code with:

  • bionic for Ubuntu 18.04, Linux Mint 19.x
  • cosmic for Ubuntu 18.10.
  • xenial for Ubuntu 16.04, Linux Mint 18.x

2. Install unmet dependence: faudio

The wine devel package requires libfaudio0 library which is not available in Ubuntu repositories.

As a workaround, run command to add the third-party PPA, which offers the packages for Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04.

sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

3. Install Wine 4.8:

Finally run command to install Wine 4.8, which will automatically install the required libfaudio0 libraries.

sudo apt install --install-recommends winehq-devel

Once installed, run winecfg to bring up the configuration window and check Wine version.

Uninstall:

Open Software & Updates and navigate to Other Software tab. Then remove the PPA, and Wine apt repository lines.

To remove Wine devel package, run command:

sudo apt remove --auto-remove winehq-devel

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to remind me outdated tutorial! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

19 responses to How to Install Wine Devel 4.8 in Ubuntu 19.04 / 18.04

  1. THERE IS NO WINEDEVEL for 19.04

  2. Philip “Philo” Kassner June 16, 2019 at 9:21 pm

    Thank you so much!
    Really appreciate the good help.

    Was surprised WINE broke
    when I updated to 19.04

  3. Many thanks, my friend!

  4. Thanks!!!!!You saved me!

  5. enocencio van der Vlist July 3, 2019 at 9:27 pm

    i dont get it. sry im new in this, i installed ubuntu for a webdesign bootcamp i wanna use a handy program only usable for windows.

    i used this command: sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/dists/disco/main/binary-amd64/ disco main’

    then i get this:

    Ign:1 ‘https://dl.winehq.org/wine-builds/ubuntu/dists/disco/main/binary-amd64’ disco InRelease
    Err:2 ‘https://dl.winehq.org/wine-builds/ubuntu/dists/disco/main/binary-amd64’ disco Release
    404 Not Found [IP: 151.101.38.217 443]
    Reading package lists… Done
    E: The repository ‘https://dl.winehq.org/wine-builds/ubuntu/dists/disco/main/binary-amd64 disco Release’ does not have a Release file.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    is it easy to fix ? :s

    • replace disco with your OS version as stated above. disco is only a placeholder and needs to be changed depending on what you have.

  6. THANKS YOU,

  7. I tried this and it all appeared to work but wine –version still shows 4.14?

  8. sudo apt install –install-recommends winehq-devel
    Reading package lists … Done
    Building a dependency tree
    Reading state information … Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    Here are some things you can do to help resolve your situation:

    The following packages have unresolved dependencies:
      winehq-devel: Depends: wine-devel (= 4.16 ~ disco) but don’t plan to install it
    E: Unable to correct problems, you have held broken packages.

  9. its installing so hope this works

  10. Error I am getting and unable to install:
    user@system:~$ wget -nc ‘https://dl.winehq.org/wine-builds/winehq.key’
    File ‘winehq.key’ already there; not retrieving.

    user@system:~$ sudo apt-key add winehq.key
    [sudo] password for user:
    OK

    user@system:~$ sudo apt update


    Reading package lists… Done
    E: The repository ‘http://ppa.launchpad.net/wine/wine-builds/ubuntu disco Release’ does not have a Release file.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    user@system:~$ sudo apt-add-repository ‘deb ‘https://dl.winehq.org/wine-builds/ubuntu/’ disco main’


    E: The repository ‘http://ppa.launchpad.net/wine/wine-builds/ubuntu disco Release’ does not have a Release file.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    user@system:~$

  11. This worked for me on 18.04, but I had to change “disco” to “bionic” — otherwise excellent advice, thank you!

  12. Melroy van den Berg January 14, 2020 at 12:12 am

    In my case it doesn’t work still.. Causing issues:
    The following packages have unmet dependencies:
    wine-staging-i386:i386 : Depends: libfaudio0:i386 but it is not going to be installed
    Depends: libpulse0:i386 (>= 0.99.1) but it is not going to be installed
    Depends: libasound2-plugins:i386 but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    Yes I did:
    sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

    And: sudo apt update

    And despite that. For some reason it can still not find the faudio stuff.

  13. KDE Neon User Edition

    sudo apt install –install-recommends winehq-stable
    Leyendo lista de paquetes… Hecho
    Creando árbol de dependencias
    Leyendo la información de estado… Hecho
    Starting pkgProblemResolver with broken count: 1
    Starting 2 pkgProblemResolver with broken count: 1
    Investigating (0) libmount1:i386 2.31.1-0.4ubuntu3.4 @un uN Ib >
    Broken libmount1:i386 Depende on libblkid1:i386 (>= 2.17.2)
    Considering libblkid1:i386 0 as a solution to libmount1:i386 19
    Holding Back libmount1:i386 rather than change libblkid1:i386
    Investigating (1) libglib2.0-0:i386 2.56.4-0ubuntu0.18.04.4 @rc uN Ib >
    Broken libglib2.0-0:i386 Depende on libmount1:i386 (>= 2.19.1)
    Considering libmount1:i386 19 as a solution to libglib2.0-0:i386 23
    Holding Back libglib2.0-0:i386 rather than change libmount1:i386
    Investigating (1) libpango-1.0-0:i386 1.40.14-1ubuntu0.1 @un uN Ib >
    Broken libpango-1.0-0:i386 Depende on libglib2.0-0:i386 (>= 2.37.3)
    Considering libglib2.0-0:i386 23 as a solution to libpango-1.0-0:i386 4
    Holding Back libpango-1.0-0:i386 rather than change libglib2.0-0:i386
    Investigating (1) libgstreamer1.0-0:i386 1.14.5-0ubuntu1~18.04.1 @un uN Ib >
    Broken libgstreamer1.0-0:i386 Depende on libglib2.0-0:i386 (>= 2.41.1)
    Considering libglib2.0-0:i386 23 as a solution to libgstreamer1.0-0:i386 3
    Holding Back libgstreamer1.0-0:i386 rather than change libglib2.0-0:i386
    Investigating (1) libpangoft2-1.0-0:i386 1.40.14-1ubuntu0.1 @un uN Ib >
    Broken libpangoft2-1.0-0:i386 Depende on libglib2.0-0:i386 (>= 2.37.3)
    Considering libglib2.0-0:i386 23 as a solution to libpangoft2-1.0-0:i386 2
    Holding Back libpangoft2-1.0-0:i386 rather than change libglib2.0-0:i386
    Investigating (1) libgdk-pixbuf2.0-0:i386 2.36.11-2 @un uN Ib >
    Broken libgdk-pixbuf2.0-0:i386 Depende on libglib2.0-0:i386 (>= 2.48.0)
    Considering libglib2.0-0:i386 23 as a solution to libgdk-pixbuf2.0-0:i386 2
    Holding Back libgdk-pixbuf2.0-0:i386 rather than change libglib2.0-0:i386
    Investigating (1) libpangocairo-1.0-0:i386 1.40.14-1ubuntu0.1 @un uN Ib >
    Broken libpangocairo-1.0-0:i386 Depende on libglib2.0-0:i386 (>= 2.37.3)
    Considering libglib2.0-0:i386 23 as a solution to libpangocairo-1.0-0:i386 1
    Holding Back libpangocairo-1.0-0:i386 rather than change libglib2.0-0:i386
    Investigating (1) librsvg2-2:i386 2.40.20-2 @un uN Ib >
    Broken librsvg2-2:i386 Depende on libgdk-pixbuf2.0-0:i386 (>= 2.22.0)
    Considering libgdk-pixbuf2.0-0:i386 2 as a solution to librsvg2-2:i386 1
    Holding Back librsvg2-2:i386 rather than change libgdk-pixbuf2.0-0:i386
    Investigating (1) librsvg2-common:i386 2.40.20-2 @un uN Ib >
    Broken librsvg2-common:i386 Depende on libgdk-pixbuf2.0-0:i386 (>= 2.22.0)
    Considering libgdk-pixbuf2.0-0:i386 2 as a solution to librsvg2-common:i386 1
    Holding Back librsvg2-common:i386 rather than change libgdk-pixbuf2.0-0:i386
    Investigating (1) libcroco3:i386 0.6.12-2 @un uN Ib >
    Broken libcroco3:i386 Depende on libglib2.0-0:i386 (>= 2.16.0)
    Considering libglib2.0-0:i386 23 as a solution to libcroco3:i386 1
    Holding Back libcroco3:i386 rather than change libglib2.0-0:i386
    Investigating (1) libgstreamer-plugins-base1.0-0:i386 1.14.5-0ubuntu1~18.04.1 @un uN Ib >
    Broken libgstreamer-plugins-base1.0-0:i386 Depende on libglib2.0-0:i386 (>= 2.40)
    Considering libglib2.0-0:i386 23 as a solution to libgstreamer-plugins-base1.0-0:i386 1
    Holding Back libgstreamer-plugins-base1.0-0:i386 rather than change libglib2.0-0:i386
    Investigating (1) libharfbuzz0b:i386 1.7.2-1ubuntu1 @un uN Ib >
    Broken libharfbuzz0b:i386 Depende on libglib2.0-0:i386 (>= 2.31.8)
    Considering libglib2.0-0:i386 23 as a solution to libharfbuzz0b:i386 1
    Holding Back libharfbuzz0b:i386 rather than change libglib2.0-0:i386
    Investigating (1) gstreamer1.0-plugins-base:i386 1.14.5-0ubuntu1~18.04.1 @un uN Ib >
    Broken gstreamer1.0-plugins-base:i386 Depende on libglib2.0-0:i386 (>= 2.40)
    Considering libglib2.0-0:i386 23 as a solution to gstreamer1.0-plugins-base:i386 1
    Holding Back gstreamer1.0-plugins-base:i386 rather than change libglib2.0-0:i386
    Investigating (1) libavcodec58:i386 7:4.1.3-0ppa1~18.04 @un uN Ib >
    Broken libavcodec58:i386 Depende on libglib2.0-0:i386 (>= 2.12.0)
    Considering libglib2.0-0:i386 23 as a solution to libavcodec58:i386 0
    Holding Back libavcodec58:i386 rather than change libglib2.0-0:i386
    Investigating (1) wine-stable-i386:i386 5.0.0~bionic @un uN Ib >
    Broken wine-stable-i386:i386 Depende on libglib2.0-0:i386 (>= 2.12.0)
    Considering libglib2.0-0:i386 23 as a solution to wine-stable-i386:i386 -1
    Holding Back wine-stable-i386:i386 rather than change libglib2.0-0:i386
    Investigating (2) libfaudio0:i386 20.01-bionic~1ppa1 @un uN Ib >
    Broken libfaudio0:i386 Depende on libavcodec58:i386 (>= 7:4.0)
    Considering libavcodec58:i386 0 as a solution to libfaudio0:i386 0
    Holding Back libfaudio0:i386 rather than change libavcodec58:i386
    Investigating (2) wine-stable:amd64 5.0.0~bionic @un uN Ib >
    Broken wine-stable:amd64 Depende on wine-stable-i386:amd64 (= 5.0.0~bionic)
    Considering wine-stable-i386:i386 -1 as a solution to wine-stable:amd64 0
    Holding Back wine-stable:amd64 rather than change wine-stable-i386:amd64
    Investigating (3) winehq-stable:amd64 5.0.0~bionic @un puN Ib >
    Broken winehq-stable:amd64 Depende on wine-stable:amd64 (= 5.0.0~bionic)
    Considering wine-stable:amd64 0 as a solution to winehq-stable:amd64 9999
    Reinst Failed because of libblkid1:i386
    Reinst Failed because of libmount1:i386
    Reinst Failed because of libglib2.0-0:i386
    Reinst Failed because of libavcodec58:i386
    Reinst Failed because of libfaudio0:i386
    Reinst Failed because of wine-stable-i386:i386
    Considering wine-stable:i386 -1 as a solution to winehq-stable:amd64 9999
    Reinst Failed because of wine-stable-i386:i386
    Done
    No se pudieron instalar algunos paquetes. Esto puede significar que
    usted pidió una situación imposible o, si está usando la distribución
    inestable, que algunos paquetes necesarios aún no se han creado o se
    han sacado de «Incoming».
    La siguiente información puede ayudar a resolver la situación:

    Los siguientes paquetes tienen dependencias incumplidas:
    winehq-stable : Depende: wine-stable (= 5.0.0~bionic)
    E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.

    sudo apt install libfaudio0:i386
    Leyendo lista de paquetes… Hecho
    Creando árbol de dependencias
    Leyendo la información de estado… Hecho
    Starting pkgProblemResolver with broken count: 1
    Starting 2 pkgProblemResolver with broken count: 1
    Investigating (0) libmount1:i386 2.31.1-0.4ubuntu3.4 @un uN Ib >
    Broken libmount1:i386 Depende on libblkid1:i386 (>= 2.17.2)
    Considering libblkid1:i386 0 as a solution to libmount1:i386 15
    Holding Back libmount1:i386 rather than change libblkid1:i386
    Investigating (1) libglib2.0-0:i386 2.56.4-0ubuntu0.18.04.4 @rc uN Ib >
    Broken libglib2.0-0:i386 Depende on libmount1:i386 (>= 2.19.1)
    Considering libmount1:i386 15 as a solution to libglib2.0-0:i386 16
    Holding Back libglib2.0-0:i386 rather than change libmount1:i386
    Investigating (1) libpango-1.0-0:i386 1.40.14-1ubuntu0.1 @un uN Ib >
    Broken libpango-1.0-0:i386 Depende on libglib2.0-0:i386 (>= 2.37.3)
    Considering libglib2.0-0:i386 16 as a solution to libpango-1.0-0:i386 4
    Holding Back libpango-1.0-0:i386 rather than change libglib2.0-0:i386
    Investigating (1) libpangoft2-1.0-0:i386 1.40.14-1ubuntu0.1 @un uN Ib >
    Broken libpangoft2-1.0-0:i386 Depende on libglib2.0-0:i386 (>= 2.37.3)
    Considering libglib2.0-0:i386 16 as a solution to libpangoft2-1.0-0:i386 2
    Holding Back libpangoft2-1.0-0:i386 rather than change libglib2.0-0:i386
    Investigating (1) libgdk-pixbuf2.0-0:i386 2.36.11-2 @un uN Ib >
    Broken libgdk-pixbuf2.0-0:i386 Depende on libglib2.0-0:i386 (>= 2.48.0)
    Considering libglib2.0-0:i386 16 as a solution to libgdk-pixbuf2.0-0:i386 2
    Holding Back libgdk-pixbuf2.0-0:i386 rather than change libglib2.0-0:i386
    Investigating (1) libcroco3:i386 0.6.12-2 @un uN Ib >
    Broken libcroco3:i386 Depende on libglib2.0-0:i386 (>= 2.16.0)
    Considering libglib2.0-0:i386 16 as a solution to libcroco3:i386 1
    Holding Back libcroco3:i386 rather than change libglib2.0-0:i386
    Investigating (1) librsvg2-common:i386 2.40.20-2 @un uN Ib >
    Broken librsvg2-common:i386 Depende on libgdk-pixbuf2.0-0:i386 (>= 2.22.0)
    Considering libgdk-pixbuf2.0-0:i386 2 as a solution to librsvg2-common:i386 1
    Holding Back librsvg2-common:i386 rather than change libgdk-pixbuf2.0-0:i386
    Investigating (1) libpangocairo-1.0-0:i386 1.40.14-1ubuntu0.1 @un uN Ib >
    Broken libpangocairo-1.0-0:i386 Depende on libglib2.0-0:i386 (>= 2.37.3)
    Considering libglib2.0-0:i386 16 as a solution to libpangocairo-1.0-0:i386 1
    Holding Back libpangocairo-1.0-0:i386 rather than change libglib2.0-0:i386
    Investigating (1) librsvg2-2:i386 2.40.20-2 @un uN Ib >
    Broken librsvg2-2:i386 Depende on libcroco3:i386 (>= 0.6.2)
    Considering libcroco3:i386 1 as a solution to librsvg2-2:i386 1
    Holding Back librsvg2-2:i386 rather than change libcroco3:i386
    Investigating (1) libharfbuzz0b:i386 1.7.2-1ubuntu1 @un uN Ib >
    Broken libharfbuzz0b:i386 Depende on libglib2.0-0:i386 (>= 2.31.8)
    Considering libglib2.0-0:i386 16 as a solution to libharfbuzz0b:i386 1
    Holding Back libharfbuzz0b:i386 rather than change libglib2.0-0:i386
    Investigating (1) libavcodec58:i386 7:4.1.3-0ppa1~18.04 @un uN Ib >
    Broken libavcodec58:i386 Depende on libglib2.0-0:i386 (>= 2.12.0)
    Considering libglib2.0-0:i386 16 as a solution to libavcodec58:i386 0
    Holding Back libavcodec58:i386 rather than change libglib2.0-0:i386
    Investigating (2) libfaudio0:i386 20.01-bionic~1ppa1 @un puN Ib >
    Broken libfaudio0:i386 Depende on libavcodec58:i386 (>= 7:4.0)
    Considering libavcodec58:i386 0 as a solution to libfaudio0:i386 9999
    Reinst Failed because of libblkid1:i386
    Reinst Failed because of libmount1:i386
    Reinst Failed because of libglib2.0-0:i386
    Considering libavcodec-extra58:i386 0 as a solution to libfaudio0:i386 9999
    Reinst Failed because of libglib2.0-0:i386
    Done
    No se pudieron instalar algunos paquetes. Esto puede significar que
    usted pidió una situación imposible o, si está usando la distribución
    inestable, que algunos paquetes necesarios aún no se han creado o se
    han sacado de «Incoming».
    La siguiente información puede ayudar a resolver la situación:

    Los siguientes paquetes tienen dependencias incumplidas:
    libfaudio0:i386 : Depende: libavcodec58:i386 (>= 7:4.0)
    E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.

    sudo apt update
    Descargados 197 kB en 10s (20,2 kB/s)
    Leyendo lista de paquetes… Hecho
    Creando árbol de dependencias
    Leyendo la información de estado… Hecho
    Todos los paquetes están actualizados.
    sudo apt –fix-broken install
    Leyendo lista de paquetes… Hecho
    Creando árbol de dependencias
    Leyendo la información de estado… Hecho
    Starting pkgProblemResolver with broken count: 0
    Starting 2 pkgProblemResolver with broken count: 0
    Done
    0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.