From the QEMU install logs: Debian 12 succeeded, Ubuntu 24.04 and Fedora 42 failed. Ubuntu (install_debian_dependency.sh): - apt failed with "Could not get lock" (cloud-init/unattended-upgrades hold it on first boot) -> all apt-get calls now use DPkg::Lock::Timeout=600 so apt waits for the lock. - "postgis" is not a package on Ubuntu 24.04, so the postgresql line exited 1 before installing build-essential -> no C compiler -> pyenv could not build Python 3.12.10. PostGIS is now best-effort (tries postgis, then postgresql-postgis) and never aborts; postgresql-contrib is added. Fedora (new install_fedora_dependency.sh, wired into install_dev.sh): - install_dev.sh dispatched Fedora to the apt script; it now has a fedora / ID_LIKE branch calling a dnf-based dependency installer (dev tools, postgresql-server + initdb, pyenv build deps, node, etc.), using --refresh --skip-unavailable to tolerate mirror/name issues. Bootstrap (todo.py): the dnf "curl git make" install hit a GPG/checksum failure on a fresh image; it now uses --refresh and retries after "dnf clean all". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
33 lines
1.7 KiB
Bash
Executable file
33 lines
1.7 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [[ "${OSTYPE}" == "linux-gnu" ]]; then
|
|
source /etc/os-release
|
|
if [[ "${ID}" == "ubuntu" ]]; then
|
|
if [[ "${VERSION_ID}" == "18.04" || "${VERSION_ID}" == "20.04" || "${VERSION_ID}" == "22.04" || "${VERSION_ID}" == "22.10" || "${VERSION_ID}" == "23.04" || "${VERSION_ID}" == "23.10" || "${VERSION_ID}" == "24.04" || "${VERSION_ID}" == "25.04" || "${VERSION_ID}" == "25.10" ]]; then
|
|
echo "\n---- linux-gnu installation process started ----"
|
|
./script/install/install_debian_dependency.sh
|
|
else
|
|
echo "Your version is not supported, only support 18.04, 20.04 and 22.04 - 24.04, 25.04, 25.10 : ${VERSION_ID}"
|
|
fi
|
|
elif [[ "${ID}" == "linuxmint" ]]; then
|
|
if [[ "${VERSION_ID}" == "22.3" ]]; then
|
|
echo "\n---- linux-gnu installation process started ----"
|
|
./script/install/install_debian_dependency.sh
|
|
else
|
|
echo "Your version is not supported, only support 22.3 : ${VERSION_ID}"
|
|
fi
|
|
elif [[ "${ID}" == "debian" ]]; then
|
|
./script/install/install_debian_dependency.sh
|
|
elif [[ "${ID}" == "arch" ]]; then
|
|
./script/install/install_arch_linux.sh
|
|
elif [[ "${ID}" == "fedora" || "${ID_LIKE}" == *"fedora"* || "${ID_LIKE}" == *"rhel"* ]]; then
|
|
echo "\n---- Fedora installation process started ----"
|
|
./script/install/install_fedora_dependency.sh
|
|
else
|
|
./script/install/install_debian_dependency.sh
|
|
echo "Your Linux system is not supported, only support Ubuntu 18.04 or Ubuntu 20.04 or Ubuntu 22.04 - Ubuntu 23.10 - Ubuntu 24.04, Ubuntu 25.04, Ubuntu 25.10, Debian, Fedora, Arch."
|
|
fi
|
|
elif [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
echo "\n---- Darwin installation process started ----"
|
|
./script/install/install_OSX_dependency.sh
|
|
fi
|