Bug #567
Error Locking Database With Arch Linux On Raspberry Pi
Status:
Closed
Priority:
Normal
Assignee:
Category:
Package Management
Target version:
Description
I encountered an error right after installing Arch Linux on my Raspberry Pi. The error stated:
:: 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 alarm (unable to lock database)
error: failed to update aur (unable to lock database)
error: failed to synchronize any databases
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
The Fix¶
The problem turned out to be in the fstab, and that there was not a definition for the root filesystem.
- Open the fstab file:
vi /etc/fstab
- And make sure the following is present:
/dev/mmcblk0p2 / ext4 defaults 0 0
- And make sure the following is present: