ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2问题解决以及localsentd软件在Ubuntu兼容层的安装
ELF interpreter /lib64/ld-linux-x86-64.so.2 not found不知道怎么回事Ubuntu兼容层突然出了问题执行命令报错ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2尝试把另一个发行版里面的ld-linux-x86-64.so.2文件cp过来报错skywalkfb98:~ $ sudo cp /compat/linux/lib64/ld-linux-x86-64.so.2 /compat/ubuntu/lib64/ld-linux-x86-64.so.2报错信息*** stack smashing detected ***: terminatedAbort trap (core dumped)后来还是在Ubuntu系统里找到了文件做了个ln连接过去lrwxr-xr-x 1 root root 44 Jul 22 09:07 /lib64/ld-linux-x86-64.so.2 - ../lib/x86_64-linux-gnu/ld-linux-x86-64.so.2现在正常了运行localsend报错在FreeBSD的ubuntu兼容环境下运行localsend报错rootfb98:/bin# localsend_applocalsend_app: error while loading shared libraries: libayatana-appindicator3.so.1: cannot open shared object file: No such file or directoryrootfb98:/bin# apt install -fReading package lists... DoneBuilding dependency tree... DoneReading state information... Done0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.1 not fully installed or removed.After this operation, 0 B of additional disk space will be used.E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)Setting up snapd (2.76ubuntu22.04.1) ...unable to set CAP_SETFCAP effective capability: Operation not permitteddpkg: error processing package snapd (--configure):installed snapd package post-installation script subprocess returned error exitstatus 1Errors were encountered while processing:snapdE: Sub-process /usr/bin/dpkg returned an error code (1)缺少依赖库的问题缺少依赖库localsend_app需要libayatana-appindicator3-1但该库未安装。安装上它apt-get install -y libayatana-appindicator3-1好了现在报错变成这样了rootfb98:/# localsend_app(localsend_app:18200): Gtk-WARNING **: 14:00:05.991: cannot open display:rootfb98:/# localsend_app :0翻看以前的记录在FreeBSD系统使用chroot进入Ubuntu仿真环境使用Localsend软件发送和接受文件_软件包 gir1.2-appindicator3-0.1 没有可安装候选-CSDN博客用这句export DISPLAY:0但是这次不行啊明白了还需要在宿主机里设置xhost local:可以启动了现在启动之后程序显示No GL implementation is available安装缺失的 Linux 图形库在 Chroot 环境内部LocalSend 需要 Linux 版本的 Mesa OpenGL 库。即使 FreeBSD 宿主机有 MesaChroot 内的 Ubuntu 环境也需要自己的副本。在 Chroot 内部执行bashapt-get updateapt-get install -y libgl1-mesa-glx libegl1-mesa libglx0 libdrm2 libgbm1现在启动有新的报错No available configurations for the given RGBA pixel format在 FreeBSD 的 Linux 兼容层中这通常意味着 Mesa 库缺失、DRM 设备未映射 或 X11 转发配置不完整。请按照以下步骤逐步解决1. 安装缺失的 Mesa OpenGL 库LocalSend 基于 Flutter需要完整的 OpenGL 支持。Chroot 环境中可能缺少必要的 Mesa 库。在 Chroot 内部执行apt-get update apt-get install -y libgl1-mesa-glx libegl1-mesa libglx0 libdrm2 libgbm1 libwayland-client0问题未解决先搁置