[经验分享] kunpeng920解决qq(wine)和微信(wine)不能启动问题(持续更新)
桌面专业版6376次浏览 ·46个回复
电梯直达到第
俊生鹏程
uos^2
发表于2022-02-25 06:27
楼主

kunpeng920  解决qq(wine)版和微信(wine)不能启动的问题

 

在终端中  输入 sudo apt upgrade  或

sudo apt-get dist-upgrade   先更新系统。

再在应用商店里面下载微信windows版本。看能不运行,如不能运行,

在终端分别运行,sudo apt install deepin-wine-exagear-images

sudo apt reinstall com.qq.weixin.deepin

就可以用电脑版微信了

下面开始安装qq(wine)版本

请依次安装这些包(点击可下载):

  1. deepin-wine-exagear-images_10deepin2_arm64.deb(306.47 MB)

  2. com.deepin-wine-runtime.deepin_1.0deepin2-tigermod_arm64.deb(87.46 MB)

  3. com.deepin-box86.deepin_0.2.3deepin12_arm64.deb(3.59 MB)

  4. com.deepin-wine6-stable.deepin_6.0deepin14_arm64.deb(36.67 MB)

然后运行   sudo apt install com.qq.im.deepin

qq(wine)安装完成,看是否能够运行。

如果不能运行

找到  opt/apps/com.qq.im.deepin/files/    用管理员打开。

编辑   run.sh     把下面内容替换后保存。

 

#!/bin/bash

DEB_PATH="/opt/apps/com.qq.im.deepin"

WINE="/opt/deepin-wine6-stable/bin/wine"

WINESERVER="/opt/deepin-wine6-stable/bin/wineserver"

EMU="/opt/exagear/bin/ubt_x64a64_al"

IMAGE_PATH=$HOME/.deepinwine/debian-buster

EMU_ARGS="--path-prefix $IMAGE_PATH --utmp-paths-list $IMAGE_PATH/.exagear/utmp-list --vpaths-list $IMAGE_PATH/.exagear/vpaths-list --opaths-list $IMAGE_PATH/.exagear/opaths-list --smo-mode fbase --smo-severity smart --fd-limit 8192 --foreign-ubt-binary /opt/exagear/bin/ubt_x32a64_al -- "

EXE="c:/Program Files/Tencent/QQ/Bin/QQ.exe"

NEW_VERSION="3.3.0.115deepin14"

BOTTLE="$HOME/.deepinwine/Deepin-QQ"

KUNPENG=`lscpu | grep 'Model name' | grep Kunpeng`

IMAGE=/opt/deepin-wine-exagear-images/debian-buster



export LC_ALL=$LANG

export XMODIFIERS=$XMODIFIERS

export DESKTOP_SESSION=deepin



reconstruct_bottle_symlink() {



    if [ -L $BOTTLE/drive_c/users/$USER/Desktop ]; then

        rm -f $BOTTLE/drive_c/users/$USER/Desktop

        ln -s $HOME/Desktop $BOTTLE/drive_c/users/$USER/Desktop

    fi

    if [ -L $BOTTLE/drive_c/users/$USER/Documents ]; then

        rm -f $BOTTLE/drive_c/users/$USER/Documents

        ln -s $HOME/Documents $BOTTLE/drive_c/users/$USER/Documents

    fi

    if [ -L $BOTTLE/drive_c/users/$USER/Downloads ]; then

        rm -f $BOTTLE/drive_c/users/$USER/Downloads

        ln -s $HOME/Downloads $BOTTLE/drive_c/users/$USER/Downloads

    fi



    if [ -L "$BOTTLE/drive_c/users/$USER/My Documents" ]; then

        rm -f "$BOTTLE/drive_c/users/$USER/My Documents"

        ln -s $HOME/Documents "$BOTTLE/drive_c/users/$USER/My Documents"

    fi



    if [ -L "$BOTTLE/drive_c/users/$USER/My Music" ]; then

        rm -f "$BOTTLE/drive_c/users/$USER/My Music"

        ln -s $HOME/Music "$BOTTLE/drive_c/users/$USER/My Music"

    fi

    if [ -L "$BOTTLE/drive_c/users/$USER/My Videos" ]; then

        rm -f "$BOTTLE/drive_c/users/$USER/My Videos"

        ln -s $HOME/Videos "$BOTTLE/drive_c/users/$USER/My Videos"

    fi

}



