Pamac cannot create regular file

Got this errors today:


$ pamac build tigervnc
Install tigervnc from community ? [y/N] y
Preparing...
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/community.db': Permission denied
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/core.db': Permission denied
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/extra.db': Permission denied
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/multilib.db': Permission denied
Warning: tigervnc-1.12.0-3 is up to date -- reinstalling
Resolving dependencies...
Checking inter-conflicts...

To reinstall (1):
  tigervnc  1.12.0-3    community  2.3 MB

Total download size: 2.3 MB

Apply transaction ? [y/N] y
Download of tigervnc (1.12.0-3) started                                                                                                                                                                                                     
Download of tigervnc (1.12.0-3) finished                                                                                                                                                                                                    
Checking keyring...                                                                                                                                                                                                                    [1/1]
Checking integrity...                                                                                                                                                                                                                  [1/1]
Loading packages files...                                                                                                                                                                                                              [1/1]
Checking file conflicts...                                                                                                                                                                                                             [1/1]
Checking available disk space...                                                                                                                                                                                                       [1/1]
Reinstalling tigervnc (1.12.0-3)...                                                                                                                                                                                                    [1/1]
Running post-transaction hooks...
Reloading system manager configuration...                                                                                                                                                                                              [1/4]
Arming ConditionNeedsUpdate...                                                                                                                                                                                                         [2/4]
Updating icon theme caches...                                                                                                                                                                                                          [3/4]
Updating the desktop file MIME type cache...                                                                                                                                                                                           [4/4]
Transaction successfully finished.

Then you can try to use
sudo pamac build tigervnc
or
login as root and
pamac build tigervnc.

For some reason there has emerged an issue with Pamac - you can safely remove the folder - it will be recreated

sudo rm -rf /var/tmp/pamac/dbs

It seems to be depending on whether the folder is created by the GUI app or the CLI when using sudo pamac

1 Like

I have been repeatedly told this shouldn’t be done, that pamac will ask for permission if required.

Rather do what @linux-aarhus suggested:

Please provide the output of:

/usr/bin/ls -lah /var/tmp/pamac

And

/usr/bin/ls -lah /var/tmp/pamac/dbs

Make sure you’re fully up to date, that should be fixed with libpamac 11.4.1-1 / pamac-cli 10.4.2-3 in the unstable branch.

2 Likes

looks like it’s fixed now with latest update.

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