Cannot lock database

‘Cannot lock database’ message appears while installing an app
In Manjaro I find a solution Pacman troubleshooting - Manjaro for it.
What can I do on Reborn OS?

Try removing the database lock file:

sudo rm /var/lib/pacman/db.lck

…and try again.

I hope you are well.

This I found in the link to Manjaro.
Because I cannot find the file in RebornOS, I wanted help here.

Please: show me the command you run and the exact message you get. The more data you give me, the better it will be to try to find a solution.

Sorry for the late reply, but I’m working…

The instructions are the same for RebornOS. Did you not find the lock file? If the lock file is not found, can you try re-running the pacman command?

For the moment I have no updates. I will try your advice later. Thanks!

Here is a new installation with the error message.
But unlike the message, the programs install or update without any problems.

1 Like

Try running this on a terminal:

sudo rm /var/lib/pacman/db.lck

LANG=C sudo pacman -Syyu

The input

sudo rm /var/lib/pacman/db.lck
LANG=C sudo pacman -Syyu

gave back

[sudo] Passwort für aw:

But my pw doesn’t work.

You see I don´t know what to do right.

Strange. Are you able to run any command with sudo? It sticks, so after a successful run, you can run the rest of the commands within a time interval without any password

for example:

sudo nano /etc/hosts

I mostly install and update with sudo pacmann. It works.

It is also ok.

@semperlin Sorry for the delayed follow-up. How is this going?

1 Like

One year later, and another question. But here i must say that it worked for a year. Sorry for delayed .Thanks