Ubuntu 20.04安装微信、QQ

在Ubuntu系统上安装微信、QQ等软件是件麻烦事,总免不了遇到各种各样的问题,目前采用的是 deepin-wine 的方式来安装。

安装版本:

  • 微信:2.6.8.65(此版本的微信要求 deepin-wine 版本 >= 2.18-19)
  • QQ:9.1.8
  • deepin-wine:2.18-22

1.安装必要工具及deepin-wine的依赖

sudo apt install wget g++

已经安装的可以跳过

2.安装deepin-wine

mkdir /tmp/deepintemp
cd /tmp/deepintemp
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/deepin-wine32-tools_2.18-22~rc0_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-wine-binfmt_2.18-22~rc0_all.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 http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine-dev_2.18-22~rc0_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine-dbg_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/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb
wget http://packages.deepin.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb

# 加32位支持
sudo dpkg --add-architecture i386
sudo apt update
# 开始安装
sudo dpkg -i *.deb
# 安装依赖
sudo apt install -fy

# 没报错的话,deepin-wine环境已经安装好了
rm -rfv /tmp/deepintemp

3.安装微信

wget http://packages.deepin.com/deepin/pool/non-free/d/deepin.com.wechat/deepin.com.wechat_2.6.8.65deepin0_i386.deb
sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb

解决微信无法输入中文的问题:

sudo vim /opt/deepinwine/tools/run.sh

将 WINE_CMD 那一行修改为:

WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"

并在该行下方添加如下内容:

export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx" 
export XMODIFIERS="@im=fcitx"

如图:
Ubuntu 20.04安装微信、QQ_第1张图片

4.安装QQ

wget http://packages.deepin.com/deepin/pool/non-free/d/deepin.com.qq.im/deepin.com.qq.im_9.1.8deepin0_i386.deb
sudo dpkg -i deepin.com.qq.im_9.1.8deepin0_i386.deb

参考链接:
1.Ubuntu 20.04 安装微信、QQ等
2.ubuntu安装deepin-wine2.18-22环境和依赖的方法
3.ubuntu解决微信无法输入中文

你可能感兴趣的:(Linux,ubuntu20.04,deepin-wine,微信,QQ)