Table of Contents
碍于飞腾硬件只能用神秘麒麟,虽然软件生态近似Debian但是还是很不方便,记录一下安装CasaOS的折腾过程。
软件版本
系统
Linux ft2k 6.6.0-17-generic #1ok2-KYLINOS SMP PREEMPT_DYNAMIC Mon Aug 18 08:43:43 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux自己安装的docker,该版本麒麟使用debian12相同方法安装即可
Client: Docker Engine - Community Version: 28.5.0 API version: 1.51 Go version: go1.24.7 Git commit: 887030f Built: Thu Oct 2 14:55:37 2025 OS/Arch: linux/arm64 Context: default
Server: Docker Engine - Community Engine: Version: 28.5.0 API version: 1.51 (minimum version 1.24) Go version: go1.24.7 Git commit: cd04830 Built: Thu Oct 2 14:55:37 2025 OS/Arch: linux/arm64 Experimental: false containerd: Version: v1.7.28 GitCommit: b98a3aace656320842a23f4a392a33f46af97866 runc: Version: 1.3.0 GitCommit: v1.3.0-0-g4ca628d1 docker-init: Version: 0.19.0 GitCommit: de40ad0步骤
- 拿到CasaOS部署脚本
wget -qO- https://get.casaos.io > install.sh- 编辑一下镜像源,如果网络环境好或者能正确识别国内网络环境可以跳过这一步
vim install.shline 103
REGION="UNKNOWN"
改为
REGION="China"
line 190
REGION=$(${sudo_cmd} curl --connect-timeout 2 -s ipconfig.io/country || echo "")
整行删除
- 修改
os-release为debian12防止脚本push阶段出错
备份
sudo cp /etc/os-release /etc/os-release.bak替换
sudo sh -c 'cat > /etc/os-release << "EOF"PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"NAME="Debian GNU/Linux"VERSION_ID="12"VERSION="12 (bookworm)"VERSION_CODENAME=bookwormID=debianHOME_URL="https://www.debian.org/"SUPPORT_URL="https://www.debian.org/support"BUG_REPORT_URL="https://bugs.debian.org/"EOF'装完了记得换回去
- 直接跑安装就可以了
sudo bash install.sh效果展示