I get an error cp: cannot create regular file '/var/tmp/pamac/dbs/sync/pamac_aur.db': Permission denied when I try to update using pamac by pamac update -a.
I tried sudo chown - R $USER:$USER /var/tmp/pamac and sudo chmod 777 /var/tmp/pamac/dbs/sync/ but none of them work.