When running sudo pacman -Syu
, I get:
error: config file /etc/pacman.d/mirrorlist # ← Critical line (NO trailing #!) could not be read: No such file or directory
The mirrorlist file exists and contains valid mirrors (see below).
Mirrorlist Contents
# Manjaro Linux default mirrorlist
# Generated on 2025-04-03
Server = https://ftp.lysator.liu.se/pub/manjaro/stable/$repo/$arch
Server = https://ziply.mm.fcix.net/manjaro/stable/$repo/$arch
... (other mirrors)
I tried regenerating mirrors, verified file permissions -rw-r--r-- 1 root root
(644) and also reinstalled pacman and mirrorlist. No effect.
System Information
OS: Manjaro Linux (stable) x86_64
Kernel: 6.12.19-1-MANJARO
Desktop: KDE Plasma 6.3.3
Host: Dell Inspiron 15 3511 (UEFI v1.28.0)
CPU: 11th Gen Intel Core i5-1135G7 (8) @ 4.20GHz
GPU: Intel Iris Xe Graphics (Tiger Lake GT2)
RAM: 8 GiB
Storage:
- NVMe: WD PC SN530 256GB (LUKS-encrypted ext4 root)
- Usage: 102.78 GiB / 238.47 GiB (43%)
Network:
- Wireless: Realtek RTL8821CE
- Bluetooth: Realtek Bluetooth Radio
Audio: Intel Tiger Lake-LP Smart Sound Audio
Packages:
- Pacman: 6.1.0
- Flatpak: 21
What could prevent pacman
from reading a valid mirrorlist?