在ubuntu上也有使用QQ和钉钉等windows程序得需求,这时安装wine来使用QQ等windows程序。在ubuntu上使用sudo apt-get install wine命令安装的往往是wine的早期版本,因为其版本太老,在使用它安装windows程序过程中经常崩溃,现在推荐使用wine的较新版本。下面说一下怎么安装wine的最新版本。
对于ubuntu 18.10:
添加仓储:
1. 下载秘钥:
wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
2. 导入秘钥:
sudo apt-key add Release.key
3. 添加仓储
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./'
4. 更新程序包
sudo apt-get update
5. 安装wine稳定版
sudo apt-get install --install-recommends winehq-stable
对于其他版本的ubuntu:
1. 下载秘钥:
wget -nc https://dl.winehq.org/wine-builds/Release.key
2. 导入秘钥:
sudo apt-key add Release.key
3. 添加仓储
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
4. 更新程序包
sudo apt-get update
5. 安装wine稳定版
sudo apt-get install --install-recommends winehq-stable
wine程序安装在/opt目录,工作目录在~/.wine。
参考:https://wiki.winehq.org/Ubuntu