Target
The goal is to install Wine on Ubuntu 18.04 Bionic Beaver Linux
Operating system and software version
Operating System: - Ubuntu 18.04 Bionic Beaver
软件: - Wine 3.0, Wine 3.2 or higher
Require
Requires access to the Ubuntu system as root or through sudo command authorization
difficulty
EASY
convention
# - Requires the given command to be executed directly as root or with root privileges using the sudo command
$ - the given command will be executed as a normal unprivileged user
illustrate
The recommended way to install Wine on Ubuntu 18.04 is to perform the installation from the Ubuntu repository, as it will give you a stable version of wine.
If the version of Wine provided from the Ubuntu repositories does not suit your needs, you can install Wine directly from the WineHQ repository, which will install the latest stable or development version of Wine.
Install Wine from Ubuntu repositories
To install Wine from the standard Ubuntu repositories, open a terminal and enter:
64bit system:
$ sudo apt install wine64
32bit system:
$ sudo apt install wine32
Please check the version after the Wine installation is complete:
Check your version once the Wine installation is complete:
$ wine --version
wine-3.0
Install Wine from the WineHQ repository
Wine can be installed directly using the WinHQ package using the following procedure. If you're running Ubuntu 18.04 on 64-bit hardware, to start adding the i386 architecture:
$ sudo dpkg --add-architecture i386
Next add the WineHQ signing key and repository:
$ wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -
$ sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ xenial main'
Next, you can choose to install the Wine stable version or the development version.
WineHQ stable version
To install WineHQ stable, enter:
sudo apt-get install --install-recommends winehq-stable
Check the version after installation:
$ wine --version
wine-3.0
WineHQ Development Edition
To install WineHQ stable, enter:
sudo apt-get install --install-recommends winehq-devel
Check the version after installation:
$ wine --version
wine-3.2