- #!/usr/bin/env bash
- set -euo pipefail
- export DEBIAN_FRONTEND=noninteractive
- SRC=/etc/apt/sources.list.d/debian.sources
- if [[ -f "$SRC" ]]; then
- sed -i 's|http://mirrors.tuna.tsinghua.edu.cn/debian-security|http://deb.debian.org/debian-security|g' "$SRC"
- sed -i 's|http://mirrors.tuna.tsinghua.edu.cn/debian|http://deb.debian.org/debian|g' "$SRC"
- fi
- apt-get update -qq
- apt-get install -y --no-install-recommends gcc g++ make python3 python3-venv python3-pip
- echo "python3=$(command -v python3) $(python3 --version)"
- echo "gcc=$(command -v gcc) $(gcc --version | head -1)"
- echo "INSTALL_OK"
|