[Topic discussion] 玲珑应用似乎无法在主目录有软链接时启动
Tofloor
poster avatar
神末shenmo
deepin
Spark-App
2024-05-14 22:56
Author
shenmo@shenmo-PC:~$ ll-cli run org.deepin.browser 
(60247) ./libs/linglong/src/linglong/runtime/container.cpp:133 duplicate environment has been detected: [ original: "HOME=/home/shenmo" user: "HOME=/home/shenmo" ], choose original.
(60247) ./libs/linglong/src/linglong/runtime/container.cpp:133 duplicate environment has been detected: [ original: "XAUTHORITY=/home/shenmo/.Xauthority" user: "XAUTHORITY=/home/shenmo/.Xauthority" ], choose original.
(60247) ./libs/linglong/src/linglong/runtime/container.cpp:133 duplicate environment has been detected: [ original: "XDG_DATA_HOME=/home/shenmo/.local/share" user: "XDG_DATA_HOME=/home/shenmo/.local/share" ], choose original.
(60247) ./libs/linglong/src/linglong/runtime/container.cpp:133 duplicate environment has been detected: [ original: "XDG_RUNTIME_DIR=/run/user/1000" user: "XDG_RUNTIME_DIR=/run/user/1000" ], choose original.
2024-05-14T14:55:46.134042Z: creating `/home/shenmo/.deepinwine`: openat2 `home/shenmo/.deepinwine`: No such file or directory                                                                                          
Error: CODE=-1
./libs/linglong/src/linglong/runtime/container.cpp:232 run container bWFpbjpvcmcuZGVlcGluLmJyb3dzZXIvNi41LjMuMS94ODZfNjQte2I2YmJmYWUyLWNlZTQtNGIwOS1iZjNkLTUwMDBkMDYwZmQ5NX0=: cli run: run command failed: /usr/bin/crun --cgroup-manager=disabled run -b /run/user/1000/linglong/bWFpbjpvcmcuZGVlcGluLmJyb3dzZXIvNi41LjMuMS94ODZfNjQte2I2YmJmYWUyLWNlZTQtNGIwOS1iZjNkLTUwMDBkMDYwZmQ5NX0= bWFpbjpvcmcuZGVlcGluLmJyb3dzZXIvNi41LjMuMS94ODZfNjQte2I2YmJmYWUyLWNlZTQtNGIwOS1iZjNkLTUwMDBkMDYwZmQ5NX0= retval=256

shenmo@shenmo-PC:~$ file ~/.deepinwine
/home/shenmo/.deepinwine: symbolic link to /media/shenmo/XDATA/WINE-APPS/deepinwine/

Reply Favorite View the author
All Replies
comix
deepin
2024-05-15 14:12
#1

看样子是挂载路径出的问题,现在还能复现吗?如果能的话/run/user/UID/linglong/ContainerID/config.json这个文件里的内容是什么呢?

ContainerID用ll-cli ps来看

Reply View the author
神末shenmo
deepin
Spark-App
2024-05-15 14:16
#2
comix

看样子是挂载路径出的问题,现在还能复现吗?如果能的话/run/user/UID/linglong/ContainerID/config.json这个文件里的内容是什么呢?

ContainerID用ll-cli ps来看

图片.png

Reply View the author
神末shenmo
deepin
Spark-App
2024-05-15 14:16
#3
comix

看样子是挂载路径出的问题,现在还能复现吗?如果能的话/run/user/UID/linglong/ContainerID/config.json这个文件里的内容是什么呢?

ContainerID用ll-cli ps来看

容器无法启动

Reply View the author
神末shenmo
deepin
Spark-App
2024-05-15 14:16
#4
comix

看样子是挂载路径出的问题,现在还能复现吗?如果能的话/run/user/UID/linglong/ContainerID/config.json这个文件里的内容是什么呢?

ContainerID用ll-cli ps来看

图片.png

Reply View the author
comix
deepin
2024-05-15 14:21
#5

linglong的版本是多少?我尝试复现一下

Reply View the author
神末shenmo
deepin
Spark-App
2024-05-15 14:23
#6
comix

linglong的版本是多少?我尝试复现一下

图片.png

Reply View the author
会飞的鱼11
deepin developers team
2024-05-17 11:42
#7

已经在linglong 1.5.2修复了此问题, 请升级后再试试!

Reply View the author
wupluspro
deepin
2024-05-23 17:59
#8
会飞的鱼11

已经在linglong 1.5.2修复了此问题, 请升级后再试试!

您好,我在打包的时候也出现了这个问题,使用的是1.5.2-1版本

*han@han-vmware:~/Downloads/linglong_package$ sudo apt show linglong-bin
Package: linglong-bin
Version: 1.5.2-1
Priority: optional
Section: admin
Source: linglong
Maintainer: Deepin Packages Builder 
Installed-Size: 4,428 kB
Depends: desktop-file-utils, erofsfuse, libglib2.0-bin, crun, ostree, shared-mime-info, init-system-helpers (>= 1.52), systemd | systemd-standalone-sysusers | systemd-sysusers, libc6 (>= 2.38), libdocopt0, libgcc-s1 (>= 3.0), libglib2.0-0 (>= 2.75.3), libostree-1-1 (>= 2017.6), libqt5core5a (>= 5.15.1), libqt5dbus5 (>= 5.0.2), libqt5gui5 (>= 5.0.2) | libqt5gui5-gles (>= 5.0.2), libqt5network5 (>= 5.8.0), libstdc++6 (>= 13.1), libsystemd0, libyaml-cpp0.7 (>= 0.7.0)
Conflicts: linglong-dbus-pro*xy
Replaces: linglong-dbus-pro*xy
Homepage: http://www.deepin.org
Download-Size: 833 kB
APT-Manual-Installed: no
APT-Sources: https://community-packages.deepin.com/beige beige/main amd64 Packages
Description: Linglong package manager.
 Linglong package management command line tool.

N: 有 1 条附加记录。请加上 ‘-a’ 参数来查看它们
han@han-vmware:~/Downloads/linglong_package$ ll-cli run com.github.zegarek.linyaps
(97865) ./libs/linglong/src/linglong/runtime/container.cpp:135 duplicate environment has been detected: [ original: "HOME=/home/han" user: "HOME=/home/han" ], choose original.
(97865) ./libs/linglong/src/linglong/runtime/container.cpp:135 duplicate environment has been detected: [ original: "XDG_DATA_HOME=/home/han/.local/share" user: "XDG_DATA_HOME=/home/han/.local/share" ], choose original.
(97865) ./libs/linglong/src/linglong/runtime/container.cpp:135 duplicate environment has been detected: [ original: "XDG_RUNTIME_DIR=/run/user/1000" user: "XDG_RUNTIME_DIR=/run/user/1000" ], choose original.
/lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_uri_ref
could not load: libgobject-2.0.so.0
Error: CODE=-1
./libs/linglong/src/linglong/runtime/container.cpp:234 run container bWFpbjpjb20uZ2l0aHViLnplZ2FyZWsubGlueWFwcy8wLjQuNS4wL3g4Nl82NC17MjYzYzI1MjktOGRkOS00MzFjLTg0NDAtMTg2MGJlYWVmY2UyfQ==: cli run: run command failed: /usr/bin/crun --cgroup-manager=disabled run -b /run/user/1000/linglong/bWFpbjpjb20uZ2l0aHViLnplZ2FyZWsubGlueWFwcy8wLjQuNS4wL3g4Nl82NC17MjYzYzI1MjktOGRkOS00MzFjLTg0NDAtMTg2MGJlYWVmY2UyfQ== bWFpbjpjb20uZ2l0aHViLnplZ2FyZWsubGlueWFwcy8wLjQuNS4wL3g4Nl82NC17MjYzYzI1MjktOGRkOS00MzFjLTg0NDAtMTg2MGJlYWVmY2UyfQ== retval=256
Reply View the author