OpenClaw安装
环境准备
curl -fsSL https://gitee.com/luckystarry/openclaw-install/raw/master/install.sh | bash小米https://platform.xiaomimimo.com/#/docs/integration/open-claw
https://www.huaweicloud.com/special/nodesource-jingxiang.html
curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
deb https://repo.huaweicloud.com/nodesource/node_22.x stretch main
deb-src https://repo.huaweicloud.com/nodesource/node_22.x stretch mainbash
curl -sL https://deb.nodesource.com/setup_22.x | sudo bash -
cat /etc/apt/sources.list.d/nodesource.sources
sudo apt-get install -y nodejs加速镜像
https://mirrors.ustc.edu.cn/help/nodesource.html
下载WSL
https://github.com/microsoft/WSL/releases
http://10.177.11.188:9000/ai-registry/wsl/wsl.2.6.3.0.x64.msi
http://10.177.11.188:9000/ai-registry/wsl/ubuntu-24.04.4-wsl-amd64.wsllsb_release --all换加速源
国内主要的Ubuntu镜像源包括:
- 阿里云镜像:mirrors.aliyun.com/ubuntu/
- 清华大学镜像:mirrors.tuna.tsinghua.edu.cn/ubuntu/
- 中科大镜像:mirrors.ustc.edu.cn/ubuntu/
- 华为云镜像:mirrors.huaweicloud.com/ubuntu/
- 腾讯云 http://mirrors.tencentyun.com/ubuntu/
首先查看配置文件地址
cat /etc/apt/sources.list
# Ubuntu sources have moved to /etc/apt/sources.list.d/ubuntu.sources
1、备份配置文件:
sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.bak
2、修改sources.list文件,将http://archive.ubuntu.com和http://security.ubuntu.com替换成http://mirrors.huaweicloud.com,可以参考如下命令:
sudo sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list.d/ubuntu.sources
sudo sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list.d/ubuntu.sources
3、执行apt-get update更新索引