Pacman errors after merging .pacnew

/etc/pacman.conf.pacnew was created during this update to remove community repository configuration because community repository packages have been moved to extra repository

There are 3 warnings about ‘community’ (line 88, 92 and 93) but configuration of community repository would usually be 2 consecutive lines
Error message that community database is already registered suggests configuration of community repository has been duplicated instead of being removed

Please post contents of pacman.conf

cat /etc/pacman.conf

configuration of repositories should look like this:

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

[multilib]
Include = /etc/pacman.d/mirrorlist

delete configuration for community repository if it has not been removed already

[community]
Include = /etc/pacman.d/mirrorlist