huan / docker-wechat

DoChat is a Dockerized WeChat (盒装微信) PC Windows Client for Linux
https://hub.docker.com/r/zixia/wechat
Apache License 2.0
2.25k stars 204 forks source link

standard_init_linux.go:207: exec user process caused "exec format error" #163

Open yuandj opened 2 years ago

yuandj commented 2 years ago
root@raspberrypi:/home/pi# sudo apt update && apt install docker.io
命中:1 http://archive.raspberrypi.org/debian buster InRelease                  
命中:2 http://raspbian.raspberrypi.org/raspbian buster InRelease               
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
有 293 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:
  cgroupfs-mount libintl-perl libintl-xs-perl libmodule-find-perl
  libmodule-scandeps-perl libproc-processtable-perl libsort-naturally-perl
  needrestart runc tini
建议安装:
  docker-doc aufs-tools btrfs-progs debootstrap rinse xfsprogs zfs-fuse
  | zfsutils needrestart-session | libnotify-bin iucode-tool
下列【新】软件包将被安装:
  cgroupfs-mount docker.io libintl-perl libintl-xs-perl libmodule-find-perl
  libmodule-scandeps-perl libproc-processtable-perl libsort-naturally-perl
  needrestart runc tini
升级了 0 个软件包,新安装了 11 个软件包,要卸载 0 个软件包,有 293 个软件包未被升级。
需要下载 41.8 MB 的归档。
解压缩后会消耗 183 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:2 http://archive.raspberrypi.org/debian buster/main armhf docker.io armhf 18.09.1+dfsg1-7.1+rpi1+rpt1 [38.4 MB]
获取:1 http://mirrors.zju.edu.cn/raspbian/raspbian buster/main armhf cgroupfs-mount all 1.4 [6,276 B]
获取:3 http://mirrors.bfsu.edu.cn/raspbian/raspbian buster/main armhf runc armhf 1.0.0~rc6+dfsg1-3 [2,246 kB]
获取:4 http://mirrors.bfsu.edu.cn/raspbian/raspbian buster/main armhf tini armhf 0.18.0-1 [169 kB]
获取:5 http://mirrors.bfsu.edu.cn/raspbian/raspbian buster/main armhf libintl-perl all 1.26-2 [756 kB]
获取:6 http://mirrors.bfsu.edu.cn/raspbian/raspbian buster/main armhf libintl-xs-perl armhf 1.26-2+b3 [38.8 kB]
获取:7 http://mirrors.bfsu.edu.cn/raspbian/raspbian buster/main armhf libmodule-find-perl all 0.13-1 [10.3 kB]
获取:8 http://mirrors.zju.edu.cn/raspbian/raspbian buster/main armhf libmodule-scandeps-perl all 1.27-1 [44.0 kB]
获取:9 http://mirrors.zju.edu.cn/raspbian/raspbian buster/main armhf libproc-processtable-perl armhf 0.56-1 [43.7 kB]
获取:10 http://mirrors.bfsu.edu.cn/raspbian/raspbian buster/main armhf libsort-naturally-perl all 1.03-2 [13.5 kB]
获取:11 http://mirrors.bfsu.edu.cn/raspbian/raspbian buster/main armhf needrestart all 3.4-5 [57.4 kB]
已下载 41.8 MB,耗时 39秒 (1,078 kB/s)                                         
正在选中未选择的软件包 cgroupfs-mount。
(正在读取数据库 ... 系统当前共安装有 176744 个文件和目录。)
准备解压 .../00-cgroupfs-mount_1.4_all.deb  ...
正在解压 cgroupfs-mount (1.4) ...
正在选中未选择的软件包 runc。
准备解压 .../01-runc_1.0.0~rc6+dfsg1-3_armhf.deb  ...
正在解压 runc (1.0.0~rc6+dfsg1-3) ...
正在选中未选择的软件包 tini。
准备解压 .../02-tini_0.18.0-1_armhf.deb  ...
正在解压 tini (0.18.0-1) ...
正在选中未选择的软件包 docker.io。
准备解压 .../03-docker.io_18.09.1+dfsg1-7.1+rpi1+rpt1_armhf.deb  ...
正在解压 docker.io (18.09.1+dfsg1-7.1+rpi1+rpt1) ...
正在选中未选择的软件包 libintl-perl。
准备解压 .../04-libintl-perl_1.26-2_all.deb  ...
正在解压 libintl-perl (1.26-2) ...
正在选中未选择的软件包 libintl-xs-perl。
准备解压 .../05-libintl-xs-perl_1.26-2+b3_armhf.deb  ...
正在解压 libintl-xs-perl (1.26-2+b3) ...
正在选中未选择的软件包 libmodule-find-perl。
准备解压 .../06-libmodule-find-perl_0.13-1_all.deb  ...
正在解压 libmodule-find-perl (0.13-1) ...
正在选中未选择的软件包 libmodule-scandeps-perl。
准备解压 .../07-libmodule-scandeps-perl_1.27-1_all.deb  ...
正在解压 libmodule-scandeps-perl (1.27-1) ...
正在选中未选择的软件包 libproc-processtable-perl。
准备解压 .../08-libproc-processtable-perl_0.56-1_armhf.deb  ...
正在解压 libproc-processtable-perl (0.56-1) ...
正在选中未选择的软件包 libsort-naturally-perl。
准备解压 .../09-libsort-naturally-perl_1.03-2_all.deb  ...
正在解压 libsort-naturally-perl (1.03-2) ...
正在选中未选择的软件包 needrestart。
准备解压 .../10-needrestart_3.4-5_all.deb  ...
正在解压 needrestart (3.4-5) ...
正在设置 runc (1.0.0~rc6+dfsg1-3) ...
正在设置 libmodule-find-perl (0.13-1) ...
正在设置 tini (0.18.0-1) ...
正在设置 libproc-processtable-perl (0.56-1) ...
正在设置 libintl-perl (1.26-2) ...
正在设置 cgroupfs-mount (1.4) ...
正在设置 libsort-naturally-perl (1.03-2) ...
正在设置 libmodule-scandeps-perl (1.27-1) ...
正在设置 needrestart (3.4-5) ...
正在设置 docker.io (18.09.1+dfsg1-7.1+rpi1+rpt1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
正在设置 libintl-xs-perl (1.26-2+b3) ...
正在处理用于 man-db (2.8.5-2) 的触发器 ...
正在处理用于 systemd (241-7~deb10u6+rpi1) 的触发器 ...
root@raspberrypi:/home/pi# curl -sL https://gitee.com/mirrors/dochat/raw/main/dochat.sh | bash

       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|

      https://github.com/huan/docker-wechat

                +--------------+
               /|             /|
              / |            / |
             *--+-----------*  |
             |  |           |  |
             |  |   盒装    |  |
             |  |   微信    |  |
             |  +-----------+--+
             | /            | /
             |/             |/
             *--------------*

      DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

      📦 a Docker image
      🤐 for running PC Windows WeChat
      💻 on your Linux desktop
      💖 by one-line of command

🚀 Pulling the docker image...

3.3.0.115: Pulling from zixia/wechat
bb7d5a84853b: Downloading [===========================>                       ]  30.15MB/54.92MB
6770d884c4ca: Downloading [==============>                        bb7d5a84853b: Extracbb7d5a84853b: Pull complete 
6770d884c4ca: Pull complete 
4492e3431c45: Pull complete 
489a5e619cf1: Pull complete 
dc2b599b494d: Pull complete 
7da118dfd759: Pull complete 
6479dda2349e: Pull complete 
27beeb660306: Pull complete 
fa93418da6b9: Pull complete 
a13e2ecaf1bb: Pull complete 
2c04ee755639: Pull complete 
33710ae13dfe: Pull complete 
bb0b2bc5bbcf: Pull complete 
99432f6e733a: Pull complete 
4d0821f734dc: Pull complete 
Digest: sha256:7b48c45ef1fcd1e164b2def03f7a17775e9d4f409420588dd8bf8ac8b4b02fb4
Status: Downloaded newer image for zixia/wechat:3.3.0.115

🚀 Pulling the docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...

standard_init_linux.go:207: exec user process caused "exec format error"
root@raspberrypi:/home/pi# curl -sL https://gitee.com/mirrors/dochat/raw/main/dochat.sh | bash

       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|

      https://github.com/huan/docker-wechat

                +--------------+
               /|             /|
              / |            / |
             *--+-----------*  |
             |  |           |  |
             |  |   盒装    |  |
             |  |   微信    |  |
             |  +-----------+--+
             | /            | /
             |/             |/
             *--------------*

      DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

      📦 a Docker image
      🤐 for running PC Windows WeChat
      💻 on your Linux desktop
      💖 by one-line of command

🚀 Pulling the docker image...

3.3.0.115: Pulling from zixia/wechat
Digest: sha256:7b48c45ef1fcd1e164b2def03f7a17775e9d4f409420588dd8bf8ac8b4b02fb4
Status: Image is up to date for zixia/wechat:3.3.0.115

🚀 Pulling the docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...

standard_init_linux.go:207: exec user process caused "exec format error"
root@raspberrypi:/home/pi# sudo curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | bash
root@raspberrypi:/home/pi# curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | bash
root@raspberrypi:/home/pi# url -sL https://gitee.com/mirrors/dochat/raw/main/dochat.sh | bash
bash: url:未找到命令
root@raspberrypi:/home/pi# curl -sL https://gitee.com/mirrors/dochat/raw/main/dochat.sh | bash

       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|

      https://github.com/huan/docker-wechat

                +--------------+
               /|             /|
              / |            / |
             *--+-----------*  |
             |  |           |  |
             |  |   盒装    |  |
             |  |   微信    |  |
             |  +-----------+--+
             | /            | /
             |/             |/
             *--------------*

      DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

      📦 a Docker image
      🤐 for running PC Windows WeChat
      💻 on your Linux desktop
      💖 by one-line of command

🚀 Pulling the docker image...

3.3.0.115: Pulling from zixia/wechat
Digest: sha256:7b48c45ef1fcd1e164b2def03f7a17775e9d4f409420588dd8bf8ac8b4b02fb4
Status: Image is up to date for zixia/wechat:3.3.0.115

🚀 Pulling the docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...

standard_init_linux.go:207: exec user process caused "exec format error"
root@raspberrypi:/home/pi# 
yuandj commented 2 years ago

稍微有点失望!加油吧 盒装鲸鱼

huan commented 2 years ago

Currently, we have no simulation for running Win32 binary on ARM (raspberry pi in your case).

However, I think it might be possible by using a cross-platform emulator for the docker container?

Would like to discuss it if there's anyone who has experience with it.

ldgabet commented 1 year ago

It is possible to use DoChat on arm with the dockerfile of this project https://github.com/dirtboll/winebox64 instead of https://github.com/huan/docker-wine It works like a charm.

huan commented 1 year ago

Hi @ldgabet, it would be fantastic for all the users of DoChat to know how to run on ARM!

I would like to accept a PR to implement the ARM version; please feel free to create one if you want to.

Thanks for sharing!

linrol commented 11 months ago

It is possible to use DoChat on arm with the dockerfile of this project https://github.com/dirtboll/winebox64 instead of https://github.com/huan/docker-wine It works like a charm.

基于ARM架构适配的box86+wine实现docker微信机器人,欢迎大佬们参考: https://blog.linrol.cn/archives/1703220186416

huan commented 11 months ago

@linrol Fantastic work, congratulations!