[software development] Deepin 20.9已安装docker环境,安装CasaOS失败
Tofloor
poster avatar
leasontsui
deepin
2023-10-26 07:27
Author

我的操作系统是Deepin 20.9,并且已安装docker环境,采用官方网站的一键安装CasaOS失败,使用的命令行如下:

curl -fsSL https://get.casaos.io | sudo bash

报错信息如下:

[ INFO ] Running /tmp/casaos-installer/tmp.hfGmaeUTBB/build/scripts/migration/script.d/06-migrate-app-management.sh...
✅ CURRENT_VERSION: v0.4.4
✅ SOURCE_VERSION: v0.4.4
✅ Migration is not needed.
[ INFO ] Installing CasaOS...
[ INFO ] Running /tmp/casaos-installer/tmp.hfGmaeUTBB/build/scripts/setup/script.d/01-setup-gateway.sh...
/tmp/casaos-installer/tmp.hfGmaeUTBB/build/scripts/setup/script.d/01-setup-gateway.sh: 第 18 行:pushd: Deepin/apricot: 没有那个文件或目录
/tmp/casaos-installer/tmp.hfGmaeUTBB/build/scripts/setup/script.d/01-setup-gateway.sh: 第 20 行:pushd: Deepin: 没有那个文件或目录
[FAILED] Failed to run setup script
leaxx@leaxx-PC:~$

哪位大大帮看看如何解决?

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-10-26 07:30
#1

可能是当前系统不支持这个:https://bbs.deepin.org/phone/post/258470

Reply View the author
leasontsui
deepin
2023-10-26 07:36
#2
阿尼樱奈奈

可能是当前系统不支持这个:https://bbs.deepin.org/phone/post/258470

有考虑官方支持CasaOS吗?

Reply View the author
Ziggy
deepin
2023-10-26 08:00
#3

src有Makefile,可以看看有没有编译安装说明

Reply View the author
DebuggerX
deepin
2023-10-26 17:54
#4

可以试试把下面的命令保存成sh脚本后执行:

sed -e 's/Deepin/debian/g' /etc/os-release | sed -e 's/apricot/bullseye/g' > /tmp/os-release
sudo mv /etc/os-release /etc/os-release-bak
sudo mv /tmp/os-release /etc/os-release
curl -fsSL https://get.casaos.io | sudo bash
sudo cp /etc/os-release-bak /etc/os-release

比如保存成 casaos_deepin.sh

然后执行

bash casaos_deepin.sh

简单来说就是安装过程中把系统伪装成debian。

不过个人不建议在桌面系统,尤其是在deepin上安装这个东西,因为它为了实现一些底层功能而安装了很多组件,有可能造成系统不稳定或损坏,建议还是在全新独立的debian系统下玩。

我自己的话就是几十块钱买了个机顶盒(魔百盒),然后刷成Armbian后来装的,很稳很好用。

Reply View the author
156******05
deepin
2024-01-19 12:03
#5
DebuggerX

可以试试把下面的命令保存成sh脚本后执行:

sed -e 's/Deepin/debian/g' /etc/os-release | sed -e 's/apricot/bullseye/g' > /tmp/os-release
sudo mv /etc/os-release /etc/os-release-bak
sudo mv /tmp/os-release /etc/os-release
curl -fsSL https://get.casaos.io | sudo bash
sudo cp /etc/os-release-bak /etc/os-release

比如保存成 casaos_deepin.sh

然后执行

bash casaos_deepin.sh

简单来说就是安装过程中把系统伪装成debian。

不过个人不建议在桌面系统,尤其是在deepin上安装这个东西,因为它为了实现一些底层功能而安装了很多组件,有可能造成系统不稳定或损坏,建议还是在全新独立的debian系统下玩。

我自己的话就是几十块钱买了个机顶盒(魔百盒),然后刷成Armbian后来装的,很稳很好用。

👍 这个方法确实可以!

Reply View the author