Pamac complains about not permitted operations

pamac complains about not permitted operations:

cp: preserving times for '/var/tmp/pamac/dbs/sync': Operation not permitted
chmod: changing permissions of '/var/tmp/pamac/dbs/sync': Operation not permitted

updates from repo and AUR result in succes, /var/log/pacman.log shows no errors.

example
pamac remove --orphans
 searching orphans ...
Preparing...
cp: preserving times for '/var/tmp/pamac/dbs/sync': Operation not permitted
chmod: changing permissions of '/var/tmp/pamac/dbs/sync': Operation not permitted
Checking dependencies...

To remove (3):
  python-toolz           0.12.1-2    extra
  libtermkey             0.22-3      extra
  python-pyrate-limiter  3.6.0-2     extra

Total removed size: 1,0 MB

Apply transaction ? [y/N] y
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Hans (h)
Password: 
==== AUTHENTICATION COMPLETE ====
Removing python-toolz (0.12.1-2)...                                                                                                                                                     [1/3]
Removing libtermkey (0.22-3)...                                                                                                                                                         [2/3]
Removing python-pyrate-limiter (3.6.0-2)...                                                                                                                                             [3/3]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                                                                                          [1/1]
Transaction successfully finished.

There are some old db files in /var/tmp/pamac/dbs/sync from the deprecated community repo & mesa-nonfree that I do not need anymore. cleaned out the old files

pamac upgrade gives the same error.

The folder /var/tmp/pamac/dbs/sync is owned by root with these permissions: drwxrwxrwx files inside are owned by the user.

I would expect pamac to ask for elevated rights as usual.

$ pamac list --installed | grep pamac                                                                                                                                          
libpamac                                   11.6.4+2+g1421283-1               extra     3,9 MB
pamac-cli                                  11.6.0-4                          extra     184,7 kB
pamac-gnome-integration                    11.7.1-3                          extra     14,7 kB
pamac-gtk                                  11.7.1-3                          extra     556,4 kB

for me /var/tmp/pamac is owned by “$user” as all subdirectories and files (except files in symlink /var/tmp/pamac/dbs/local/)

3 Likes

But how does the ownership change?
Incorrectly using sudo pamac is a first thought. But then again.
We have other examples of it changing between users on a multi-user system as well.
(so then user A cannot access because the path is owned by user B)

2 Likes

I might have done this a few years back, the behavior is recent, maximum a week. Checked shell history and have not used sudo in combination with pamac.

Changing the ownership of /var/tmp/pamac/ to the $user with
sudo chown -R [user] /var/tmp/pamac/ and running pamac upgrade does not show the error anymore.

1 Like

Some changes were made to libpamac a week ago.

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