Can't edit pacman.conf

Are you trying to edit it using a graphical editor or a cli editor?
You need root privileges to edit pacman.conf file.
If you want to edit it using nano use:

sudo nano /etc/pacman.conf

and then make changes and save the file.

2 Likes