if [ ! -d "$HOME/.deepinwine" ];then

    mkdir -p "$HOME/.deepinwine"

fi



if [ -f $BOTTLE/VERSION ];then

    old_version=""

    while read line; do

    old_version=$line

    done < $BOTTLE/VERSION

    if [ "$old_version" != "$NEW_VERSION" ];then

        WINEPREFIX=$BOTTLE $EMU $EMU_ARGS $WINESERVER -k

        rm -rf $BOTTLE

    fi

fi



if [ ! -d $BOTTLE ];then

    7z x "$DEB_PATH/files/files.7z" -o"$BOTTLE" -aoa

    mv "$BOTTLE/drive_c/users/@current_user@" "$BOTTLE/drive_c/users/$USER"

    sed -i "s#@current_user@#$USER#" $BOTTLE/*.reg

    reconstruct_bottle_symlink

    echo $NEW_VERSION > $BOTTLE/VERSION

fi



if [ ! -z "$KUNPENG" ];then

	if [ ! -d $IMAGE_PATH ] && [ -d $IMAGE ];then

		cp $IMAGE $IMAGE_PATH -rf

	fi

fi



export WINEPREDLL=$DEB_PATH/files/dlls

export ATTACH_FILE_DIALOG=1

export WINEDLLPATH=/opt/deepin-wine6-stable/lib

WINEPREFIX=$BOTTLE $EMU $EMU_ARGS $WINE "$EXE" --disable-gpu &

 

这样就可以运行qq(wine)版了。

 

最新情况,com.deepin-wine6-stable.deepin   最近更新了 6.0deepin19 arm64 这个版本,这个版本微信可以运行,但是qq不能运行。

建议,可保持  6.0deepin14这个版本不升级

用这个命令 禁wine6更新  

 

sudo apt-mark hold   com.deepin-wine6-stable.deepin

后期需要解除的话  用这个命令。

sudo apt-mark unhold   com.deepin-wine6-stable.deepin   

 

3月28日,根据17楼建议。更新了方法,具体在18楼,更新到com.deepin-wine6-stable.deepin   最近更新了 6.0deepin19 arm64 这个版本,已经实现QQ的完美运行。

 

2022.4.6  最新更新微信和qq官网最新版方法

将windows系统里面安装的最新版微信和qq目录整个拷贝到对应的   .deepwine/Deepin-QQ/drive_c/Program Files/Tencent/QQ,  .deepwine/Deepin-WeChat/drive_c/Program Files/Tencent/WeChat目录,覆盖.或者将原文件夹改一个名,确保能运行后,就可以把原来的文件删除了.

此方法可以解决待机启动qq不能重新上线的情况。

 

回复收藏只看作者
所有回复
小马哥
uos^1
发表于2022-02-25 08:19
沙发

鲲鹏920修改了还是无法运行QQ

回复只看作者
俊生鹏程
uos^2
发表于2022-02-25 10:35
板凳

多试几次。把顺序调整一下,应该是可以的哈。以下是我的情况。

回复只看作者
赤足踏涧
uos^4
发表于2022-02-28 03:29
地板

QQ(wine)安装,可参考https://bbs.chinauos.com/zh/post/10332

回复只看作者
刘应林
uos^2
发表于2022-03-09 07:02
4楼

1043版,找不到opt/apps/com.qq.im.deepin/files/   ,但是安装显示成功了

回复只看作者
UT_wc35eq1vi61bbce7h4yr7yhrgmmaw
uos^1
发表于2022-03-16 07:09
5楼

微信能用,qq还是不行。难受

回复只看作者
俊生鹏程
uos^2
发表于2022-03-24 04:47
6楼
小马哥

鲲鹏920修改了还是无法运行QQ

按上面的方法,可以的。已经进行更新了。

回复只看作者
俊生鹏程
uos^2
发表于2022-03-24 04:48
7楼
赤足踏涧

QQ(wine)安装,可参考https://bbs.chinauos.com/zh/post/10332

最新情况,已经更新了。如上修改

回复只看作者
俊生鹏程
uos^2
发表于2022-03-24 04:48
8楼
UT_wc35eq1vi61bbce7h4yr7yhrgmmaw

微信能用,qq还是不行。难受

按照 上面方法修改

回复只看作者
俊生鹏程
uos^2
发表于2022-03-24 04:49
9楼
刘应林

1043版,找不到opt/apps/com.qq.im.deepin/files/   ,但是安装显示成功了

在系统盘里找

回复只看作者
赤足踏涧
uos^4
发表于2022-03-25 03:06
10楼
俊生鹏程

最新情况,已经更新了。如上修改

已经自动更新了,现在QQ(wine)版用不了。只能等了。

回复只看作者
赤足踏涧
uos^4
发表于2022-03-25 04:45
11楼
俊生鹏程

最新情况,已经更新了。如上修改

换回了老版本,装上QQ(wine)还是用不了。

回复只看作者
俊生鹏程
uos^2
发表于2022-03-25 05:01
12楼
赤足踏涧

换回了老版本,装上QQ(wine)还是用不了。

我在升级之前有备份系统,不能用了,就恢复一下,又可以了。

回复只看作者
俊生鹏程
uos^2
发表于2022-03-25 05:03
13楼
赤足踏涧

换回了老版本,装上QQ(wine)还是用不了。

要把wine6换会之前的版本,新版的wine6,qq用不了。

回复只看作者
赤足踏涧
uos^4
发表于2022-03-25 05:08
14楼
俊生鹏程

要把wine6换会之前的版本,新版的wine6,qq用不了。

感谢指导,按照前面的说明,换装了老版的wine6,并reinstall 了QQ(wine),已经可以使用了。

回复只看作者
俊生鹏程
uos^2
发表于2022-03-25 06:34
15楼
赤足踏涧

感谢指导,按照前面的说明,换装了老版的wine6,并reinstall 了QQ(wine),已经可以使用了。

备份系统,防止后面又不能用了。另外这个版本有一个问题,就是电脑待机后,重新进入系统,qq是离线的,不能直接上线,只有重新退出登录。

回复只看作者
赤足踏涧
uos^4
发表于2022-03-25 07:48
16楼
俊生鹏程

备份系统,防止后面又不能用了。另外这个版本有一个问题,就是电脑待机后,重新进入系统,qq是离线的,不能直接上线,只有重新退出登录。

感谢提醒。

回复只看作者
石头
uos^1
发表于2022-03-27 09:07
17楼

感谢您的分享!com.deepin-wine6-stable.deepin 最新版deepin19环境下也是可以运行QQ的。需要把weixin目录下的一些.so文件复制到QQ目录下,然后移植weixin的run.sh文件来启动QQ。

回复只看作者
俊生鹏程
uos^2
发表于2022-03-28 10:25
18楼
石头

感谢您的分享!com.deepin-wine6-stable.deepin 最新版deepin19环境下也是可以运行QQ的。需要把weixin目录下的一些.so文件复制到QQ目录下,然后移植weixin的run.sh文件来启动QQ。

感谢你的建议。刚试了确认可以。具体方法为:

将,com.deepin-wine6-stable.deepin 最新版deepin19。然后把微信重装一下

sudo apt reinstall com.qq.weixin.deepin

重装后运行一下微信。

用管理员打开opt/apps/,

将com.qq.weixin.deepin/files   下面的sys_msvcrt.dll.so winex11.drv.so ws2_32.dll.so三个文件复制到com.qq.im.deepin/files/  下面。

然后 微信  exa目录整个复制到com.qq.im.deepin/files/ 下面。

再把dlls目录下面的文件复制到qq对应的目录下面,覆盖相应文件。

然后把qq的 run.sh文件内容改为

#!/bin/bash
DEB_PATH="/opt/apps/com.qq.im.deepin"
WINE="/opt/deepin-wine6-stable/bin/wine"
WINESERVER="/opt/deepin-wine6-stable/bin/wineserver"
EMU="/opt/exagear/bin/ubt_x64a64_al"
IMAGE_PATH=$HOME/.deepinwine/debian-buster
EMU_ARGS="--path-prefix $IMAGE_PATH --utmp-paths-list $IMAGE_PATH/.exagear/utmp-list --vpaths-list $IMAGE_PATH/.exagear/vpaths-list --opaths-list $IMAGE_PATH/.exagear/opaths-list --smo-mode fbase --smo-severity smart --fd-limit 8192 --foreign-ubt-binary /opt/exagear/bin/ubt_x32a64_al -- "
EXE="c:/Program Files/Tencent/QQ/Bin/QQ.exe"
NEW_VERSION="3.3.0.115deepin14"
BOTTLE="$HOME/.deepinwine/Deepin-QQ"
KUNPENG=`lscpu | grep 'Model name' | grep Kunpeng`
IMG_ARCHIVE_DIR=/opt/deepin-wine-exagear-images/debian-buster
IMAGE_VER="10deepin4"
LOCALTIME=`readlink -f /etc/localtime`

export LC_ALL=$LANG
export XMODIFIERS=$XMODIFIERS
export DESKTOP_SESSION=deepin

if command -v zenity >/dev/null 2>&1; then
	progressbar()
	{
		WINDOWID="" zenity --progress --title="$1" --text="$2" --pulsate --width=400 --auto-close --no-cancel ||
		WINDOWID="" zenity --progress --title="$1" --text="$2" --pulsate --width=400 --auto-close
	}

else
	progressbar()
	{
		cat -
	}
fi

reconstruct_bottle_symlink() {

    if [ -L $BOTTLE/drive_c/users/$USER/Desktop ]; then
        rm -f $BOTTLE/drive_c/users/$USER/Desktop
        ln -s $HOME/Desktop $BOTTLE/drive_c/users/$USER/Desktop
    fi
    if [ -L $BOTTLE/drive_c/users/$USER/Documents ]; then
        rm -f $BOTTLE/drive_c/users/$USER/Documents
        ln -s $HOME/Documents $BOTTLE/drive_c/users/$USER/Documents
    fi
    if [ -L $BOTTLE/drive_c/users/$USER/Downloads ]; then
        rm -f $BOTTLE/drive_c/users/$USER/Downloads
        ln -s $HOME/Downloads $BOTTLE/drive_c/users/$USER/Downloads
    fi

    if [ -L "$BOTTLE/drive_c/users/$USER/My Documents" ]; then
        rm -f "$BOTTLE/drive_c/users/$USER/My Documents"
        ln -s $HOME/Documents "$BOTTLE/drive_c/users/$USER/My Documents"
    fi

    if [ -L "$BOTTLE/drive_c/users/$USER/My Music" ]; then
        rm -f "$BOTTLE/drive_c/users/$USER/My Music"
        ln -s $HOME/Music "$BOTTLE/drive_c/users/$USER/My Music"
    fi
    if [ -L "$BOTTLE/drive_c/users/$USER/My Videos" ]; then
        rm -f "$BOTTLE/drive_c/users/$USER/My Videos"
        ln -s $HOME/Videos "$BOTTLE/drive_c/users/$USER/My Videos"
    fi
}

extract_image() {

    progpid=$(ps -ef | grep "zenity --progress --title=${BOTTLE}" | grep -v grep)
    if [ -n "$progpid" ];then
	    echo "one $BOTTLE app is extracting runtime images too."
	    exit 0
    fi

    7z x "$IMG_ARCHIVE_DIR/files.7z" -o"$IMAGE_PATH" -aoa | progressbar "$BOTTLE" "正在释放环境..."
    cp /usr/bin/dde-file-manager $IMAGE_PATH/usr/bin/dde-file-manager
    rm $IMAGE_PATH/etc/localtime
    ln -s $LOCALTIME $IMAGE_PATH/etc/localtime
    if [ -d $IMAGE_PATH/etc/resolvconf ];then
        rm $IMAGE_PATH/etc/resolvconf
    fi
    if [ -d /etc/resolvconf ];then
    	cp /etc/resolvconf $IMAGE_PATH/etc/ -rf
    fi
    cp /etc/resolv.conf $IMAGE_PATH/etc/
    cp /etc/hosts $IMAGE_PATH/etc/
    echo $IMAGE_VER > $IMAGE_PATH/VERSION
}

get_link_err_nums() {

	find  $IMAGE_PATH -type l ! -exec test -e {} \; -print | wc -l
}

if [ ! -d "$HOME/.deepinwine" ];then
    mkdir -p "$HOME/.deepinwine"
fi

if [ -f $BOTTLE/VERSION ];then
    old_version=`cat $BOTTLE/VERSION`
    if [ "$old_version" != "$NEW_VERSION" ];then
        WINEPREFIX=$BOTTLE $EMU $EMU_ARGS $WINESERVER -k
        rm -rf $BOTTLE
    fi
fi

if [ ! -d $BOTTLE ];then

    7z x "$DEB_PATH/files/files.7z" -o"$BOTTLE" -aoa
    mv "$BOTTLE/drive_c/users/@current_user@" "$BOTTLE/drive_c/users/$USER"
    sed -i "s#@current_user@#$USER#" $BOTTLE/*.reg
    reconstruct_bottle_symlink
    echo $NEW_VERSION > $BOTTLE/VERSION
fi

if [ ! -z "$KUNPENG" ];then
    if [ ! -e $IMAGE_PATH/VERSION ];then
        extract_image
    fi

    OLD_IMAGE_VER=`cat $IMAGE_PATH/VERSION`
    if [ "$OLD_IMAGE_VER" != "$IMAGE_VER" ];then
        extract_image
    fi

    echo "======$(get_link_err_nums)===="
    if [ "$(get_link_err_nums)" -gt "120" ];then
        extract_image
    fi
fi

## mount /data/ dir to geust
if [ -d $IMAGE_PATH ] && [ ! -d $IMAGE_PATH/data ];then
	mkdir $IMAGE_PATH/data
	cp $DEB_PATH/files/exa/vpaths-list $IMAGE_PATH/.exagear
fi

export WINEPREDLL=$DEB_PATH/files/dlls
export ATTACH_FILE_DIALOG=1
export WINEDLLPATH=/opt/deepin-wine6-stable/lib
WINEPREFIX=$BOTTLE $EMU $EMU_ARGS $WINE "$EXE" --disable-gpu &

为确保能够运行,建议在主目录下把  .deepwine下面的Deepin-QQ 目录删除 后重新运行qq就可以了。

回复只看作者
152******21
uos^1
发表于2022-03-28 10:36
19楼
石头

感谢您的分享!com.deepin-wine6-stable.deepin 最新版deepin19环境下也是可以运行QQ的。需要把weixin目录下的一些.so文件复制到QQ目录下,然后移植weixin的run.sh文件来启动QQ。

请教一下,如何移植那个run.sh啊?不可能直接复制吧

回复只看作者
俊生鹏程
uos^2
发表于2022-03-28 10:40
20楼
152******21

请教一下,如何移植那个run.sh啊?不可能直接复制吧

看18楼的方法,run.sh  直接复制代码  把内容替换就行了。 

回复只看作者
1/3
到第

光荣榜

  • 周榜
  • 月榜
  • 总榜