Skip to content

Ubuntu20.04安装微信

步骤

  1. 启用i386的库;
    shell
    # 启用i386
    sudo dpkg --add-architecture i386
    # 更新apt缓存
    sudo apt update
  2. 安装deepin-wine;
    shell
    # clone deepin-wine
    git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git
    # 进入项目路径
    cd deepin-wine-for-ubuntu/
    # 安装
    sudo ./install.sh
  3. 安装微信依赖的wine相关包
    shell
    mkdir debs && cd debs
    # 下载安装deepin-wine下的所有2.18-22版本包
    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-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-dbg_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-wine32-tools_2.18-22~rc0_i386.deb
    # 下载安装deepin-wine-helper下的包
    wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-helper/deepin-wine-helper_1.2deepin8_i386.deb
    # 下载安装deepin-wine-plugin下的包
    wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-plugin/deepin-wine-plugin_1.0deepin2_amd64.deb
    # 下载安装deepin-wine-plugin-virtual
    wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-plugin-virtual/deepin-wine-plugin-virtual_1.0deepin3_all.deb
    # 下载安装deepin-wine-uninstaller
    wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-uninstaller/deepin-wine-uninstaller_0.1deepin2_i386.deb
    # 下载安装udis86
    wget http://packages.deepin.com/deepin/pool/non-free/u/udis86/udis86_1.72-2_i386.deb
    # 下载安装libjpeg-turbo
    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
    文件已经被下载到同一个路径下,可以使用统配符全部安装。
    shell
    sudo dpkg -i ./*.deb
    然后让apt检查并自动安装其他依赖
    shell
    sudo apt install -fy
  4. 安装字体; 字体可以不安装,不影响查看聊天内容,但是输入框里的文字会变成一个个竖状的黑框,发送出去依然是正常的文字。
    shell
    sudo apt-get install fonts-droid-fallback ttf-wqy-zenhei ttf-wqy-microhei fonts-arphic-ukai fonts-arphic-uming
  5. 安装微信
    shell
    wget http://packages.deepin.com/deepin/pool/non-free/d/deepin.com.wechat/deepin.com.wechat_2.6.8.65deepin0_i386.deb
  6. 清理多余的依赖
    shell
    # 清理通过apt安装的多余依赖
    sudo apt autoremove
    # 先使用pwd确定一下是不是在debs路径下,如果在这个路径下可以执行下面的命令
    rm ./*.deb

参考

ubuntu 20.04 安装 微信最新方式