arch linux unable to lock database code example
Example: rror: 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/pacman/db.lck