如果系统之前安装过其他版本的wine,请先行卸载wine,之后在使用如下方法安装wine-5.0稳定版
wine完全卸载方法:
1、终端中执行sudo apt-get remove wine3.0(wine3.0是你安装wine时的软件包名,如果你当时之间apt-get wine来安装的就直接输入apt-get install remove wine)
2、删除wine的目录文件:sudo rm -r
/home/username/.wine(username是你的用户名)
3、卸载残留的软件包:sudo apt-get autoremove
4、清理wine模拟运行的windows程序:sudo rm -r
/home/username/.local/share/applications
5、清理残余的windows程序:sudo rm -r
/home/username/.config/menus/applications-merged/wine*
注意,这里以root权限使用了rm -r命令,这个命令很危险,如果路径输入错误可能会直接悲剧,请慎重。
参考内容来自:
https://blog.csdn.net/ouyangying123/article/details/45912605
1、通过“终端安装wine”
通过按键盘上的Ctrl + Alt + T或从应用程序菜单中搜索“终端”来打开终端。 打开时,请一一运行以下命令。
1.运行命令以启用32位体系结构:
sudo dpkg --add-architecture i386
2.通过以下命令下载并安装存储库密钥:
wget -nc https://dl.winehq.org/wine-builds/winehq.key; sudo apt-key add winehq.key
3.对于Ubuntu 18.04,通过以下命令添加wine仓库
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
注:你可以将代码中的 bionic 替换为
eoan适用于Ubuntu 19.10
xenial适用于Ubuntu 16.04
4.为所需的libfaudio0库添加PPA:
仅适用于Ubuntu 18.04,Linux Mint 19.x和Ubuntu 19.04,因为更高版本的Ubuntu在主存储库中已经具有libfaudio0
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
5.最后通过命令安装Wine 5.0稳定版:
sudo apt update && sudo apt install --install-recommends winehq-stable
6.安装完成后,到微信官网下载微信安装包下载到本地,通过cd命令进入下载文件夹:
cd /Download
7.通过wine命令安装下载的安装包:
wine WechatSetup.exe
到此wine安装微信结束
2、安装运行wine微信遇到的问题
winetricks riched20
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"