Permission denied in pamac output

Hello out there,
since two or three updates i am receiving this, when executing the pamac update command:

cp: cannot access '/var/lib/pacman/sync/download-MTWw0d': Permission denied

The owner, rights and so on is different then for the other directories:
drwx------ 2 alpm alpm

I wonder if it is safe to delete this directory or if this is a sign that something is broke which should be fixed on my system? I didn’t find any information regarding this directory yet.

Manjaro release: 24.2.0

Best regards:)

there was a .pacnew file, some time ago already
/etc/pacman.conf I believe
Did you merge it?
Did you tend to all .pacnew files?

Try using pacman to do the update - I’m not familiar with and no friend of pamac and avoid it.

It is - a new one will be created.
But this is not (will not be) the solution to your problem.

1 Like

This is disturbing, that sounds like a VERY long time to ignore an issue…

So I’d guess a first step might be to backup that issue:

sudo cp /var/lib/pacman/sync/download-MTWw0d /var/lib/pacman/sync/download-MTWw0d-BORKED

You might change the ownership using Chown:

sudo chown your_username:your_group /var/lib/pacman/sync/download-MTWw0d

Pacman (not pamac) full update:

sudo pacman -Syu

Remember, partial updates aren’t supported - so you can’t let these things slide.

Maybe you did (at some time) use sudo with pamac ?

1 Like

See System Maintenance Pacnew and Pacsave files for a brief introduction to the concept.

3 Likes

hey folks,
thanks for all your quick help and input. Wasn’t aware of the .pacnew concept. I updated all my config files accordingly, removed “download-MTWw0d” directory for now and executed:

sudo pacman -Syu

You forgot to tell us the most important part…

Is your issue now solved?

If it is, please nominate the post that solved it, or helped you the most to find a solution.

Click the under whichever post that is. :wink:

Regards.

1 Like