/var/tmp/pamac/dbs/sync is not a directory

Doing this: $ pamac checkupdates
results in this:

cp: target '/var/tmp/pamac/dbs/sync': Not a directory
cp: target '/var/tmp/pamac/dbs/sync': Not a directory
touch: cannot touch '/var/tmp/pamac/dbs/sync/refresh_timestamp': Not a directory
chmod: cannot access '/var/tmp/pamac/dbs/sync/refresh_timestamp': Not a directory

and $ ls -la /var/tmp/pamac/dbs/ gives me this:

total 28
drwxrwxrwx 2 root   root    4096 Aug 23 11:41 .
drwxrwxrwx 5 taylor taylor  4096 Aug 23 11:40 ..
lrwxrwxrwx 1 root   root      21 Aug 23 11:41 local -> /var/lib/pacman/local
-rw-r--r-- 1 root   root   17920 Aug 23 11:40 sync

It looks like ‘sync’ is a binary file instead of a directory. What can I do to fix it?

Simple solution: delete it

2 Likes

I’m having exactly same problem.
Deleting file doesn’t help, at least for me it doesn’t.
pamac seems to create it again.

$ pamac --version
pamac-cli 11.6.0  -  libpamac 11.6.0

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.