Project

General

Profile

Bug #567

Error Locking Database With Arch Linux On Raspberry Pi

Added by Daniel Curtis about 9 years ago. Updated about 9 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
      
#1

Updated by Daniel Curtis about 9 years ago

  • Description updated (diff)
#2

Updated by Daniel Curtis about 9 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved
#3

Updated by Daniel Curtis about 9 years ago

  • Category set to Package Management
  • Status changed from Resolved to Closed
  • Target version set to Arch Linux

Also available in: Atom PDF