diff --git a/misc/build.func b/misc/build.func index 5c140289..55fc96a8 100644 --- a/misc/build.func +++ b/misc/build.func @@ -3046,7 +3046,12 @@ create_lxc_container() { msg_ok "Template found online: $TEMPLATE" else # Nothing found - offer alternatives - msg_error "No template found for ${PCT_OSTYPE} ${PCT_OSVERSION}" + msg_error "Template not found for ${PCT_OSTYPE} ${PCT_OSVERSION}" + echo "" + echo "This could mean:" + echo " • The version is not yet available in the Proxmox template repository" + echo " • Your Proxmox VE might need an update to access newer templates" + echo " • The version number might be incorrect" mapfile -t AVAILABLE_VERSIONS < <( pveam available -section system 2>/dev/null | @@ -3058,7 +3063,7 @@ create_lxc_container() { if [[ ${#AVAILABLE_VERSIONS[@]} -gt 0 ]]; then echo "" - echo "${BL}Available ${PCT_OSTYPE} versions:${CL}" + msg_info "Available ${PCT_OSTYPE} versions:" for i in "${!AVAILABLE_VERSIONS[@]}"; do echo " [$((i + 1))] ${AVAILABLE_VERSIONS[$i]}" done @@ -3076,11 +3081,16 @@ create_lxc_container() { exit 225 fi else - msg_info "Cancelled" + msg_info "Installation cancelled" exit 0 fi else msg_error "No templates available for ${PCT_OSTYPE}" + echo "" + echo "Please check:" + echo " • Run: pveam update" + echo " • Check network connectivity" + echo " • Verify Proxmox VE version: pveversion" exit 225 fi fi