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
bash-4.3.024-1
bash-4.3.027-0.1

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

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

example:

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