-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_wine.sh
executable file
·32 lines (22 loc) · 1.04 KB
/
install_wine.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
## Install wine to Intel based Linux
## method from official one doesn't work (cause dependency problem)
## ref: https://nixytrix.com/error-winehq-stable-depends-wine-stable-5-0-0-bionic/
# Add 32-bit support:
sudo dpkg --add-architecture i386
# Download the WineHQ repository key:
wget -nc https://dl.winehq.org/wine-builds/winehq.key -O /tmp/winehq.key
# Install the WinHQ repository key:
sudo apt-key add /tmp/winehq.key
# Install the Wine Repository:
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
# Download the key needed for the OBS faudio repository:
wget -nv https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key -O /tmp/Release.key
# Install the key:
sudo apt-key add - < /tmp/Release.key
# Add the OBS faudio repository:
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
# Update your repositories:
sudo apt-get update
# Install Wine:
sudo apt install --install-recommends winehq-stable