本文使用Ubuntu桌面版安装微信进行实际操作,安装方式使用的是wine,Ubuntu系统信息如下
查看本地wine版本
wine --version
1
2
3
4
5
6libin@oak:~$ wine --version wine-5.0 (Ubuntu 5.0-3ubuntu1) libin@oak:~$
显示本机未安装wine,按照提示使用命令行进行安装5.0正式版本版本
sudo apt install wine
安装winetricks
sudo apt install winetricks
在终端执行winetricks riched20,用于自行修复微信无法看到输入框内容的问题
winetricks riched20
若执行出现404错误,下载下面两个链接文件到对应目录,重新执行上方命令
W2KSP4_EN.EXE 目标路径:~/.cache/winetricks/win2ksp4
InstMsiW.exe 目标路径:~/.cache/winetricks/msls31
下载微信官方安装包
微信PC版下载
安装微信
wine WeChatSetup.exe
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161<pre><font color="#4E9A06"><b>libin@oak</b></font>:<font color="#3465A4"><b>~/clash/mysql</b></font>$ sudo apt install winetricks [sudo] libin 的密码: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 将会同时安装下列软件: cabextract fuseiso libmspack0 建议安装: tor unrar-free | unrar 下列【新】软件包将被安装: cabextract fuseiso libmspack0 winetricks 升级了 0 个软件包,新安装了 4 个软件包,要卸载 0 个软件包,有 3 个软件包未被升级。 需要下载 245 kB 的归档。 解压缩后会消耗 1,323 kB 的额外空间。 您希望继续执行吗? [Y/n] y 获取:1 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libmspack0 amd64 0.10.1-2 [38.0 kB] 获取:2 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 cabextract amd64 1.9-3 [23.4 kB] 获取:3 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 fuseiso amd64 20070708-3.2build1 [19.5 kB] 获取:4 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 winetricks all 0.0+20200412-1 [164 kB] 已下载 245 kB,耗时 2秒 (108 kB/s)<font color="#C4A000"> </font> 正在选中未选择的软件包 libmspack0:amd64。 (正在读取数据库 ... 系统当前共安装有 221476 个文件和目录。) 准备解压 .../libmspack0_0.10.1-2_amd64.deb ... 正在解压 libmspack0:amd64 (0.10.1-2) ... 正在选中未选择的软件包 cabextract。 准备解压 .../cabextract_1.9-3_amd64.deb ... 正在解压 cabextract (1.9-3) ... 正在选中未选择的软件包 fuseiso。 准备解压 .../fuseiso_20070708-3.2build1_amd64.deb ... 正在解压 fuseiso (20070708-3.2build1) ... 正在选中未选择的软件包 winetricks。 准备解压 .../winetricks_0.0+20200412-1_all.deb ... 正在解压 winetricks (0.0+20200412-1) ... 正在设置 libmspack0:amd64 (0.10.1-2) ... 正在设置 fuseiso (20070708-3.2build1) ... 正在设置 winetricks (0.0+20200412-1) ... 正在设置 cabextract (1.9-3) ... 正在处理用于 gnome-menus (3.36.0-1ubuntu1) 的触发器 ... 正在处理用于 libc-bin (2.31-0ubuntu9.2) 的触发器 ... 正在处理用于 man-db (2.9.1-1) 的触发器 ... 正在处理用于 desktop-file-utils (0.24-1ubuntu3) 的触发器 ... 正在处理用于 mime-support (3.64ubuntu1) 的触发器 ... 正在处理用于 hicolor-icon-theme (0.17-2) 的触发器 ... <font color="#4E9A06"><b>libin@oak</b></font>:<font color="#3465A4"><b>~/clash/mysql</b></font>$ sudo apt install wine 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 wine 已经是最新版 (5.0-3ubuntu1)。 wine 已设置为手动安装。 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 3 个软件包未被升级。 <font color="#4E9A06"><b>libin@oak</b></font>:<font color="#3465A4"><b>~/clash/mysql</b></font>$ winetricks riched20 Executing mkdir -p /home/libin ------------------------------------------------------ You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug. ------------------------------------------------------ Using winetricks 20200412 - sha256sum: 7651c93e39fcb080483c38836513bf912273a87ea97d137f6b958ed3d9628c3d with wine-5.0 (Ubuntu 5.0-3ubuntu1) and WINEARCH=win64 Executing w_do_call riched20 Executing mkdir -p /home/libin ------------------------------------------------------ You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug. ------------------------------------------------------ Executing load_riched20 Executing mkdir -p /home/libin/.cache/winetricks/win2ksp4 Executing cd /home/libin/.cache/winetricks/win2ksp4 Downloading https://ftp.gnome.org/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE to /home/libin/.cache/winetricks/win2ksp4 --2021-10-29 15:32:50-- https://ftp.gnome.org/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE 正在连接 127.0.0.1:7890... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2021-10-29 15:32:52 错误 404:Not Found。 Executing cd /home/libin/.cache/winetricks/win2ksp4 Downloading https://web.archive.org/web/2000/https://ftp.gnome.org/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE to /home/libin/.cache/winetricks/win2ksp4 --2021-10-29 15:32:53-- https://web.archive.org/web/2000/https://ftp.gnome.org/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE 正在连接 127.0.0.1:7890... 已连接。 已发出 Proxy 请求,正在等待回应... 302 FOUND 位置:https://web.archive.org/web/20180613014937/https://ftp.gnome.org/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE [跟随至新的 URL] --2021-10-29 15:32:56-- https://web.archive.org/web/20180613014937/https://ftp.gnome.org/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE 再次使用存在的到 web.archive.org:443 的连接。 已发出 Proxy 请求,正在等待回应... 302 Found 位置:https://web.archive.org/web/20180613014937/https://saimei.ftp.acc.umu.se/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE [跟随至新的 URL] --2021-10-29 15:32:56-- https://web.archive.org/web/20180613014937/https://saimei.ftp.acc.umu.se/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE 再次使用存在的到 web.archive.org:443 的连接。 已发出 Proxy 请求,正在等待回应... 302 FOUND 位置:https://web.archive.org/web/20180613014941/https://saimei.ftp.acc.umu.se/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE [跟随至新的 URL] --2021-10-29 15:32:57-- https://web.archive.org/web/20180613014941/https://saimei.ftp.acc.umu.se/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE 再次使用存在的到 web.archive.org:443 的连接。 已发出 Proxy 请求,正在等待回应... 200 OK 长度: 未指定 [application/x-msdownload] 正在保存至: “W2KSP4_EN.EXE” W2KSP4_EN.EXE [ <=> ] 129.20M 564KB/s 用时 3m 23s 2021-10-29 15:36:21 (652 KB/s) - “W2KSP4_EN.EXE” 已保存 [135477136] Executing cd /home/libin/clash/mysql Executing cabextract -q -d /home/libin/.wine/dosdevices/c:/windows/temp -L -F i386/riched20.dl_ /home/libin/.cache/winetricks/win2ksp4/W2KSP4_EN.EXE Executing cabextract -q --directory=/home/libin/.wine/dosdevices/c:/windows/syswow64 /home/libin/.wine/dosdevices/c:/windows/temp/i386/riched20.dl_ Using native,builtin override for following DLLs: riched20 Executing wine regedit C:windowsTempoverride-dll.reg Executing wine64 regedit C:windowsTempoverride-dll.reg Executing w_do_call msls31 Executing mkdir -p /home/libin ------------------------------------------------------ You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug. ------------------------------------------------------ Executing load_msls31 Executing mkdir -p /home/libin/.cache/winetricks/msls31 Executing cd /home/libin/.cache/winetricks/msls31 Downloading https://ftp.hp.com/pub/softlib/software/msi/InstMsiW.exe to /home/libin/.cache/winetricks/msls31 --2021-10-29 15:36:24-- https://ftp.hp.com/pub/softlib/software/msi/InstMsiW.exe 正在连接 127.0.0.1:7890... 已连接。 已发出 Proxy 请求,正在等待回应... 301 Moved Permanently 位置:https://ftp.ext.hp.com/pub/softlib/software/msi/InstMsiW.exe [跟随至新的 URL] --2021-10-29 15:36:26-- https://ftp.ext.hp.com/pub/softlib/software/msi/InstMsiW.exe 正在连接 127.0.0.1:7890... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2021-10-29 15:36:27 错误 404:Not Found。 Executing cd /home/libin/.cache/winetricks/msls31 Downloading https://web.archive.org/web/2000/https://ftp.hp.com/pub/softlib/software/msi/InstMsiW.exe to /home/libin/.cache/winetricks/msls31 --2021-10-29 15:36:27-- https://web.archive.org/web/2000/https://ftp.hp.com/pub/softlib/software/msi/InstMsiW.exe 正在连接 127.0.0.1:7890... 已连接。 已发出 Proxy 请求,正在等待回应... 302 FOUND 位置:https://web.archive.org/web/20180612201004/http://ftp.hp.com/pub/softlib/software/msi/InstMsiW.exe [跟随至新的 URL] --2021-10-29 15:36:28-- https://web.archive.org/web/20180612201004/http://ftp.hp.com/pub/softlib/software/msi/InstMsiW.exe 再次使用存在的到 web.archive.org:443 的连接。 已发出 Proxy 请求,正在等待回应... 301 Moved Permanently 位置:https://web.archive.org/web/20180612201004/http://whp-aus2.cold.extweb.hp.com/pub/softlib/software/msi/InstMsiW.exe [跟随至新的 URL] --2021-10-29 15:36:29-- https://web.archive.org/web/20180612201004/http://whp-aus2.cold.extweb.hp.com/pub/softlib/software/msi/InstMsiW.exe 再次使用存在的到 web.archive.org:443 的连接。 已发出 Proxy 请求,正在等待回应... 302 FOUND 位置:https://web.archive.org/web/20180612201007/http://whp-aus2.cold.extweb.hp.com/pub/softlib/software/msi/InstMsiW.exe [跟随至新的 URL] --2021-10-29 15:36:29-- https://web.archive.org/web/20180612201007/http://whp-aus2.cold.extweb.hp.com/pub/softlib/software/msi/InstMsiW.exe 再次使用存在的到 web.archive.org:443 的连接。 已发出 Proxy 请求,正在等待回应... 200 OK 长度: 未指定 [application/octet-stream] 正在保存至: “InstMsiW.exe” InstMsiW.exe [ <=> ] 1.74M 636KB/s 用时 2.8s 2021-10-29 15:36:33 (636 KB/s) - “InstMsiW.exe” 已保存 [1822848] Executing cd /home/libin/clash/mysql Executing cabextract -q --directory=/home/libin/.wine/dosdevices/c:/windows/temp /home/libin/.cache/winetricks/msls31/InstMsiW.exe Executing cp -f /home/libin/.wine/dosdevices/c:/windows/temp/msls31.dll /home/libin/.wine/dosdevices/c:/windows/syswow64 <font color="#4E9A06"><b>libin@oak</b></font>:<font color="#3465A4"><b>~/clash/mysql</b></font>$ winetricks riched20 Executing mkdir -p /home/libin ------------------------------------------------------ You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug. ------------------------------------------------------ Using winetricks 20200412 - sha256sum: 7651c93e39fcb080483c38836513bf912273a87ea97d137f6b958ed3d9628c3d with wine-5.0 (Ubuntu 5.0-3ubuntu1) and WINEARCH=win64 Executing w_do_call riched20 Executing mkdir -p /home/libin ------------------------------------------------------ You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug. ------------------------------------------------------ riched20 already installed, skipping <font color="#4E9A06"><b>libin@oak</b></font>:<font color="#3465A4"><b>~/clash/mysql</b></font>$ </pre>
若出现中文显示未乱码方块的问题,解决方式如下
Windows 支持字体链接:当一种字体中不存在某个字时,可以尝试从另一个字体文件中寻找相应的字形。所以只要把当前系统中的中文字体设为"fallback"字体,汉字通常就能正确显示了。方法也很简单,只需创建一个文本文件 chn_font.reg,内容如下:
REGEDIT4
[HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionFontLinkSystemLink]
“Lucida Sans Unicode”=“wqy-microhei.ttc”
“Microsoft Sans Serif”=“wqy-microhei.ttc”
“MS Sans Serif”=“wqy-microhei.ttc”
“Tahoma”=“wqy-microhei.ttc”
“Tahoma Bold”=“wqy-microhei.ttc”
“SimSun”=“wqy-microhei.ttc”
“Arial”=“wqy-microhei.ttc”
“Arial Black”=“wqy-microhei.ttc”
regedit chn_font.reg
————————————————
最后
以上就是火星上酒窝最近收集整理的关于Ubuntu 20.04.2 LTS安装 最新版 微信(wine)的全部内容,更多相关Ubuntu内容请搜索靠谱客的其他文章。
发表评论 取消回复