Ubuntu16.04下通过deepin-wine安装最新版微信

    万万没想到我的第一篇blog居然是为了装微信......

    由于中间遇到了deepin-wine版本不对的问题(dpkg: 依赖关系问题使得 deepin.com.wechat:i386 的配置工作不能继续),而且对应版本好像没有找到打包好的环境,所以自己写了一个.sh来一键解决。有用自取吧,挺省事儿的。

----------------------------------手动分割线

    想必最近很多大学生跟我一样,饱受网课的迫害。然而很不巧的是,我所有的环境都配到了Ubuntu下面,本周有一门课要求课上编程,然后.....我就gg了(手机听课卡)。

    思来想去,不得不用Windows也不过是因为:1、要上q;2、要上微信;3、要写报告。系统切来切去的还不如折腾一回,把Windows彻底变成我的“写报告系统”,嗯,干!

    前面的步骤就不提了,可以参考Ubuntu通过deepin-wine安装wechat和wechat Work

    网上方案其实还有很多,但是美中不足的是,网上给的deepin-wine打包好的环境的网址,如:git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git等等,对应的版本是2.18-12

    于是乎,在进行到最后一步的时候,就会发现:Ubuntu16.04下通过deepin-wine安装最新版微信_第1张图片

    对的,报错了,dpkg: 依赖关系问题使得 deepin.com.wechat:i386 的配置工作不能继续

    进一步细看我们可以发现,这是由于版本问题,因为这个软件依赖于deepin-wine(>=2.18-19),所以解决办法就是,升级

    要装的依赖还是不少的,闲着没事干的同学,也可以打开http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/,一个一个点☺,我不拦着〠

    在这里,我写了一个.sh文件,大家按照以下步骤即可自动完成更新

    首先,新建一个脚本(位置在哪里无所谓,运行的时候自己切过去就可以了),我自己的起的名字叫update-wine-new.sh

    下面是代码:

 

#!/bin/bash
mkdir /deepin
cd /deepin
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 https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-fonts-wine_2.18-18_all.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-dbg_2.18-18_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine-dbg_2.18-22~rc0_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine-dev_2.18-18_i386.deb               
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine-dev_2.18-22~rc0_i386.deb           
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine_2.18-18_i386.deb                
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine_2.18-22~rc0_i386.deb               
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine-binfmt_2.18-18_all.deb                
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine-binfmt_2.18-22~rc0_all.deb           
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32-preloader_2.18-18_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/deepin-wine32-tools_2.18-18_i386.deb             
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32-tools_2.18-22~rc0_i386.deb         
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32_2.18-18_i386.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-wine_2.18-18_all.deb            
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine_2.18-22~rc0_all.deb

#原本的运行过程中贴过来的提示文字,下面同理
echo '准备添加32位支持'
sudo dpkg --add-architecture i386
echo '添加成功,准备刷新apt缓存信息...'
sudo apt update
echo '即将开始安装...'
sudo dpkg -i *.deb
echo '安装成功,正在自动安装依赖'
sudo apt install -fy
sudo rm -vfr /deepin

       运行:

sudo ./update-wine-new.sh

    如果担心没有访问权限的话,运行之前还可以用chmod给个777的权限

    这里只是把deepin-wine更新了,所以后面我们还要在输一句安装微信的指令(前提是你下好包了)

    以我的为例:

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

    片刻的等待过后便是激动人心的画面:

 

    Ubuntu16.04下通过deepin-wine安装最新版微信_第2张图片

    它!好!了!

    哦,附上各个软件库的地址:http://mirrors.aliyun.com/deepin/pool/non-free/d/

哇,我太强了(心虚

你可能感兴趣的:(Ubuntu16.04下通过deepin-wine安装最新版微信)