安装步骤如下
sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/Release.key sudo apt-key add Release.key sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' sudo apt-get update sudo apt-get install --install-recommends winehq-stable sudo apt-get install winetricks winetricks
然后看一下wine的版本,
wine --version
这时候报错,报错如下
解决方法如下,
sudo gedit ~/.bashrc # 把下面这行注释掉 # export LD_PRELOAD="/usr/lib/libtcmalloc_minimal.so.4 # 输入下面内容 unset LD_PRELOAD source ~/.bashrc