Why do you receive error message "Failed to prepare repositories"?

This article applies to all Sandbox versions

Issue: While installing the Sandbox, the installer fails at the “prepare repositories” step with:

HTML
Copy

Even though the system has internet access and the repos are functional.

Cause

The script install.sh uses dnf check-update to verify repositories. However, this command returns:

  • 0: No updates available (success)
  • 100: Updates available (still success)
  • >1: Real error

The script only treats 0 as success, so it fails when updates are available (100).

Solution

Ensure that you have followed these steps before running the installer:

Step 1: Install EPEL (if needed)

HTML
Copy

Step 2: (Optional) Create sandbox user

HTML
Copy

Step 3: Install tools like 7zip

HTML
Copy

(Optional) Fix the script logic to allow both 0 and 100:

HTML
Copy

Result:

If you require further assistance, please follow these instructions on How to Create Support Package?, before creating a support case or chatting with our support engineer.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard