I have the same issue, The issue arised after updating my package keys. I did sudo pacman -Sy archlinux-keyring chaotic-keyring .
the output showed to check and merge the .pacnew files. I merged the files using mv . And after that I tried pacman -Syu and got this error.
That was not a good choice. You actually overwrote the old setting with the new. Blind eyes. Instead of merging them.
Also an idea, maybe you unwillingly moved the pacman.conf into the pacman.confnew, instead of the contrary, so basically lost any config?
Thanks for the suggestion. Will keep it in mind. I used mv as the forum instructing the manual intervention for pacman 6 update did the same. Also I don't know other ways to do it . Linux noob here .
I checked whether I moved the files , the other way around, but that does not seem to be the case.
I do it with sudo -H DIFFPROG=kompare pacdiff (meld instead of compare is also fine of course).
mv is OK, but you’ll need to know what to add or change after.
Good idea, to go back to the long pacman 6 topic, because there you’ll find many examples and screenshots of the needed configuration.
For example, if you moved pacman.conf.pacnew into pacman.conf you’ll have lost at the end:
[chaotic-aur]
Include = /etc/pacman.d/chaotic-mirrorlist