官方文档给出的安装方法是先安装各种依赖,再从源代码编译,属实麻烦。事实上,官方的github可以下载到deb包,通过deb包安装无比方便快捷
首先下载deb包 Releases · sylabs/singularity · GitHub,根据你的系统版本自行选择
然后进入deb包所在的文件夹,三行代码搞定
# cd /directory/of/deb/file
sudo apt update
sudo apt install runc cryptsetup-bin # dependencies
sudo dpkg -i singularity-ce_3.10.4-jammy_amd64.deb