Removed /var/cache/pamac simlink, now can not install AUR packages

After big pamac upgrade I started to get an error `cannot remove /var/cache/pamac/… Permission denied while trying to upgrade AUR packages. I was not able to find a fix for this problem. /var/cache/pamac was a broken simlink to something like “private/pamac” so I just deleted it. Now while upgrading or installing AUR packages I get a new error:

Running as unit: run-u191.service
Finished with result: exit-code
Main processes terminated with: code=exited/status=239

Completely don’t know how to fix it. Please, help!

if you try reinstalling pamac:
sudo pacman -S pamac-cli
sudo pacman -S pamac-gtk
sudo pacman -S libpamac

Unfortunately, that did not help

and clearing cache:
sudo pacman -Scc