You are not logged in.
```
> 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
sudo rm /var/lib/packman/db.lck
sudo rm /var/lib/pacman/db.lckOffline
Thanks, it worked I was stupid I missed this.
Offline
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