From 6c7260fa336909c7a9775dcf2f3cb78027e7af3c Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 25 May 2025 13:30:47 +0200 Subject: [PATCH] Added a more humane error message on no initial network (#3501) * Added a more humane error message on no initial network * Fixed ruff complaints --- archinstall/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archinstall/__init__.py b/archinstall/__init__.py index df853bcf..7e086e6e 100644 --- a/archinstall/__init__.py +++ b/archinstall/__init__.py @@ -40,6 +40,11 @@ def _fetch_arch_db() -> None: try: Pacman.run('-Sy') except Exception as e: + error('Failed to sync Arch Linux package database.') + if 'could not resolve host' in str(e).lower(): + error('Most likely due to a missing network connection or DNS issue.') + error('Run archinstall --debug and check /var/log/archinstall/install.log for details.') + debug(f'Failed to sync Arch Linux package database: {e}') exit(1)