RuntimeError: The transaction process has ended abruptly: 无法为仓库 anaconda 找到一个有效的 baseurl
The content is AI-generated and for reference only:
Summary
| Item | Content |
|---|---|
| Error Type | Invalid baseurl for network repository anaconda |
| Root Cause | Missing or unreachable anaconda repository configuration |
| Recommended Solution | Use full ISO for local installation + manually configure domestic mirror source |
| Prevention Measures | Confirm network accessibility before installation; prefer Tsinghua University or Huawei Cloud mirror sources |
Final Recommended Operation Sequence:
- Switch to
openEuler-24.03-LTS-SP3-everything-x86_64-dvd.iso- Ensure
repo.openeuler.orgormirrors.tuna.tsinghua.edu.cnis pingable during installation- If still failing, try Debug mode to manually configure the
.repofile pointing to Tsinghua Mirror
Click here to view detailed analysis and solution
Analysis and Solution for openEuler 24.03-LTS-SP3 Network Installation Failure
Based on your provided screenshot and error log, a critical issue occurred during the network installation of openEuler 24.03-LTS-SP3. Below is a detailed analysis and resolution.
Problem Analysis
The core cause of the installation failure is clearly indicated in the error log:
RuntimeError: The transaction process has ended abruptly: Unable to find a valid baseurl for repository anaconda
libdnf_error.Error: Unable to find a valid baseurl for repository anaconda
This indicates that the Anaconda installer cannot locate a valid baseurl for the anaconda repository, meaning the system failed to identify the correct software source address when attempting to fetch packages over the network.
Although your network connection may appear normal (no “network unreachable” message), the repository configuration within the installation environment is faulty, preventing DNF package manager from completing the software installation process.
Additionally, the stack trace shows the error occurred at:
pyanaconda/modules/payloads/payload/dnf/transaction.py- During the call to
dnf_manager.install_packages()
This confirms the issue lies in the DNF transaction initialization phase, i.e., the installer failed right at the stage of preparing to download packages from the network source.
Possible Causes
Based on the knowledge base and error behavior, possible causes include:
-
Missing or Incorrect Installation Source Configuration- The installation media (ISO) lacks correct repository configuration files (e.g.,
/etc/yum.repos.d/*.repo). - The
baseurlfor theanacondarepository is not correctly pointing to the openEuler mirror site.
- The installation media (ISO) lacks correct repository configuration files (e.g.,
-
Unavailable Network Installation Source- The network installation ISO or boot method points to a non-maintained or non-existent repository address.
- As per knowledge graph data,
openEuler-25.03has already experienced issues with being “not available in Huawei Cloud repository,” indicating potential mirror synchronization delays or path changes in newer versions.
-
Environment Restrictions Causing Repository Load Failure- On certain physical or virtual platforms, DNS resolution, firewall rules, or proxy settings may prevent access to the repository server.
-
Anaconda or DNF Component Abnormality- Although
anaconda 36.16.5is intended for openEuler 24.03-LTS-SP1 (per knowledge graph), compatibility issues may exist after SP3 updates, or the initramfs might be missing essential components (e.g.,python3-dnf).
- Although
Solutions
1. Verify Use of Correct Installation Media
Prioritize using official standard ISO images for installation rather than network boot images to avoid repository address failures.
- Recommended:
openEuler-24.03-LTS-SP3-everything-x86_64-dvd.isooropenEuler-24.03-LTS-SP3-x86_64-dvd.iso - Download URL: https://repo.openeuler.org/
Avoid using unreleased development branches (e.g., openEuler-25.03) as production installation sources.
2. Check and Manually Configure Repository Files (if shell access is available)
If the installation interface allows switching TTYs (e.g., via Debug to enter tty1 or tty2), you can attempt command-line repair:
# Switch to shell (press Ctrl+Alt+F2)
ctrl+alt+f2
# View current repository configuration
cat /etc/yum.repos.d/*.repo
# Check network connectivity
ping repo.openeuler.org
If configuration is incorrect or missing, manually create /etc/yum.repos.d/openEuler.repo:
[base]
name=openEuler-24.03-LTS-SP3 - Base
baseurl=https://repo.openeuler.org/openEuler-24.03-LTS-SP3/OS/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-openEuler
Save and return to the installer to continue.
3. Switch to Domestic Mirror Source (Recommended)
The official openEuler repository is hosted on overseas servers, resulting in slow and unstable access. It is recommended to use Tsinghua University Mirror or Huawei Cloud Mirror.
Update baseurl to:
baseurl=https://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-24.03-LTS-SP3/OS/$basearch/
Or:
baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-24.03-LTS-SP3/OS/$basearch/
Reference: Knowledge graph states that “Tsinghua and Huawei Cloud mirrors are synchronized from the official openEuler source, with identical package content.”
4. Verify Integrity of Python 3 and DNF Components
Anaconda depends on Python 3 and the python3-dnf module. If these components are corrupted or missing, similar errors may occur.
If shell access is available, run:
python3 --version
dnf --version
If these commands fail, manually install key packages (pre-downloaded):
sudo rpm -ivh --force --nodeps python3-dnf-4.16.2-4.oe2403.noarch.rpm
Sample download URLs:
5. Try Local Installation Mode (Bypass Network Source Issues)
If repeated network installation attempts fail, switch to local DVD installation mode:
- Download the complete
EverythingISO (includes all packages). - Boot from this ISO and select “local source” or skip network repository configuration.
- Complete installation, then configure system-level software sources afterward.
References
Using DNF to Manage Packages (Official Documentation)
List of openEuler Repository Sources by Version
Recovery Methods for DNF and YUM Failure
Summary
| Item | Content |
|---|---|
| Error Type | Invalid baseurl for network repository anaconda |
| Root Cause | Missing or unreachable anaconda repository configuration |
| Recommended Solution | Use full ISO for local installation + manually configure domestic mirror source |
| Prevention Measures | Confirm network accessibility before installation; prefer Tsinghua University or Huawei Cloud mirror sources |
Final Recommended Operation Sequence:
- Switch to
openEuler-24.03-LTS-SP3-everything-x86_64-dvd.iso- Ensure
repo.openeuler.orgormirrors.tuna.tsinghua.edu.cnis pingable during installation- If still failing, try Debug mode to manually configure the
.repofile pointing to Tsinghua Mirror
If the issue persists, please provide the full log file (located in /tmp directory under anaconda logs) for deeper analysis.
The issue has been referenced and modified based on openEuler-25.03 network install Network Install ISO cannot identify the fastest source and encounters errors when setting up the base software repository · Issue #IBZV1X · openEuler/community-issue - Gitee.com, and software packages can now be downloaded (1.01 GB).

