FAQ
3.0.0
Search this version
FAQ
FAQ
General
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Why do you receive error message "Failed to prepare repositories"?
Copy Markdown
Open in ChatGPT
Open in Claude
This article applies to all Sandbox versions
Issue: While installing the Sandbox, the installer fails at the “prepare repositories” step with:
HTML
7
7
1
......2
grub2-tools-extra.x86_64 1:2.06-90.el93
grub2-tools-efi.x86_64 1:2.06-90.el94
libldb.x86_64 2.4.1-1.el95
libldb.x86_64 2.6.1-1.el96
[FAIL] Failed to prepare repositories.7
ExitingEven 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
1
1
1
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -yStep 2: (Optional) Create sandbox user
HTML
2
2
1
sudo useradd --create-home sandbox2
sudo passwd -l sandboxStep 3: Install tools like 7zip
HTML
2
2
1
sudo dnf update -y2
sudo dnf install p7zip -y(Optional) Fix the script logic to allow both 0 and 100:
HTML
x
8
8
1
dnf check-update ${DNF_OPTIONS}2
result=$?3
4
if [ "$result" -eq 0 ] || [ "$result" -eq 100 ]; then5
success "Successfully prepared repositories"6
else7
fatal "Failed to prepare repositories."8
fiResult:

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
Last updated on
Was this page helpful?
Next to read:
How to disable a Threat Indicator?See the "Technical Datasheet" for a complete list of features: https://docs.opswat.com/filescan/datasheet/technical-datasheet
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
On This Page
Why do you receive error message "Failed to prepare repositories"?CauseSolutionEnsure that you have followed these steps before running the installer:Step 1: Install EPEL (if needed)Step 2: (Optional) Create sandbox userStep 3: Install tools like 7zip(Optional) Fix the script logic to allow both 0 and 100:Result: