d2mcpp
d2mcpp copied to clipboard
安装xlings失败 - chown: invalid user: ‘nil’
oot@0bf4d85e44eb:~/pg# curl -fsSL https://d2learn.org/xlings-install.sh | bash
__ __ _ _
\ \ / / | | (_) pre-v0.0.4
\ V / | | _ _ __ __ _ ___
> < | | | || '_ \ / _ |/ __|
/ . \ | |____| || | | || (_| |\__ \
/_/ \_\ |______|_||_| |_| \__, ||___/
__/ |
|___/
repo: https://github.com/d2learn/xlings
forum: https://forum.d2learn.org
---
Testing network...
Latency for github.com : 83.413 ms
Latency for gitee.com : 39.497 ms
Downloading xlings...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 119k 0 119k 0 0 141k 0 --:--:-- --:--:-- --:--:-- 141k
Extracting files...
Running install.unix.sh...
[xlings]: start detect environment and try to auto config...
[xlings]: start install xmake...
[xlings]: remove /home/xlings/.xlings - ok
[xlings]: xlings uninstalled - ok
[xlings]: create xlings home dir /home/xlings
chown: invalid user: ‘nil’
error: exec(/usr/bin/sudo env PATH="/opt/buildtools/lcov-1.16/bin:/opt/buildtools/python3.11.4/bin:/root/.cursor-server/bin/5c17eb2968a37f66bc6662f48d6356a100b67be0/bin/remote-cli:/root/.cursor-server/bin/5c17eb2968a37f66bc6662f48d6356a100b67be0/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" XMAKE_STATS= COLORTERM="truecolor" chown nil /home/xlings) failed(1)
tools/install.unix.sh: line 65: xlings: command not found
[xlings]: xlings installed
run [ xlings help ] get more information
after restart cmd/shell to refresh environment
Cleaning up...
Removing /root/pg/.xlings_software_install(tmpfiles)...
Installation completed!
root@0bf4d85e44eb:~/pg# xlings install d2x:mcpp-standard
bash: xlings: command not found
root@0bf4d85e44eb:~/pg# ls /home/xlings/
root@0bf4d85e44eb:~/pg#
如题,安装xlings失败,环境 docker 下 Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic
可能是在root用户下的原因
目前修复已经合入
- https://github.com/d2learn/xlings/pull/121
可以在重新运行安装命令试一试
一般重新安装会自动覆盖老版本, 万一因有安装失败的旧版本导致重新安装失败, 可以参考下面解决方法
- http://forum.d2learn.org/post/663
状态更新
修复已合入:d2learn/xlings#121
如果安装时遇到旧版本残留导致的覆盖失败,可参考此清理方法: http://forum.d2learn.org/post/663
暂未发现其它新的复现报告,本 issue 先关闭并标记为 完成。 @AaronSong321 后续若再次遇到,请直接 reopen 或新开 issue。