Ubuntu20.04 安装微信

Ubuntu20.04 安装微信

1、安装deepin-wine环境

//会下载到你打开终端的这个文件夹下
git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git
//进入deepin-wine-for-ubuntu文件夹下
cd deepin-wine-for-ubuntu/

Ubuntu20.04 安装微信_第1张图片

出现错误:Ubuntu20.04 安装微信_第2张图片

2.解决方法

//终端下输入命令,创建deepinwine文件夹
mkdir ./deepinwine
//终端下输入命令,进入deepinwine文件夹
cd ./deepinwine
//下载所需依赖包
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-wine_2.18-22~rc0_all.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32_2.18-22~rc0_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32-preloader_2.18-22~rc0_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-helper/deepin-wine-helper_1.2deepin8_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-plugin/deepin-wine-plugin_1.0deepin2_amd64.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-plugin-virtual/deepin-wine-plugin-virtual_1.0deepin3_all.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-uninstaller/deepin-wine-uninstaller_0.1deepin2_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/u/udis86/udis86_1.72-2_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-fonts-wine_2.18-22~rc0_all.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine_2.18-22~rc0_i386.deb
wget https://packages.deepin.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb --no-check-certificate
wget https://packages.deepin.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb --no-check-certificate
//添加32位支持
sudo dpkg --add-architecture i386
//刷新apt缓存信息
sudo apt update
//安装文件夹下所有文件
sudo dpkg -i *.deb
//自动安装依赖
sudo apt install -fy
//删除临时文件夹
rm -vfr ./deepinwine
 //网站
http://packages.deepin.com/deepin/pool/non-free/d/
https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu#https://gitee.com/wszqkzqk/deepin-wine-containers-for-ubuntu/raw/master/deepin.com.wechat_2.6.8.65deepin0_i386.deb

以上是安装好deepinwine,在网站下载最新版本微信,接下来安装deepin.com.wechat。

sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb 

成功安装
Ubuntu20.04 安装微信_第3张图片
在系统菜单下可找到微信图标,双击打开。

3.出现的问题

字体太小

因为wine对HiDPI不会默认适配dpi值。解决方案:
注意WINEPREFIX这个环境变量指向你的deepinwine容器目录,微信在路径~/.deepinwine/Deepin-WeChat下

//执行以下命令
WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine winecfg

打开wine设置页面,在显示选项卡中调整屏幕分辨率的dpi值即可。
Ubuntu20.04 安装微信_第4张图片

设置成259dpi,应用-确定,重启微信即可。

微信输入文字出现黑框的问题

微信输入文字出现黑框的问题,只需要修改微信客户端的语言设置,将原本的中文简体,改成”英文“,重启微信就可以。可参考链接。

你可能感兴趣的:(Ubuntu,linux,软件安装,ubuntu,linux,微信)