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:
Updated by Daniel Curtis almost 10 years ago
- % Done changed from 0 to 100
- Status changed from New to Resolved
Updated by Daniel Curtis almost 10 years ago
- Category set to Package Management
- Status changed from Resolved to Closed
- Target version set to Arch Linux