From 4a2c282d70450684cebc83cb5d142a8a55817789 Mon Sep 17 00:00:00 2001 From: rbk_hic Date: Sun, 9 Nov 2025 00:44:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BA=86uv=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根上次仅限Termux部署的一样,主要报错多数出现在一件脚本,于是再次添加,这次听取@Sjshi763的建议,采取了md格式 --- deploy/astrbot/community-deployment.md | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/deploy/astrbot/community-deployment.md b/deploy/astrbot/community-deployment.md index 220633a..2acf261 100644 --- a/deploy/astrbot/community-deployment.md +++ b/deploy/astrbot/community-deployment.md @@ -17,3 +17,30 @@ wget -qO- https://raw.githubusercontent.com/zhende1113/Antlia/refs/heads/main/Sc ``` 仓库地址:[zhende1113/Antlia](https://github.com/zhende1113/Antlia/) + +## Termux部署报错解决方案 + +>如果出现了 `[WARN] uv sync 失败,重试 2/3 + × Failed to build astrbot @ file:///root/ + ├─▶ Failed to install requirements from build-system.requires + ├─▶ Failed to install build dependencies + ├─▶ Failed to install: trove_classifiers-2025.9.11.17-py3-none-any.whl + │ (trove-classifiers==2025.9.11.17) + ╰─▶ failed to hardlink file from + /root/.cache/uv/archive-v0/10gPuxc61Audvy1Eg6SFz/trove_classifiers/.l2s.__init__.py0001 + to + /root/.cache/uv/builds-v0/.tmp2lFVJx/lib/python3.10/site-packages/trove_classifiers/.l2s.__init__.py0001: + Operation not permitted (os error 1) + +可以先运行以下命令,然后再重新启动 + +>仅限Termux部署环境使用! +>仅限Termux部署环境使用! +>仅限Termux部署环境使用! + +>```bash +>echo 'export UV_LINK_MODE=copy' >> ~/.bashrc +>``` +>```bash +>source ~/.bashrc +>``` From 5bc31f1eb7bd3334d22017b7916b881126e295f2 Mon Sep 17 00:00:00 2001 From: rbk_hic Date: Sun, 9 Nov 2025 00:46:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E4=B8=BAmd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 这次听取@Sjshi763的建议,把我提交的内容采取了md格式 --- deploy/astrbot/termux.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy/astrbot/termux.md b/deploy/astrbot/termux.md index 10d2ba1..3e3c189 100644 --- a/deploy/astrbot/termux.md +++ b/deploy/astrbot/termux.md @@ -143,9 +143,10 @@ uv run main.py >export UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple" >``` ->[!TIP] +## 报错解决方案 + >如果出现了 `[WARN] uv sync 失败,重试 2/3 - × Failed to build astrbot @ file:///root/AstrBot + × Failed to build astrbot @ file:///root/ ├─▶ Failed to install requirements from build-system.requires ├─▶ Failed to install build dependencies ├─▶ Failed to install: trove_classifiers-2025.9.11.17-py3-none-any.whl @@ -155,7 +156,8 @@ uv run main.py to /root/.cache/uv/builds-v0/.tmp2lFVJx/lib/python3.10/site-packages/trove_classifiers/.l2s.__init__.py0001: Operation not permitted (os error 1) -` 可以先运行以下命令,然后再重新启动 + +可以先运行以下命令,然后再重新启动 >```bash >echo 'export UV_LINK_MODE=copy' >> ~/.bashrc