| 49 | |
| 50 | |
| 51 | def _fetch_arch_db() -> bool: |
| 52 | info('Fetching Arch Linux package database...') |
| 53 | try: |
| 54 | Pacman.run('-Sy') |
| 55 | except Exception as e: |
| 56 | error('Failed to sync Arch Linux package database.') |
| 57 | if 'could not resolve host' in str(e).lower(): |
| 58 | error('Most likely due to a missing network connection or DNS issue.') |
| 59 | |
| 60 | error('Run archinstall --debug and check /var/log/archinstall/install.log for details.') |
| 61 | |
| 62 | debug(f'Failed to sync Arch Linux package database: {e}') |
| 63 | return False |
| 64 | |
| 65 | return True |
| 66 | |
| 67 | |
| 68 | def _list_scripts() -> str: |