操作环境介绍
本次操作环境如下
系统版本:Ubuntu 20.04 LTS 64 位
GNOME 版本:3.36.1
安装deepin-wine
原博主https://blog.csdn.net/zzq997/article/details/105779935/
在根据原博主的教程操作之后
发现有稍许错误
在安装微信的的时候
因为deepin-wine版本较低造成依赖错误
在仔细阅读过deepin-wine-for-ubuntu之后发现作者已经提供了新的shell脚本
我们只需要把下面这段代码保存为脚本运行
就可以自动下载安装deepin-wine环境了
其中有两条下载链接是https的
我这边下载会出现证书校验问题
我自行在后面加了--no-check-certificate
#!/bin/bash
mkdir ./deepintemp
cd ./deepintemp
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine_2.18-22~rc0_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32_2.18-22~rc0_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32-preloader_2.18-22~rc0_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-helper/deepin-wine-helper_1.2deepin8_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin/deepin-wine-plugin_1.0deepin2_amd64.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin-virtual/deepin-wine-plugin-virtual_1.0deepin3_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-uninstaller/deepin-wine-uninstaller_0.1deepin2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/u/udis86/udis86_1.72-2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-fonts-wine_2.18-22~rc0_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine_2.18-22~rc0_i386.deb
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb --no-check-certificate
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb --no-check-certificate
echo '准备添加32位支持'
sudo dpkg --add-architecture i386
echo '添加成功,准备刷新apt缓存信息...'
sudo apt update
echo '即将开始安装...'
sudo dpkg -i *.deb
echo '安装完成,正在自动安装依赖...'
sudo apt install -fy
rm -vfr ./deepintemp
运行完不出现任何报错就是成功了
安装微信
下载微信安装包
(建议选择最新的版本):https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.wechat/
命令行安装 (注意后边跟自己的文件名)
sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb
这一步很顺利 没有什么错误
微信乱码问题
登陆的时候会有中文乱码
这个原博主也贴出了他找到的解决方案
有两种方法 我用第二种解决了 各位自行尝试
-
修改 run.sh 和 run_v2.sh 文件(操作都是一样的)
这两个文件默认应该是在/opt/deepinwine/tools路径下
修改 WINE_CMD,并添加三个 export 语句,内容如下#WINE_CMD="deepin-wine" WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine" #added by user export GTK_IM_MODULE="ibus" export QT_IM_MODULE="ibus" export XMODIFIERS="@im=ibus"
此时可尝试打开Wehat,若中文显示和输入均正常可不进行下一步
-
添加字体文件支持
1.下载字体msyh.ttc https://www.lanzous.com/i5wivmd
解压之后复制到字体库cp msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts
2.修改注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
找到以下两行修改
"MS Shell Dlg"="msyh" "MS Shell Dlg 2"="msyh"
其实最好把原来的两行注释掉以作备份
然后把上面的复制过去3.字体注册
新建文件msyh_config.reg
写入以下内容REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] "Lucida Sans Unicode"="msyh.ttc" "Microsoft Sans Serif"="msyh.ttc" "MS Sans Serif"="msyh.ttc" "Tahoma"="msyh.ttc" "Tahoma Bold"="msyhbd.ttc" "msyh"="msyh.ttc" "Arial"="msyh.ttc" "Arial Black"="msyh.ttc"
输入以下命令使其生效
deepin-wine regedit msyh_config.reg
感谢
开发者:https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu
原博主:https://blog.csdn.net/zzq997/article/details/105779935/
乱码解决博主:https://blog.csdn.net/hymanjack/article/details/100168300
以及适配微信的deepin大神们