Project

General

Profile

Bug #567

Error Locking Database With Arch Linux On Raspberry Pi

Added by Daniel Curtis almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Package Management
Target version:
Start date:
02/20/2015
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

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
      

Also available in: Atom PDF