You can use the following commands to install Wine on Ubuntu 18.10 / Ubuntu 19.04.
- 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/ cosmic main'
Note: For Ubuntu 19.04: sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
- sudo apt update
- sudo apt install --install-recommends winehq-stable
Article: Install Wine on Ubuntu 18.10