r/voidlinux • • Sep 17 '26

Error message - Failed to lock the pkgdb: Permission denied

Hello All.

Installed the system and tried some basic commands from a list, such as:

  • xbps-install –Syu
  • xbps-install –u xbps

and got the following error message

  • Failed to lock the pkgdb: Permission denied

Please, can you advise what's wrong with this?

Thank you,

JP.

2 Upvotes

13 comments sorted by

3

u/Necessary_Arm19 Sep 17 '26

something worked ... sudo was missing in those 2 commands

5

u/[deleted] Sep 18 '26

When you see # sign, you run commans as root, via sudo or logged in. If there is $ sign,.commands has to be run as user.

1

u/mystirc Sep 18 '26

damn, that's really useful. I never knew about it.

2

u/Necessary_Arm19 Sep 17 '26

hummm... updates are happening now ... I copied the instructions directlly from the documentation ...

1

u/Necessary_Arm19 Sep 17 '26

Basically I'm trying to install a few apps and was trying to use XBPS.

But maybe it's easier to install software thru Flatpak.

Still, I will need to install Flatpak to install other apps.

The thing is that a get the message "Permission denied" constantly.

What am I doing wrong or what is missing ?

1

u/Necessary_Arm19 Sep 17 '26

got the following error message now:

WARNING: tzdata-2025a_1: invalid provides: py3:tzdata-2025a

How should I update Void and XBPS ? Basically that's the question.

How do I execute these updates ?

2

u/ClassAbbyAmplifier Sep 18 '26

that warning will go away after a system update

5

u/Runt1m3_ Sep 17 '26 edited Sep 18 '26

you probably ran xbps without sudo or root privileges, if youre using an LLM try to review what they say if you're using one (i assume this since llm models usually use list Syu and no root gain method, just assuming lul)

1

u/no_suprisez Sep 19 '26

Package managing mostly need SU (superuser) or root permission to perform, so you need to put `sudo` before it.

Also a tip, when you see a command on the internet that starts with $, it doesn't need root, but if it starts with #, then it needs root.

------------------------------------

Also, flag your post as **solved**

1

u/[deleted] Sep 17 '26

[removed] — view removed comment

1

u/Necessary_Arm19 Sep 17 '26

it worked with sudo xbps-install -Su - I copied directly from the documentation

Thank you

1

u/Simple_Hamster_4096 Sep 18 '26

-Su is better - can eyeballs what's going to be updated before actually updating...