Can not install NVIDIA driver

Hello everybody. I am new in arch linux i do not understand all things and i am having trouble with installing NVIDIA driver. I dont know what to do. My friend said i should find help on forum.
Here is my problem:

Waiting for user input...

Installing video-nvidia-390xx-dkms...
error: could not open file /var/lib/pacman/local/0ad-a24.b-1/desc: No such file or directory
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-390xx-dkms/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
:: Synchronizing package databases...
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to update multilib (unable to lock database)
error: failed to update chaotic-aur (unable to lock database)
error: failed to synchronize all databases
Error: pacman failed!
Error: script failed!

Done ...

Remove database lock.

Can i ask how? Sorry i am new here

search for db.lck

or use garuda-assistent / maintenance

1 Like

Thanks. Really thanks

You have several issues, most likely caused by you shutting down the system during an update.

Your local package database metadata is corrupt. See here:

The package manager lock file is in place because it did not exit cleanly. The information provided by SGS above will help with that.


Good morning. I followed steps that u send me. I dont know what i did bad. I tried to figure it out. But nothing changed. What did i do wrong?

sudo touch /var/lib/pacman/local/0ad-a24.b-1/desc
[sudo] password for marti432:

╭─[email protected] in ~ took 4s
╰─λ sudo pacman -S /var/lib/pacman/local/0ad-a24.b-1/desc
error: target not found: /var/lib/pacman/local/0ad-a24.b-1/desc
warning: '/var/lib/pacman/local/0ad-a24.b-1/desc' is a file, did you mean -U/--upgrade instead of -S/--sync?

sudo pacman -S /var/lib/pacman/local/0ad-a24.b-1/file
error: target not found: /var/lib/pacman/local/0ad-a24.b-1/file
warning: '/var/lib/pacman/local/0ad-a24.b-1/file' is a file, did you mean -U/--upgrade instead of -S/--sync?

If you don't understand these instructions, I can't do anything better. It is very clear.
Read man pacman, or pacman --help, or Archwiki


Hello Guys, i am the friend he(TheMartin) was talking about. He has hybrid graphics intel and nvidia he was trying to install the bumblebee offload driver but that was not working for some conflict files that i was trying to remove and replace them for him but he got the pacman failed error first it was the database lock error which i fixed for him using sudo rm /var/lib/pacman/db.lck command. It was downloading for a while but it said that there are corrupt files so my solution for him is to reinstall the whole garuda linux and set his graphics to discrete in bios so garuda will install the drivers automaticly hopefully without errors. I am posting this here so if there is another solution you can help us.

Bumblebee hasn't been supported for quite some time, and hasn't been needed since NVIDIA introduced render offload with the 435xx drivers.

Essentially, with the hybrid profile installed all you need to do is run applications using the prime-run wrapper, e.g.

prime-run glxinfo

to have the application run on the dGPU. That's all there is to it.

1 Like

Well yes but he wants the have games to run on the nvidia gpu as default. And he can't install even nvidia driver without bumblebee so i think my solution could work the best but tell me what do you think about it.

Sure - if you want to use the dGPU as the only graphics output then setting that as the default in the BIOS is the best approach.


Ok thanks for everyones help :D.

1 Like

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