You are not logged in.

#1 2022-03-14 03:23:56

atom77
Member
Registered: 2022-03-14
Posts: 4

error: failed to init transaction (unable to lock database)

```
> sudo pacman -S gparted             
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
  if you're sure a package manager is not already
  running, you can remove /var/lib/pacman/db.lck
                                                                                                                       
> sudo rm  /var/lib/packman/db.lck
rm: cannot remove '/var/lib/packman/db.lck': No such file or directory
                                                                                                                         
> sudo pacman -Syu               
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
                                                                                                                         
> sudo pacman -S gparted             
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
  if you're sure a package manager is not already
  running, you can remove /var/lib/pacman/db.lck
```
i am getting this "error: failed to init transaction (unable to lock database)" error message, i tried removing the db.lck file but still getting same error.

Offline

#2 2022-03-14 03:32:06

loqs
Member
Registered: 2014-03-06
Posts: 18,970

Re: error: failed to init transaction (unable to lock database)

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

Offline

#3 2022-03-14 03:55:50

atom77
Member
Registered: 2022-03-14
Posts: 4

Re: error: failed to init transaction (unable to lock database)

Thanks, it worked I was stupid I missed this.

Offline

#4 2022-03-14 07:04:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,734

Re: error: failed to init transaction (unable to lock database)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB