GeekHub

一键安装deepin-wine环境及wine版微信脚本

github上deepin wine项目里的新版微信版本已经不可用了(好像不在维护了),搜集了一些解决方案,绕开了一些坑,总的来说安装过程还是比较繁琐的,而且很多教程已经失去时效性了,故用趟过坑的经验整合了一个脚本,亲测ubuntu16.04可以正常运行(18.04慎用,存在字库显示问题,爱折腾的朋友可以试试看能不能解决一下),每次重装系统都用它一键部署。

使用方法:

1 使用命令

tar -xvf install_deepinwine_and_wechat.tar.gz

解压tar文件,获得install_deepinwine_and_wechat.sh脚本

2 再使用

sudo chmod a+x install_deepinwine_and_wechat.sh

给予脚本运行权限,执行后所有安装过程中一路确认yes过去,deepin_wine的环境和wine版微信就装好啦,在ubuntu的应用界面中即可找到微信,初次使用需要初始化,稍等一分钟便可使用。

另外如需安装其他的wine程序,只需将./sh中的

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

修改为自己下载的deepin-wine版的软件包即可。

如果发现脚本不可用了麻烦评论留言联系我。

下载链接:

install_deepinwine_and_wechat.tar.gz

另附上脚本内容,供参考:

#!/bin/bash

mkdir /tmp/deepintemp
cd /tmp/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
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb
 
echo '准备添加32位支持'
sudo dpkg --add-architecture i386
echo '添加成功,准备刷新apt缓存信息...'
sudo apt update

echo '正在安装wine'
sudo apt install wine1.6

echo '即将开始安装...'
sudo dpkg -i *.deb
echo '安装完成,正在自动安装依赖...'
sudo apt install -fy

echo '正在下载并安装wine微信...'
wget https://mirrors.aliyun.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

rm -vfr /tmp/deepintemp

发表评论

邮箱地址不会被公开。 必填项已用*标注