This commit is contained in:
2023-12-14 20:01:43 +08:00
parent 70b9d7dd03
commit de8d5981a5
4 changed files with 135 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ GO_VERSION="1.21.4"
SINGULARITY_VERSION="4.0.2"
GO_URL="https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz"
GO_ARCHIVE="/tmp/go${GO_VERSION}.linux-amd64.tar.gz"
SINGULARITY_URL="https://github.com/sylabs/singularity/releases/download/v${SINGULARITY_VERSION}/singularity-ce-${SINGULARITY_VERSION}.tar.gz"
SINGULARITY_URL="https://mirror.ghproxy.com/https://github.com/sylabs/singularity/releases/download/v${SINGULARITY_VERSION}/singularity-ce-${SINGULARITY_VERSION}.tar.gz"
SINGULARITY_ARCHIVE="/tmp/singularity-ce-${SINGULARITY_VERSION}.tar.gz"
SINGULARITY_DIR="singularity"
@@ -16,13 +16,13 @@ install_dependencies() {
# 在这里添加Deepin 23的依赖安装命令
echo "安装Deepin 23依赖"
sudo apt-get update
sudo apt-get install -y autoconf automake cryptsetup git libfuse-dev libglib2.0-dev libseccomp-dev libtool pkg-config runc squashfs-tools uidmap wget zlib1g-dev
wget http://ftp.hk.debian.org/debian/pool/main/s/squashfs-tools-ng/squashfs-tools-ng_1.2.0-1_amd64.deb
wget http://ftp.hk.debian.org/debian/pool/main/s/squashfs-tools-ng/libsquashfs1_1.2.0-1_amd64.deb
sudo dpkg -i ./libsquashfs1_1.2.0-1_amd64.deb
sudo dpkg -i ./squashfs-tools-ng_1.2.0-1_amd64.deb
rm ./libsquashfs1_1.2.0-1_amd64.deb
rm ./squashfs-tools-ng_1.2.0-1_amd64.deb
sudo apt-get install -y autoconf automake cryptsetup git libfuse-dev libglib2.0-dev libseccomp-dev libtool pkg-config runc squashfs-tools squashfs-tools-ng uidmap wget zlib1g-dev
# wget http://ftp.hk.debian.org/debian/pool/main/s/squashfs-tools-ng/squashfs-tools-ng_1.2.0-1_amd64.deb
# wget http://ftp.hk.debian.org/debian/pool/main/s/squashfs-tools-ng/libsquashfs1_1.2.0-1_amd64.deb
# sudo dpkg -i ./libsquashfs1_1.2.0-1_amd64.deb
# sudo dpkg -i ./squashfs-tools-ng_1.2.0-1_amd64.deb
# rm ./libsquashfs1_1.2.0-1_amd64.deb
# rm ./squashfs-tools-ng_1.2.0-1_amd64.deb
elif [[ -f /etc/debian_version ]]; then
# Debian/Ubuntu 系统依赖安装
sudo apt-get update
@@ -109,4 +109,4 @@ interactive_menu() {
esac
}
interactive_menu
interactive_menu