当我们在ubuntu中想要运行windows应用时,就需要安装wine。

ubuntu版本:22.04

1
2
3
4
5
6
7
8
sudo dpkg --add-architecture i386
sudo apt update
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt install software-properties-common
sudo apt-add-repository "deb http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main"
sudo apt install --install-recommends winehq-stable
# 查看wine版本
wine --version