Tips: Arch Linux: How to resolve “error: duplicated database entry ” ” error message

Follow the below steps to resolve the issue,

check for versions in local folder

ls /var/lib/pacman/local/ | grep <pkgname>

You should see more then one version mentioned as below

bashank@mayapc1 pkg]$ ls /var/lib/pacman/local/ | grep

now delete (or move them out of local folder) all the older versions from local folder

rm -rf /var/lib/pacman/local/<old_package>


rm -rf /var/lib/pacman/local/bash-4.3.024-1